Topic "timeout during synchonize"

Author Message
jensm
[View user's profile]

Joined: 2009-08-26
Posts: 7
Hi,
I once in a while get a timout while synchronise a folder structure.
Is there a way to recover within the script?
I was looking at the timeout option in the open command and the reconnect option but I'm not sure of it kicks in for this particular case.
Jens

| 30291 KiB | 89.9 KiB/s | binary | 72%Timeout waiting for external console to complete the command.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24538
Location: Prague, Czechia
jensm wrote:
I was looking at the timeout option in the open command and the reconnect option but I'm not sure of it kicks in for this particular case.

It does not. This is very special case. How do you run WinSCP?
_________________
Martin Prikryl
jensm
[View user's profile]

Joined: 2009-08-26
Posts: 7
Hi, I'm using this script below to sync down data from a slow server. Once in a while I see timeouts. Sometimes it reconnects and sometimes it doesn't. I found out that the -timeout option in the open command seems to apply for the entire sync session, not just open.
I'm not sure how the reconnecttime option works. If I run it like in the script below then I get an error message "Unknown option 'reconnecttime=14400'". I'm using WinSCP 4.2.3
It would also be good to know what time the reconnecttime option addresses. Is it the time for a single reconnect? That means that if I specify 4 hours and it attemts to reconnect then it would attempt to reconnect for another 4 hours next time the connection is broken (within the same sync session). This assume that the connection got re-established after the first broken connection.


option batch on
option confirm off
option synchdelete off
option reconnecttime=14400
open -timeout=45 xxxxxx
option transfer binary
synchronize local xxxxxxxx .
close
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24538
Location: Prague, Czechia
It is "option reconnecttime 14400", just as with any other option. It limit how long should WinSCP try to reconnect when the connection is broken. When it breaks again later, it tries again the for the same period. Though, still it has nothing to do with the "Timeout waiting for external console to complete the command". The error means what WinSCP.exe is not able to communicate with WinSCP.com that started it. So far I've seen this error only when WinSCP.com was incorrectly run from some another application.
_________________
Martin Prikryl
jensm
[View user's profile]

Joined: 2009-08-26
Posts: 7
thanks! that explains it
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24538
Location: Prague, Czechia
Did you resolve it?
_________________
Martin Prikryl
jensm
[View user's profile]

Joined: 2009-08-26
Posts: 7
prikryl wrote:
Did you resolve it?

yes. Thank you!
fintrax
[View user's profile]

Joined: 2009-10-13
Posts: 1
Hi
I am running the same batch file.
When I run it the command prompt screen shows
batch on
confirm off
Unknown option 'reconnecttime=5'
Connecting to *****
etc
It successfully connects and starts the synchronization but on occassion during the synchronization it just stops.
The ftp server it is synchronizing with just shows disconnected.
I am running winscp 4.1.9 and am wondering how to get the script to reconnect.

Thanks
Stephen
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24538
Location: Prague, Czechia
fintrax wrote:
Unknown option 'reconnecttime=5'
...
I am running winscp 4.1.9 and am wondering how to get the script to reconnect.

Option reconnecttime is supported since 4.2.x only.
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24538
Location: Prague, Czechia
See article on "Timeout waiting for external console to complete the command" error.
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