FTP not working under Linux but working under any other OS ??? Very strange


 
Thread Tools Search this Thread
Operating Systems Linux FTP not working under Linux but working under any other OS ??? Very strange
# 8  
Old 04-22-2010
Dear fpmurphy,

I have no access to vsftpd.conf it is not managed by us...
And even if I had I couldn't change anything ;-)

Denis

---------- Post updated at 09:11 PM ---------- Previous update was at 09:01 PM ----------

Dear methyl,
Thanks a lot for your reply, it looks very interesting...
Where in the ftp command-line client could I change this option ?
Or do you mean change it in the network config ?

Another idea I had was the following :
When connecting with active FTP, some ports are used to send the files to the server...
And ftp was more in the 59000 ports while Filezilla in the 27000, but I don't see why it should be a problem...

---------- Post updated at 09:15 PM ---------- Previous update was at 09:11 PM ----------

Ok now I was able to do some more testing from another linux server to the same servers but from another place and it worked...

Therefore the problem seems either to be :
  • with ftp on this version of linux ?
    Linux 2.6.26-2-amd64 #1 SMP Mon Oct 19 02:34:17 UTC 2009 x86_64 GNU/Linux
  • with the network (but in this case filezilla wouldn't work ?)
# 9  
Old 04-22-2010
Quote:
Originally Posted by magix_ch
Dear methyl,
Thanks a lot for your reply, it looks very interesting...
Where in the ftp command-line client could I change this option ?
Or do you mean change it in the network config ?
it's a vsftpd option so not relevant unfortunately.
Quote:
Another idea I had was the following :
When connecting with active FTP, some ports are used to send the files to the server...
And ftp was more in the 59000 ports while Filezilla in the 27000, but I don't see why it should be a problem...
Firewalls might differentiate between port numbers, but that'd usually be incoming ports, not outgoing ones...
Quote:
Ok now I was able to do some more testing from another linux server to the same servers but from another place and it worked...

Therefore the problem seems either to be :
  • with ftp on this version of linux ?
    Linux 2.6.26-2-amd64 #1 SMP Mon Oct 19 02:34:17 UTC 2009 x86_64 GNU/Linux
  • with the network (but in this case filezilla wouldn't work ?)
Telling me the version of linux doesn't tell me what ftp you're using. Try 'man ftp' and see what version it says it is there.

Try pinging the server with various byte sizes and see if you start losing packets once you go over 1000-1200 bytes a packet. This could be MTU problems, maybe. They can act like that sometimes, things work well until you start transferring bulk data then it freezes and dies.
# 10  
Old 04-23-2010
And now even more strange, I tried to connect with another ftp client and this is what happens :

Code:
ncftp> open host -u (user) -p (pass)
Connecting to (ip)...
(vsFTPd 2.0.1)
Logging in...
Login successful.
Logged in to (host).
ncftp / > dir
connect failed: No path to destination host.
Falling back to PORT instead of PASV mode.
drwxr-xr-x    2 3002     3000         4096 déc  7 10:40 tmp


---------- Post updated at 09:33 PM ---------- Previous update was at 09:27 PM ----------

For the version, man ftp only shows this at the end :
Linux NetKit (0.17)
August 15, 1999

I also found this :
Code:
file /usr/bin/netkit-ftp
/usr/bin/netkit-ftp: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped



---------- Post updated at 09:37 PM ---------- Previous update was at 09:33 PM ----------

I followed your advice about ping and it pings with
ping (host) -s 548 (and less)

But not with -s 549 (or more)

---------- Post updated at 09:45 PM ---------- Previous update was at 09:37 PM ----------

Ok I was able to test with a new command line ftp "lftp" and I was able to launch the copy but it is stuck at 0% like "ftp"... A network problem on this linux host as you suggested seems to be an interesting possibility...

---------- Post updated 23rd Apr 2010 at 01:28 PM ---------- Previous update was 22nd Apr 2010 at 09:45 PM ----------

But I don't know what and where to check ?

Last edited by Scott; 04-23-2010 at 07:42 PM.. Reason: Code tags, please...
# 11  
Old 04-23-2010
Quote:
Originally Posted by magix_ch
I followed your advice about ping and it pings with
ping (host) -s 548 (and less)

But not with -s 549 (or more)
That is a very odd size for it to quit at and a definite sign of an MTU problem! Most connections will work up to 1400, and some things demand an MTU of at least that.

I've occasionally seen Linux pick up bizarre MTU values along with a DHCP address. Most things seem to ignore MTU settings from DHCP, but linux honors them, even when they're crazy. It's easy to set it saner with
Code:
/sbin/ifconfig eth0 mtu 1488

but that's just a temporary fix, it'll get set to something strange again next time DHCP picks up an address. You'll need to configure your DHCP client daemon to force a sane MTU. Assuming, that is, that it's your MTU that's the problem...

Post the output of /sbin/ifconfig please.

Last edited by Corona688; 04-23-2010 at 01:00 PM..
# 12  
Old 04-23-2010
Thanks a lot for your reply...

My current config is :

Code:
/sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0c:29:87:1f:dd
          inet adr:172.16.1.229  Bcast:172.16.1.255  Masque:255.255.255.0
          adr inet6: fe80::20c:29ff:fe87:1fdd/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13514556 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9566583 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          RX bytes:2408752603 (2.2 GiB)  TX bytes:3660466474 (3.4 GiB)


---------- Post updated at 07:54 PM ---------- Previous update was at 07:52 PM ----------

CONGRATULATIONS !!!

With MTU 1488 IT WORKS !!!

INCREDIBLE...

After 17 years of hearing "MTU can cause problems", it's the first time in my life I see it is not a urban legend ;-)))))

Last edited by Scott; 04-23-2010 at 07:43 PM.. Reason: Code tags, please...
# 13  
Old 04-23-2010
Wow, I'm glad that worked -- and surprised, since your MTU of 1500 was fairly sane in the first place. Maybe you can configure your DHCP server to send 1488 instead of 1500.

MTU problems usually don't exist since when things receive too-large packets they can yell at the sender to fragment their packets with ICMP. But some very draconian firewalls go beyond blocking pings to blocking all ICMP and therein break the internet. Smilie Wouldn't have occurred to me if I hadn't run into the same thing on some odd high-latency links.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Working with FTP

Hi all, i am using fedora 11,and want to make my system as ftp server. I have installed vsftp package and vsftpd daemon is also running. Can i access my files from outer world i.e. internet using ftp? How can i do that? i started vsftpd daemon and tried to access server from other system like... (2 Replies)
Discussion started by: yashwantkumar
2 Replies

2. Solaris

Why is sftp working but ftp not

I am not very familiar with the use of FTP, and trying to run it I found out that standard "ftp" is not working" but "sftp" is. If sftp is allowed will that block ftp ? and if so where is this set ? I thought there is no relationship, is that right ? If so look here: inetadm | grep ftp enabled... (11 Replies)
Discussion started by: manni2
11 Replies

3. Solaris

All i/o (ftp) not working on this SunOS 5.10

Hi everyone: I have been trying to simply FTP a file over to this SunOS 5.10 (which is same as Solaris 10 now) and nothing works! I can only Telnet to this via SSH (with my own account/uid), and I can also send simple mail out with mailx, that's all!!! I cannot FTP to it (I think FTP... (7 Replies)
Discussion started by: steve701
7 Replies

4. UNIX for Dummies Questions & Answers

FTP not working, need some help

I am trying to set up an account for a user on our network to ftp into and access his folder for his web site. I have been tossed into the previous web hosting server without really knowing much about how it has or is set up, but I've been following most of the tutorials I have seen around the... (0 Replies)
Discussion started by: nlraley
0 Replies

5. Shell Programming and Scripting

why the mv is not working in an FTP

Why when I mv $UpLoadFileName supfinaid.DSB does not work, it is getting the $UpLoadFileName and it is moving it to the right location, but not the move, Let me know if you want to see the all script, I just want to rename $UpLoadFileName, it is moving $UpLoadFileName to the right... (6 Replies)
Discussion started by: rechever
6 Replies

6. Red Hat

FTP on Linux is not working as expected

Hi, I need to write a Linux shell script which will perform an FTP operation to another server. main.sh will contain - ftp -nd Dest.IP.address < ftpScript.sh Contents of ftpScript.sh is given below - user userid passwd prompt lcd /vidya/Input cd vidya/Output mput *.* close ... (1 Reply)
Discussion started by: vidyak
1 Replies

7. AIX

FTP is not working

Upto last month my script was working fine, Now I am getting following error, any one help me? Tcl_Init failed: Can't find a usable init.tcl in the following directories: /usr/local/lib/tcl8.0 ./lib/tcl8.0 ./tcl8.0/library ./library This probably means that Tcl wasn't installed... (0 Replies)
Discussion started by: redlotus72
0 Replies

8. Cybersecurity

FTP is not working.

Hi, I'm getting the following error while trying to use the ftp command. ---------------- 331 Password required for prodofsa. Password: 230 User prodofsa logged in. ftp> ftp> ftp> ftp> ls 200 PORT command successful. 425 Can't build data connection: Connection timed out. ftp>... (10 Replies)
Discussion started by: ronald_brayan
10 Replies

9. UNIX for Dummies Questions & Answers

FTP/TELNET on linux, not working

I'm trying to ftp to my linux box from windows and from unix and its not working. I can telnet just fine, but ftp doesn't work. Where should I start looking? What config file is it that controls the ftp? Why does telnet work and ftp not? I'm using redhat 6.1, samba's working for browsing the... (33 Replies)
Discussion started by: kymberm
33 Replies

10. UNIX for Dummies Questions & Answers

FTP is not working after installing Linux 7.3

hi all, After installing Linux 7.3, when I wasn't be able to FTP to this machine from another machine; however, I do get the reply back when I ping this machine. All I want is able to transfer file on my local machine to this server using FTP comand and it's not working. Could someone please... (1 Reply)
Discussion started by: lapnguyen
1 Replies
Login or Register to Ask a Question