LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   FTP uploads hang (https://www.linuxquestions.org/questions/linux-server-73/ftp-uploads-hang-865367/)

moodah 02-27-2011 06:57 PM

FTP uploads hang
 
I am having a strange issue at the moment, uploads seem to hang from my linux boxes to the remote end.
These are the dumps from curling the files.

Quote:

root@transfer:~# curl -B -u "xxxxx:xxxxxx" -v -T /tmp/blahblah ftp://192.168.37.4/upload/blahblah
* About to connect() to 192.168.37.4 port 21 (#0)
* Trying 192.168.37.4... connected
* Connected to 192.168.37.4 (192.168.37.4) port 21 (#0)
< 220 ipnd0 FTP server (Version IPND-1.08(3) Mon Feb 4 16:01:16 EST 2008) ready.
> USER xxxxxx
< 331 Password required for xxxxxx.
> PASS xxxxxx
< 230 User xxxxxx logged in.
> PWD
< 257 "/users/xxxxxx" is current directory.
* Entry path is '/users/xxxxxx'
> CWD upload
< 250 CWD command successful.
> EPSV
* Connect data stream passively
< 500 'EPSV': command not understood.
* disabling EPSV usage
> PASV
< 227 Entering Passive Mode (192,168,37,4,54,174)
* Trying 192.168.37.4... connected
* Connecting to 192.168.37.4 (192.168.37.4) port 13998
> TYPE A
< 200 Type set to A.
> STOR blahblah
< 150 Opening ASCII mode data connection for blahblah.
} [data not shown]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8506 0 0 100 8507 0 1229 0:00:06 0:00:06 --:--:-- 1229* Remembering we are in dir "upload/"
100 8506 0 0 100 8507 0 127 0:01:06 0:01:06 --:--:-- 0* FTP response timeout
* control connection looks dead
100 8506 0 0 100 8507 0 127 0:01:06 0:01:06 --:--:-- 0* Closing connection #0

curl: (28) FTP response timeout
There is a firewall that is not blocking anything since i have allowed any/any both ways.
I have tested this in passive mode (as above) and with passive mode off.

The strangest thing is, is that this upload will work FINE from another box that is a Windows CURL instead of linux.

It is not IPTABLES either, ive checked the tables and tried to flush them anyway, ive also tested this from another linux box and get the same problem.

stress_junkie 02-27-2011 08:31 PM

You use passive mode on the Windows machine?

moodah 02-27-2011 09:19 PM

Yes it should be using the default behaviour which is passive mode I am pretty sure. A switch disables EPSV though.

In the example above I'm using passive mode in the test, but the same results are seen with passive on or off.

stress_junkie 02-27-2011 09:32 PM

I would try active mode anyway.

moodah 02-27-2011 11:16 PM

Active mode gives me the same problem as passive mode.

Regardless;
How can it possibly make sense that the win32 version of curl appears to upload correctly, and linux version does not?

It is absolutely baffling and I'm at wits end. ./sigh


All times are GMT -5. The time now is 01:29 AM.