WinSCP process terminated with exit code 255 or 3

Advertisement

davida
Joined:
Posts:
2
Location:
UK

WinSCP process terminated with exit code 255 or 3

I have a SQL Server Integration Services package containing a Microsoft Visual C# 2008 script which uses the WinSCP .NET assembly to transfer files to a remote SFTP server. The package runs once a day and uploads two files each time.

WinSCP.exe is file version 5.5.1.3970, product version 5.5.1.0
WinSCPnet.dll is file version 1.1.4.3970, product version 5.5.1.0

Since Friday my SSIS package is failing with either of the following errors:

Message: Error when using WinSCP to upload files: WinSCP.SessionLocalException: WinSCP process terminated with exit code 255 and output "", without responding (response log file C:\Windows\TEMP\wscp4BF8.03CE0BB8.tmp was not created). This could indicate lack of write permissions to the log folder or problems starting WinSCP itself.
at WinSCP.Session.Open(SessionOptions sessionOptions)

Message: Error when using WinSCP to upload files: WinSCP.SessionLocalException: WinSCP process terminated with exit code 3 and output "", without responding (response log file C:\Windows\TEMP\wscp28E8.03CE0BB8.tmp was not created). This could indicate lack of write permissions to the log folder or problems starting WinSCP itself.
at WinSCP.Session.Open(SessionOptions sessionOptions)

I've inherited this config so not as familiar as I'd like, however I'm pretty sure my SSIS package runs as SYSTEM (it's configured to use the SQL Agent user, which in turn uses the Local System account), which does have full control over C:\Windows\TEMP, so I'm unsure why no log file is created.

This sounds a lot like https://winscp.net/tracker/996 but that was fixed at 5.2.5, which is an earlier release than the one I'm using, so I'm not certain it's the same issue.

Is there anything else I can provide or look at which may help identify the issue?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,658
Location:
Prague, Czechia

Re: WinSCP process terminated with exit code 255 or 3

Does system restart help? Can you update your version of WinSCP? The latest version may provide better diagnostics.

Reply with quote

davida
Joined:
Posts:
2
Location:
UK

Re: WinSCP process terminated with exit code 255 or 3

martin wrote:

Does system restart help? Can you update your version of WinSCP? The latest version may provide better diagnostics.

Thanks for getting back to me and sorry for the delay replying! The server isn't under my control so I suggested a reboot, however before it could be planned the issue went away. The job has been working successfully for over a week so I suspect the problem was at the remote end rather than with the job or with WinSCP itself.

Reply with quote

Advertisement

You can post new topics in this forum