Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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.
spaceace32

"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.