Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-03-2009, 10:39 AM   #1
LQ Newbie
Registered: Oct 2003
Location: UK - North West
Distribution: Various
Posts: 7

Rep: Reputation: 0
ftp not returning from STOR <file>

Hi All,

I've tried searching on this but to no avail so far. Maybe you good people can help?

I'm running a file transfer using the shell client from Linux (RHEL4) to some external box running *nix but not sure of the o/s details. Similarly I don't know what the FTP server software is at t'other end...

However, everything works fine until I try shipping a file of between 10 and 11 Mb, when it hangs on the STOR command having sent the whole file (checked the file size at both ends are the same). It seems to work fine for smaller files (a few Kb). I'm using .netrc to log in.

This behaves the same regardless of whether I run it interactively or via a script.

See debug output below:

/home/oracle/scripts/export> ftp -d
ftp> open
Connected to
220 Matrix WSA FTP
500 'AUTH': command not understood.
500 'AUTH': command not understood.
KERBEROS_V4 rejected as an authentication type
---> USER xxxx_upload
331 Password required for xxxx_upload.
230 User xxxx_upload logged in.
---> SYST
215 UNIX Type: L8 Internet Component Suite
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put extract20090603.txt
local: extract20090603.txt remote: extract20090603.txt
---> TYPE I
200 Type set to I.
ftp: setsockopt (ignored): Permission denied
---> PASV
227 Entering Passive Mode (77,68,53,120,19,66).
---> STOR extract20090603.txt
150 Opening data connection for extract20090603.txt.

The 150 is the last line output - and it hangs like this (after the file has been completely copied) for over an hour (then I get bored and kill it).

Has anyone seen anything like this before and if so discovered why? Any help will be much appreciated.

Many thanks in anticipation.

Old 06-03-2009, 04:24 PM   #2
Registered: Aug 2003
Location: Seattle
Distribution: ubuntu, lately
Posts: 182
Blog Entries: 1

Rep: Reputation: 35
did you try using active mode (toggle 'passive')?
Old 06-04-2009, 02:36 AM   #3
LQ Newbie
Registered: Oct 2003
Location: UK - North West
Distribution: Various
Posts: 7

Original Poster
Rep: Reputation: 0
Hi grepmasterd,

We can't use active as the server is outside our firewall. Thanks for the suggestion, tho'.



ftp, hang

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
apache mod_fastcgi: .fcgi file returning as text. Llanilek Linux - Software 0 10-25-2008 10:05 AM
ftp commands (STOR) infonlinebr Linux - Newbie 1 07-09-2008 07:01 PM
File searching programs not returning expected results Shadow ZERO Linux - Software 3 07-26-2007 02:35 PM
FTP Server: STOR /somefile: 550 Access is denied robbbert Linux - Server 5 05-11-2007 04:10 AM
Hang on LIST or STOR in FTP Torm3nt Linux - Networking 8 01-29-2004 12:07 AM

All times are GMT -5. The time now is 03:36 PM.

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