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?
. 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?