Posted: 2011-06-02 21:52
I have a scheduled task which calls WinSCP every two minutes, all day every day. It checks to see if a small file exists and if so, it transfers it.
About twice a week, WinSCP gets stuck and doesn't exit. There seems to be no consistent time of day, day of week- not sure how to reproduce other than to call up WinSCP thousands of times. I do have Process Explorer on the machine with WinSCP and can post stack trace & other interesting info, in addition to the usual logs, version number, scripts, etc. Here it goes:
WinSCP Version 4.3.3 (Build 1340) (OS 6.1.7600)
- Also happened with 4.2.9 (Build 938) (OS 6.1.7600)
Running on Windows Server 2008 R2 Standard
Transfer Protocol: SFTP (SCP) using a keypair
Using scripting, not the GUI. It's called from a scheduled task, called OvDExch, with no desktop interaction.
We have several logs, they all end like this (with different timestamps):
> 2011-06-01 17:25:08.485 Script: close
. 2011-06-01 17:25:08.485 Closing connection.
. 2011-06-01 17:25:08.485 Sending special code: 12
. 2011-06-01 17:25:08.485 Sent EOF message
. 2011-06-01 17:25:08.485 [Shell] Closing connection.
. 2011-06-01 17:25:08.485 [Shell] Sending special code: 12
. 2011-06-01 17:25:08.485 [Shell] Sent EOF message
I am emailing a zip file with full logs plus the scripts used, look for subject "Hang on June 1st".
Details on the hung process, via Process Explorer:
The "TCP/IP" tab shows that it has no connection open. (The same tab shows connections on an actively transferring WinSCP process.) It has been nearly a day between the process hang any my looking at it so I'm not sure when the connections closed.
Thread details about the hung WinSCP:
Thread 5952 - WinSCP.exe+0x1af4
Thread 3016- ntdll.dll!EtwDeliverDataBlock+0x453
Thread 5560- ntdll.dll!TpCallbackIndependent+0x238
I hope that the stack traces plus the logs can point you to the issue, even though the steps to reproduce are not clear.
Thanks for your time
Location: Prague, Czechia
Thanks. Got the email. Will reply early next week.
Posted: 2011-06-16 21:07
Got your reply, got a repeat with the logs you asked for, and sent it zipped up with a message to your email address. Thanks!
You can post new topics in this forum
And it's free!