Topic "Timeout..."

Author Message
cdannenberg
[View user's profile]

Joined: 2014-06-09
Posts: 5
Location: Kansas
Synchronizing from a remote to local server using an automated script and I'm getting a "timeout detected", End of Log:

. 2014-07-28 15:35:54.163 Retrieving directory listing...
> 2014-07-28 15:35:54.163 CWD /31159/2011-10-04/
< 2014-07-28 15:35:54.194 250 CWD command successful.
> 2014-07-28 15:35:54.194 PWD
< 2014-07-28 15:35:54.210 257 "/31159/2011-10-04" is current directory.
> 2014-07-28 15:35:54.210 TYPE A
< 2014-07-28 15:35:54.225 200 Type set to A.
> 2014-07-28 15:35:54.225 PASV
< 2014-07-28 15:35:54.241 227 Entering Passive Mode (108,178,220,134,12,8Cool.
> 2014-07-28 15:35:54.241 LIST -a
. 2014-07-28 15:35:54.522 Disconnected from server
. 2014-07-28 15:35:54.522 Could not retrieve directory listing
. 2014-07-28 15:35:54.522 Timeout detected.
< 2014-07-28 15:35:54.522 Script: Lost connection.
< 2014-07-28 15:35:54.537 Script: Disconnected from server
< 2014-07-28 15:35:54.537 Could not retrieve directory listing
< 2014-07-28 15:35:54.537 Timeout detected.
< 2014-07-28 15:35:54.537 Error listing directory '/31159/2011-10-04'.


We've previously used CoreFTP for several hours, so I don't think it's the remote server kicking us off
I then added a -timeout to the script:

open ftp://user:pass@server/ -timeout=500

15 was the demonstration value given, I tried that and then bumped it up several time until I got to 500, it didn't seem to matter what I set it out. Do I need to call this differently or try keepalive? What is the appropriate way to use keepalive?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
The "Timeout detected" message is nonsense. It's a bug. Added to tracker:
http://winscp.net/tracker/show_bug.cgi?id=1197

The real issue there is that a server closes a connection.
It can be because of the -a switch of LIST. That's very common. Though WinSCP should try to reconnect and use pure LIST. Unless you are using some ancient version of WinSCP. Can you attach a complete log file?
cdannenberg
[View user's profile]

Joined: 2014-06-09
Posts: 5
Location: Kansas
<invalid link removed>
Here's the smallest one- some can be 200MB.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
It's a slightly difference scenario this time:
Quote:
. 2014-07-29 13:08:28.001 Retrieving directory listing...
> 2014-07-29 13:08:28.001 CWD /KSHSociety/30299/2013-05-24/
< 2014-07-29 13:08:28.031 250 CWD command successful.
> 2014-07-29 13:08:28.031 PWD
< 2014-07-29 13:08:28.051 257 "/KSHSociety/30299/2013-05-24" is current directory.
> 2014-07-29 13:08:28.051 TYPE A
< 2014-07-29 13:08:28.071 200 Type set to A.
> 2014-07-29 13:08:28.071 PASV
. 2014-07-29 13:08:43.802 Timeout detected.
. 2014-07-29 13:08:43.802 Could not retrieve directory listing
< 2014-07-29 13:08:43.802 Script: Lost connection.
< 2014-07-29 13:08:43.802 Script: Timeout detected.


Though the root cause is still the same, the connection with the server was lost. I'm not sure how to help you further.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License