Topic "Server shutdown before transfer could complete!"

Author Message
hokeycokeyboy
[View user's profile]

Joined: 2016-05-26
Posts: 2
Location: North West UK
I'm guessing this is a fairly regular issue, but I haven't been able to find it while searching so starting a new thread. Apologies in advance if traipsing over old ground...

I have a client connects in using winscp to pull files from a mailbox on our server. For some reason, they connect in, disconnect, then re-connect in to pull files. Occassionally, when they have transferred the last file, we get "Server shutdown before transfer could complete!" for the comms session and the last file they collected is left in the mailbox as the host server does not get notification of it having been picked up successfully. Then when the client connects in again, the file is still present in the mailbox so is transferred again. We advised the client to put an ls -lrt prior to issuing the quit; but this has had no effect.

This is the script the client is using in batch mode:

"option batch abort\n" +
"option confirm off\n" +
"option transfer binary\n" +
"open " + SESSION + "\n" +
"get -speed=512 " + REMOTEPATH + "*" + " \"" + LOCALPATH + "\n" +
"ls -lrt\n" +
"close\n" +
"exit\n");

Any thoughts would be gratefully received.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
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.
hokeycokeyboy
[View user's profile]

Joined: 2016-05-26
Posts: 2
Location: North West UK
Attached log supplied by client showing five separate connections to pull files. As you can see in the second and third connections, the same file is available to collect. The 'server closed connection' was generated at our end when the client first collected the file successfully, therefore leaving the file in the mailbox which the client then collected a second time.
punchpub_log.txt (2.9 KB) Private file

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Session log file, please, not XML log.
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