"Timeout waiting for WinSCP to respond"

Advertisement

spaceace32
Guest

"Timeout waiting for WinSCP to respond"

I have a working powershell script running on a Windows 7 machine that is dedicated to scrips.
This script uploads a file from another server and uploads it to a 3rd party vendor.

I took the script and copied it to a Windows 2012 server. The script fails with "Timeout waiting for WinSCP to respond" as seen below. This log file (error) is generated through the powershell script.

Exception calling "PutFiles" with "2" argument(s): "Timeout waiting for WinSCP to respond"
At E:\path\upload\Upload.ps1:26 char:5
+ $session.PutFiles("\\HOSTNAME\path\FILEname.dat
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : TimeoutException


I can connect (via UNC) to the server that the file is located just fine. I can't figure out what configuration on the new server is causing this issue.

Any help is appreciated.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,468
Location:
Prague, Czechia

Re: "Timeout waiting for WinSCP to respond"

Please attach full session and debug log files showing the problem (using the latest version of WinSCP).

To generate the log file, set Session.SessionLogPath and set Session.DebugLogPath. If you do not want to post the logs publicly, you can mark the attachments as private.

Reply with quote

Advertisement

You can post new topics in this forum