Timeout...

Advertisement

cdannenberg
Joined:
Posts:
5
Location:
Kansas

Timeout...

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,88).
> 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?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

Re: Timeout...

The "Timeout detected" message is nonsense. It's a bug. Added to tracker:
https://winscp.net/tracker/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?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

It's a slightly difference scenario this time:
. 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.

Reply with quote

Advertisement

You can post new topics in this forum