WinSCP process terminated with exit code 3.

Advertisement

oviganesh
Joined:
Posts:
7
Location:
USA

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.
Last edited by oviganesh on 2022-02-04 16:29; edited 1 time in total
  • WinsCP_02022022__Success_Logs.txt (43.39 KB, Private file)
Description: The process failed on 02/02/2022. I have attached log for success process.
  • Winscp_02042022_Failure_Logs.txt (8.54 KB, Private file)
Description: The process failed on 02/04/2022. I have attached log for failure process.

Reply with quote

Advertisement

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

Re: WinSCP process terminated with exit code 3.

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

Reply with quote

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.

Reply with quote

martin
Site Admin
martin avatar

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?

Reply with quote

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar

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?

Reply with quote

Advertisement

You can post new topics in this forum