Topic "Timeout when synchronize command is run"

Author Message
BenJ
[View user's profile]

Joined: 2009-10-14
Posts: 4
Hi,

I'm having a problem where every time I run the synchronize command it times out and the transfer fails. The script I run is:

Code:
option batch on
option confirm off
option transfer binary
open ftp://username:pass@12.34.56.78
synchronize remote ..\..\site_backups\site_backup-2009-10-13-235902 /httpdocs
close
exit


This always produces the following output in the windows command prompt:

Code:
batch        on
confirm      off
transfer     binary
Connecting to 12.34.56.78 ...
Connected with 12.34.56.78. Waiting for welcome message...
Connected
Starting the session...
Reading remote directory...
Session started.
Active session: [1] username@12.34.56.78
Comparing '..\..\site_backups\site_backup-2009-10-13-235902' with '/httpdocs'...

Lost connection.
Timeout detected.
Could not retrieve directory listing
Opening ASCII mode data connection for /bin/ls.
Error listing directory '/httpdocs/study/courses/undergraduateCourses/SchoolOfHe
althScienceAndSocialCare/CourseInfoSheets'.
Session username@12.34.56.78' closed.
No session.
No session.


This was working fine for the past few months, so I'm not sure why this has now stopped working and is timing out. Could this be due to a local or remote network issue, or some other issue with the FTP software at the remote host?

I'd be very grateful for any pointers anyone has.

Many thanks
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Please post a full log file showing the problem.

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. For posting extensive logs you may use pastebin or similar application. 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 may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.
_________________
Martin Prikryl
BenJ
[View user's profile]

Joined: 2009-10-14
Posts: 4
Thanks - I'll email the log to you.

Ive tried upgrading to version 4.2.3, but the same issue still occurs.

Timeout seems to usually occur on the same directory - I've tried navigating to the directory via the WinSCP GUI and it can list the contents OK.
BenJ
[View user's profile]

Joined: 2009-10-14
Posts: 4
Thanks for the pointer - I've tried increasing the timeout via the /timeout switch, but it seems to have no effect, even when I give it a large value such as 1000 seconds.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Does the timeout then occurs after the 1000 seconds?
_________________
Martin Prikryl
BenJ
[View user's profile]

Joined: 2009-10-14
Posts: 4
No, it happens quicker than that - within about a minute.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
So can you post a log file?
_________________
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