What's new
SNBForums

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

FTP server times out at the end of file

vrapp

Senior Member
When I tried to download ~100MB files from router's FTP server, the transfer successfully reached the end of the file, at which point it bombed out with timeout. FTP client then overcame this problem by reconnecting and resuming the transfer, which then succeeded after having transferred 0 bytes. I tried this several times on different computers and different files with the same result.

The router is RT-N66U, firmware 374.40_beta2 .
 
You could start by looking in the System Log and the ftp log (if available).
Also what does the FTP Client say in the protocoll or log?
 
Any reason you are not using 374.40 final?
 
You could start by looking in the System Log and the ftp log (if available).
Also what does the FTP Client say in the protocoll or log?


System log on the router does not have anything about ftp server.

FTP client says "timeout".

I experimented with this little more; this problem happens only when there's more than one simultaneous transfer. Here's the log from the client (actually two intermixed logs of two simultaneous sessions transferring two files). Note that 98,435,194 bytes and 94,372,984 bytes are the exact sizes of the files, so both have timed out after they have been transferred. As I said, I tried different ftp clients, so it does not seem to be client's fault.

Status: Connection established, waiting for welcome message...
Response: 220 Welcome to ASUS RT-N66U FTP service.
Command: USER anastasia
Response: 220 Welcome to ASUS RT-N66U FTP service.
Command: USER anastasia
Response: 331 Please specify the password.
Command: PASS *******
Response: 331 Please specify the password.
Command: PASS *******
Response: 230 Login successful.
Command: OPTS UTF8 ON
Response: 230 Login successful.
Command: OPTS UTF8 ON
Response: 200 Always in UTF8 mode.
Status: Connected
Status: Starting download of /STORAGE/ftp/capture2.avi
Command: CWD /STORAGE/ftp
Response: 200 Always in UTF8 mode.
Status: Connected
Status: Starting download of /STORAGE/ftp/capture1.avi
Command: CWD /STORAGE/ftp
Response: 250 Directory successfully changed.
Command: TYPE I
Response: 250 Directory successfully changed.
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 200 Switching to Binary mode.
Command: PASV
Response: 227 Entering Passive Mode (76,193,185,147,39,38)
Command: RETR capture2.avi
Response: 227 Entering Passive Mode (76,193,185,147,24,25)
Command: RETR capture1.avi
Response: 150 Opening BINARY mode data connection for /tmp/mnt/STORAGE/ftp/capture2.avi (98435194 bytes).
Response: 150 Opening BINARY mode data connection for /tmp/mnt/STORAGE/ftp/capture1.avi (94372984 bytes).
Error: Connection timed out
Error: File transfer failed after transferring 98,435,194 bytes in 2388 seconds
Status: Resolving address of (...)
Status: Connecting to 76.193.185.147:21...
Status: Connection established, waiting for welcome message...
Response: 220 Welcome to ASUS RT-N66U FTP service.
Command: USER anastasia
Response: 331 Please specify the password.
Command: PASS *******
Response: 230 Login successful.
Command: OPTS UTF8 ON
Response: 200 Always in UTF8 mode.
Status: Connected
Status: Starting download of /STORAGE/ftp/capture2.avi
Command: CWD /STORAGE/ftp
Response: 250 Directory successfully changed.
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 227 Entering Passive Mode (76,193,185,147,57,35)
Command: REST 98435194
Response: 350 Restart position accepted (98435194).
Command: RETR capture2.avi
Response: 150 Opening BINARY mode data connection for /tmp/mnt/STORAGE/ftp/capture2.avi (98435194 bytes).
Response: 226 File send OK.
Status: File transfer successful, transferred 0 bytes in 1 second
Error: Connection timed out
Error: File transfer failed after transferring 94,372,984 bytes in 2409 seconds
Status: Starting download of /STORAGE/ftp/capture1.avi
Command: PASV
Response: 227 Entering Passive Mode (76,193,185,147,231,14)
Command: REST 94372984
Response: 350 Restart position accepted (94372984).
Command: RETR capture1.avi
Response: 150 Opening BINARY mode data connection for /tmp/mnt/STORAGE/ftp/capture1.avi (94372984 bytes).
Response: 226 File send OK.
Status: File transfer successful, transferred 0 bytes in 1 second
Status: Retrieving directory listing...
Command: PASV
Response: 227 Entering Passive Mode (76,193,185,147,100,53)
Command: REST 0
Response: 350 Restart position accepted (0).
Command: LIST
Response: 150 Here comes the directory listing.
Response: 226 Directory send OK.
Status: Directory listing successful
Status: Disconnected from server
==================

Any reason you are not using 374.40 final?

Thanks for poiting that out. By now I have updated already to 374.40 release; no change.
 
Last edited:
This could be the clients Timeout Setting. An active transfer does not count as being active for the connection Timeout. Look for the "Keep Alive" or timeout setting in your client.
 
No, it's not timeout setting, since as I said, when the transfer goes alone, it does not happen. It looks like failure of the server to indicate to the client that the transfer is complete.
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top