Topic "Timeout waiting for WinSCP to respond"

Author Message
GRR3
[View user's profile]

Joined: 2017-05-31
Posts: 4
I get error "Timeout waiting for WinSCP to respond" on scripts for one vendor. It occurs intermittently, several times a week (~5 of ~70 runs fail).
I have similar scripts to other vendors that do not get this error, so I think this could be a connection issue- but I'm open to the possibility that I have a configuration issue and hoped you might see something in the logs to indicate this.

I have reviewed documentation about this error, but had a question about:
"Alternatively, you can use (undocumented) property Session.XmlLogPath to change the log file location."

In my scripts, I set up locations for session and debug logs that I know the account running the script has access to. Are these logs different than the log mentioned above?
If so, would I set this (in Powershell) as: $session.XmlLogPath = "\\location_of_log\"

Thank you.
2017-Sep-04_04-30-02_CH_debug_log.txt (48.29 KB) Private file

Description: debug log

2017-Sep-04_04-30-02_CH_session_log.txt (9.3 KB) Private file

Description: session log

Advertisements
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26705
Location: Prague, Czechia
I do not see any "Timeout waiting for WinSCP to respond" error in the log file. Is this really a log file of the failed session? Can you post a callstack of the exception?
Guest




I have the script set up to create separate log files. I have attached the log file for the script itself, which shows the exception caught.

I also create separate session and debug logs for each connection the script makes and in the previous post attached the logs for the connection that failed.

I'm not sure what the callstack is, or I would post it.
script_to_forum.txt (13.39 KB) Private file

Description: script

2017-Sep-04_04-30-02_script_log.txt (2.34 KB) Private file

Description: script log

martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26705
Location: Prague, Czechia
OK, I didn't notice, that you are not using the latest version of WinSCP.

Please upgrade and post new session and debug log files.
GRR3
[View user's profile]

Joined: 2017-05-31
Posts: 4
martin wrote:
OK, I didn't notice, that you are not using the latest version of WinSCP.

Please upgrade and post new session and debug log files.


I have updated to the latest version. Again, this error occurs intermittently, so this is the first occurrence after updating.

Thank you.
2017-Sep-14_11-30-01_WinSCP_session_log.txt (12.39 KB) Private file

Description: session log

2017-Sep-14_11-30-01_WinSCP_debug_log.txt (51.13 KB) Private file

Description: debug log

2017-Sep-14_11-30-01_my_script_log.txt (486 Bytes) Private file

Description: script log

martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26705
Location: Prague, Czechia
WinSCP stops on waiting for the server to open file fil2041144889.mbx.PAH60384.75261.

I do not know if your server is ever going to respond, obviously.

Anyway, you have set SessionOptions.Timeout to 120 seconds.

But as Session.Timeout is set to its default 60 seconds, the .NET assembly will kill WinSCP after those 60 seconds, so WinSCP will never have a chance to wait 120 seconds.

If you really want WinSCP to wait 120 seconds (hoping the server ever responds), you have to set the Session.Timeout at least to 120 seconds too.
Advertisements

You can post new topics in this forum

Search

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