LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-27-2011, 06:57 PM   #1
moodah
LQ Newbie
 
Registered: Sep 2010
Posts: 15

Rep: Reputation: 1
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.
 
Old 02-27-2011, 08:31 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
You use passive mode on the Windows machine?
 
Old 02-27-2011, 09:19 PM   #3
moodah
LQ Newbie
 
Registered: Sep 2010
Posts: 15

Original Poster
Rep: Reputation: 1
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.
 
Old 02-27-2011, 09:32 PM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I would try active mode anyway.
 
Old 02-27-2011, 11:16 PM   #5
moodah
LQ Newbie
 
Registered: Sep 2010
Posts: 15

Original Poster
Rep: Reputation: 1
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Temporarily prevent FTP uploads from certain accounts anon091 Linux - Newbie 1 02-10-2011 03:28 PM
Email Alert for ftp uploads amol0009in_7 Linux - Server 1 09-16-2010 05:57 AM
Is there an ftp program that allows for multi-thread ftp uploads ? Want faster upload brjoon1021 Linux - Software 4 02-04-2009 06:28 PM
FTP - Fast Downloads - SLOW UPLOADS? fed007 Linux - Newbie 2 08-19-2001 11:32 AM
ftp guest uploads simon Linux - Networking 2 08-09-2001 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration