Synchronize resuming transfer not working when connection lost during "Error listing directory"

Advertisement

unpatrice
Joined:
Posts:
4
Location:
france

Synchronize resuming transfer not working when connection lost during "Error listing directory"

I use the synchronize command with resumesupport on and multiple retry loop in my batch to prevent lost connection.

The resuming works great when connection lost during transfer but not pending listing directory.

If connection is lost during listing directory operation, the synchronize is lost and it begins from the start.
With little bandwidth connection and lots of directories to synchronize, you cannot complete a total synchronization ever.

It would be great to enhance the resume support option to tackle this issue.

Reply with quote

Advertisement

unpatrice

Re: Synchronize resuming transfer not working when connection lost during "Error listing directory"

to be more precised

winscp reconnect but do not resume (it restarts from the beginning of the sync folder)

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Synchronize resuming transfer not working when connection lost during "Error listing directory"

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Advertisement

unpatrice
Joined:
Posts:
4
Location:
france

Re: Synchronize resuming transfer not working when connection lost during "Error listing directory"

Hi

See attached the log file.

As you can see, the disconnection problem is "Timeout detected. (control connection). Could not retrieve directory listing".

After that, even with the reconnecttime option, the script exits.
  • synchroSalsaFTP_20160530_1.7z (8.94 MB, Private file)

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Synchronize resuming transfer not working when connection lost during "Error listing directory"

But it does try to reconnect:

. 2016-05-30 13:15:56.624 Timeout detected. (control connection)
. 2016-05-30 13:15:56.624 Could not retrieve directory listing
. 2016-05-30 13:15:56.624 Connection was lost, asking what to do.
. 2016-05-30 13:15:56.624 Asking user:
. 2016-05-30 13:15:56.624 Lost connection. ("Timeout detected. (control connection)","Could not retrieve directory listing")
< 2016-05-30 13:15:56.624 Script: Lost connection.
< 2016-05-30 13:15:56.624 Script: Timeout detected. (control connection)

< 2016-05-30 13:15:56.624 Could not retrieve directory listing
< 2016-05-30 13:16:01.625 Script: Connecting to salsa:4009 ...
. 2016-05-30 13:16:01.625 Connecting to salsa:4009 ...
. 2016-05-30 13:16:16.625 Timeout detected. (control connection)
. 2016-05-30 13:16:16.625 Connection failed.
. 2016-05-30 13:16:16.625 Connection was lost, asking what to do.
. 2016-05-30 13:16:16.625 Asking user:
. 2016-05-30 13:16:16.625 Connection failed. ("Timeout detected. (control connection)","Connection failed.")
< 2016-05-30 13:16:16.625 Script: Connection failed.
< 2016-05-30 13:16:16.625 Script: Timeout detected. (control connection)

< 2016-05-30 13:16:16.625 Connection failed.
< 2016-05-30 13:16:21.625 Script: Connecting to salsa:4009 ...
. 2016-05-30 13:16:21.625 Connecting to salsa:4009 ...
. 2016-05-30 13:16:36.626 Timeout detected. (control connection)
. 2016-05-30 13:16:36.626 Connection failed.
< 2016-05-30 13:16:36.626 Script: Lost connection.
< 2016-05-30 13:16:36.626 Script: Timeout detected. (control connection)

< 2016-05-30 13:16:36.626 Could not retrieve directory listing

< 2016-05-30 13:16:36.626 Error listing directory '/Aris/SIV/XSD-WSDL/XSD0.39/xsd/ImmatSivService/ImmatSurVehiculeNeufPeSIT/onFile'.

For 30 seconds, as you have configured:

> 2016-05-30 11:33:37.788 Script: option reconnecttime 30
< 2016-05-30 11:33:37.788 Script: reconnecttime 30

Reply with quote

Advertisement

You can post new topics in this forum