Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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: WinSCP process terminated with exit code 3.

Did you try to use a tool like a Process Monitor to find out why WinSCP process does not start?
oviganesh

Re: WinSCP process terminated with exit code 3.

Hi @martin, I have also tried retry option (3 times), but still this issue is happening. Last week we released to production environment where we get the same issue. This issue is very critical to us now. This issue is getting resolved only after restart the machine. Pl let us know the fix for this issue.
martin

Re: WinSCP process terminated with exit code 3.

Unfortunately, there's nothing useful in the logs. If you modify the code to retry creating WinSCP Session, does it succeed eventually?
oviganesh

Re: WinSCP process terminated with exit code 3.

@martin, Today again the process failed with same exception. So i have attached both success and failure logs. Both are trying to download the file from SFTP location with proxy server using Winscp.
martin

Re: WinSCP process terminated with exit code 3.

There are no logs attached.
Please post the error logs too once you have them.
oviganesh

WinSCP process terminated with exit code 3.

I am getting this error sometime in "Windows Server 2012 R2 Standard Server", while downloading the file from SFTP location using WinSCP 5.19.5.0.
Exception occurred while executing RiskFreeRate Calculation WinSCP process terminated with exit code 3. There was no output.
Response log file C:\Windows\TEMP\wscp6324.01D74C59.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)
at Refinitiv.Financial.RiskFreeRate.Util.FtpUtility.DownloadFilesUsingSsh(String sourceDirectory, String sourceFilename, String localFileName, String rfrLevel, Boolean isMultipleFile)

I installed .NET Core service as Windows service and this Windows service using WinSCP to download the files from SFTP. Sometime this issue resolved automatically when I reboot the server or when I rerun the Windows service. Today (02/02/2022) this issue happened, but when i rerun to take failure logs, the job was successful. So today I am attaching the success logs, I will attach the failure logs when it happens in the future.