Topic ".NET library - error while running scheduled task"

Author Message
lakovacs56
[View user's profile]

Joined: 2013-02-01
Posts: 1
Hello Everyone,

My little .NET application does simple tasks: downloads files via FTP or SFTP using WInSCP .NET library (5.0.9, build 2578).
When I schedule this on a Windows Server 2008 R2, sometimes I get this error message:
'WinSCP process terminated with exit code 3 and output "", without creating a log file.'

Running exactly the same task (same user, same commands) manually there is no error.
After restarting the server everything works fine.

First of all I'd like to know more about 'exit code 3'.
Where can be found detailed information?

Thanks, Lazslo
Advertisements
kikcorp

Guest


Hi all, we have the same problem, exit code 3 with out any descriptions...

Please help!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Can any one of you try to upgrade to 5.1.4? If that does not help, please set Session.DebugLogPath and email me the log.

You will find my address (if you log in) in my forum profile.
diablo3goldzcl

Guest


Recently all gone well.
calin

Guest


Hi,

I still encounter this issue having same error message:
"WinSCP process terminated with exit code 3 and output "", without creating a log file."

WinSCP 5.1.0
OS: windows server 2008 r2 enterprise, sp1

WinSCP is running In a windows service on the above OS. The job run well untill 00:30 CET, 27.02.2013. Since then the WinSCP job fails to open session throwing same exception no matter what server is trying to connect to(I am currently using it for 3 different SFTP connections).

The Windows Service is installed on two simmilar machines, but I get this error only on one of them.

Best regards!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
calin wrote:
I still encounter this issue having same error message:
"WinSCP process terminated with exit code 3 and output "", without creating a log file."

Please upgrade to 5.1.4. If that does not help set Session.DebugLogPath and email me the log.
You will find my address (if you log in) in my forum profile.
herostime
[View user's profile]

Joined: 2013-03-01
Posts: 1
Location: china
I am also very care about this question, because i have suffered this condition, thanks for the answers
boxpavel
[View user's profile]

Joined: 2013-03-03
Posts: 1
Location: Moscow
prikryl wrote:
calin wrote:
I still encounter this issue having same error message:
"WinSCP process terminated with exit code 3 and output "", without creating a log file."

Please upgrade to 5.1.4. If that does not help set Session.DebugLogPath and email me the log.
You will find my address (if you log in) in my forum profile.


I have a similar problem OS server 2008 R2, after upgrade to 5.1.4
debug log:

[2013-03-03 08:43:06.619Z] [0003] Session.SessionOptionsToOpenArguments leaving
[2013-03-03 08:43:06.619Z] [0003] Command: [open -hostkey="ssh-rsa 2048 f3:39:87:14:b1:64:35:ef:59:3d:8e:8e:90:f9:65:cc" -privatekey="C:\Scripts\Service\private.ppk" -timeout=15 "sftp://abs@10.110.69.101:4268"]
[2013-03-03 08:43:06.639Z] [0003] ExeSessionProcess.ExecuteCommand entering
[2013-03-03 08:43:06.639Z] [0003] ExeSessionProcess.ExecuteCommand leaving
[2013-03-03 08:43:06.691Z] [0003] Process 58356 exited with exit code 3
[2013-03-03 08:43:06.692Z] [0003] Exception: WinSCP.SessionLocalException: WinSCP process terminated with exit code 3 and output "", without creating a log file.
[2013-03-03 08:43:06.694Z] [0003] Exception: WinSCP.SessionLocalException: WinSCP process terminated with exit code 3 and output "", without creating a log file.
at WinSCP.Session.Open(SessionOptions sessionOptions)
[2013-03-03 08:43:06.695Z] [0003] Session.Cleanup entering
[2013-03-03 08:43:06.695Z] [0003] Terminating process
[2013-03-03 08:43:06.695Z] [0003] Command: [exit]
debug.log (5.9 KB) [Download]

Description: (none)

sorcer1fr

Guest


Hello,

i have the same message :
Code:
[2013-03-05 09:45:49.900Z] [0001]   Exception: WinSCP.SessionLocalException: WinSCP process terminated with exit code 3 and output "", without creating a log file.
debug.log (5.74 KB) [Download]

Description: (none)

suchanv
[View user's profile]

Joined: 2013-01-30
Posts: 3
Location: Praha
Hi,
I have the same message:
WinSCP.SessionLocalException: WinSCP process terminated with exit code 3 and output "", without creating a log file.

WinSCP version 5.1.4 with WinSCP.dll version 1.0.5.2937
On Windows Server 2008 R2 64 bit

My C# app is 32 bit. When it runs as console all is OK. When it runs as service fails with this error message.

Please help
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
suchanv wrote:
I have the same message:
WinSCP.SessionLocalException: WinSCP process terminated with exit code 3 and output "", without creating a log file.

WinSCP version 5.1.4 with WinSCP.dll version 1.0.5.2937
On Windows Server 2008 R2 64 bit

My C# app is 32 bit. When it runs as console all is OK. When it runs as service fails with this error message.

Thanks for your report.
I have sent you an email to address you have used to register on this forum.
_________________
Martin Prikryl
OmmyT
[View user's profile]

Joined: 2013-03-26
Posts: 2
I recently ran into the same issue with WinSCP 5.1.1 - any news about that?

(scheduled task on W2K8R2 -> WinSCP.SessionLocalException: WinSCP process terminated with exit code 3 and output "", without creating a log file -> WinSCP.Session.Open(SessionOptions sessionOptions))
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
OmmyT wrote:
I recently ran into the same issue with WinSCP 5.1.1 - any news about that?

(scheduled task on W2K8R2 -> WinSCP.SessionLocalException: WinSCP process terminated with exit code 3 and output "", without creating a log file -> WinSCP.Session.Open(SessionOptions sessionOptions))

Please download Process Monitor from:
https://technet.microsoft.com/en-us/sysinternals/bb896645.aspx

When you run it, it will ask you to enter filter (if not, use filter toolbar button).
Select "Process Name", "contains", "winscp" => Add => Ok.

Then make the scheduler run WinSCP.

Hopefully some records about the start show up.

The go to File > Save, select "Events displayed using current filter" and PML format (both should be default).

Email me the .pml file.
OmmyT
[View user's profile]

Joined: 2013-03-26
Posts: 2
Hi Martin,

thanks for your answer.
The error only occurs about once a week(SFTP down- and upload every two minutes around the clock), so i will send you the requested log when the error occurs the next time.

Greets
OmmyT
utsav.manik
[View user's profile]

Joined: 2013-04-15
Posts: 1
Location: India
I am also facing same error :

I think change in Service architecture can solve.
We can create separate console application which gets inputs from Service and perform WinSCP task and then send control back to Service.

This is just an idea.Need to apply on my application. Need suggestion.
What you say guys? Will it work?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
utsav.manik wrote:
This is just an idea.Need to apply on my application. Need suggestion.
What you say guys? Will it work?

Not sure it help. Other users are getting the error even for short-lived application that executes regularly from windows scheduler.

I have sent you an email with dev version of the assembly and some more questions/information.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
This issue has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=996
demax

Guest


Any news on this? - having the same problem here.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
demax wrote:
Any news on this? - having the same problem here.

Can you (and anyone else) describe in very details, how do you use WinSCP .NET assembly? What environment? How long does a single session last on avarage? How frequently do you open session and in what intervals? How many sessions does it take before the error start happening? Is the process using WinSCP .NET assembly running continuously or not?

I'm trying to find out how to reproduce the problem.
Guest




prikryl wrote:
demax wrote:
Any news on this? - having the same problem here.

Can you (and anyone else) describe in very details, how do you use WinSCP .NET assembly? What environment? How long does a single session last on avarage? How frequently do you open session and in what intervals? How many sessions does it take before the error start happening? Is the process using WinSCP .NET assembly running continuously or not?

I'm trying to find out how to reproduce the problem.


We are getting this error in our system and using the .dll in a Windows Service that runs a few WinSCP commands every 2 minutes. It takes approximately 2-3 days in order for the error to happen. Currently, we just restart the machine in order to fix it.
james99

Guest


Quote:
Can you (and anyone else) describe in very details, how do you use WinSCP .NET assembly? What environment? How long does a single session last on avarage? How frequently do you open session and in what intervals? How many sessions does it take before the error start happening? Is the process using WinSCP .NET assembly running continuously or not?

I'm trying to find out how to reproduce the problem.


We are currently using the 16/03/2013 dev build of WinSCP (assembly file version 1.1.0.3099).

We have two scheduled tasks set up, one that runs every 5 minutes, the other every 10 minutes. They both call a fairly straightforward console app that uses the WinSCP dll. Note they both connect to the same SFTP site, and will be running concurrently sometimes (not sure if this is related to the issue or not). The session remains open for some time (around 1m-1m30s), as we transfer all files from within around 20 folders to the SFTP site (and vice versa). Both processes ran completely fine for over a month before we received the following error (once the error occurred once, it continued occurring every time the processes ran until we restarted the machine to fix the issue):

[2013-06-09 15:10:26.972Z] [0001] Exception: WinSCP.SessionLocalException: WinSCP process terminated with exit code 3 and output "", without creating a log file.
[2013-06-09 15:10:26.972Z] [0001] Exception: WinSCP.SessionLocalException: WinSCP process terminated with exit code 3 and output "", without creating a log file.
at WinSCP.Session.Open(SessionOptions sessionOptions)

The next time the error occurs I'll try to fire up Process Monitor and send you a .pml file.
iverchenko
[View user's profile]

Joined: 2013-06-07
Posts: 3
I have same symptoms but another error message. My error is "WinSCP.SessionRemoteException: Connection failed."
I ve posted about it on another thread (https://winscp.net/forum/viewtopic.php?t=12533)

And my app worked fine couple of months. And i think i saw this error only once, but i didn't recognize it that time. But last week i've updated my app so it runs two instances of winscp in different threads and connects to the same host in parallel. And the rate of error dramatically increased.
So may be it's the key?

Do any of you run parallel connections?
Yasin

Guest


Same here. We are using winSCP .NET Library with Powershell. Powershell is being run automatically from a product called Microsoft System Center Orchestrator. you can think of it as an automation software. What we get is: Exception calling "Open" with "1" argument(s): "WinSCP process terminated with exit code 3 and output "", without creating a log file." This happens seldom but when it happens, it affects our production.

Script is:

---
Code:
[Reflection.Assembly]::LoadFrom("C:\OpalisOneSource\Logs\fldOptiCash\WinSCP-5.1.5\WinSCP.dll") | Out-Null

$sessionOptions = New-Object WinSCP.SessionOptions
$sessionOptions.Protocol = [WinSCP.Protocol]::Sftp
$sessionOptions.HostName = "172.19.1.81"
$sessionOptions.UserName = "opalis"
$sessionOptions.Password = "PASSWORD CHANGED HERE"
$sessionOptions.SshHostKeyFingerprint = "ssh-rsa 2048 RSA-KEY-CHANGED-HERE"

$session = New-Object WinSCP.Session
$session.Open($sessionOptions)

$transferOptions = New-Object WinSCP.TransferOptions
$transferOptions.TransferMode = [WinSCP.TransferMode]::Binary
$transferOptions.FilePermissions = $null
$transferOptions.PreserveTimeStamp = $false

$localpath = "C:\OpalisOneSource\Logs\fldOptiCash\FOLDER HERE"
$remotepath = "/FOLDERA/FOLDERB/*.csv"

$transferResult = $session.GetFiles($remotepath, $localpath, $False, $transferOptions)

$arr = New-Object collections.arraylist
$transferResult.transfers | foreach{$arr.Add($_.FileName)}

$session.Dispose()

---

Please note that, this code is being run via Orchestrator's service. If it fails like above, i restart the service and problem is solved. But after 3-4 days, same thing happens.

I'm aware that a bug record is open for a long time. Please help solve this problem since we love and use WinSCP in a very important production environment.

Regards,

Yasin Uzman
yasinuzman |a t| gmail.com
agriffin
[View user's profile]

Joined: 2013-05-09
Posts: 7
*Seeing this for a while now, apparently since Feb-Mar. Using Visual Cron to kick off the task, running ~ 20 times/ hour (20 separate jobs, each runs every hour, staggered)
*Visual Cron runs a Perl script that kicks off a filemasked download(this was happening on another server with uploads as well but has been replaced with a different batch job).
*Last reboot fixed the problem for ~ 2 weeks. This system is crucial to several environments, and can't be rebooted without announced downtime, so the problem is a bit exacerbated.
*Short sessions, usually 4-8 files ranging from 1-4000 MB in size.
*Once the bug hits, WinSCP will not run from *any* automated process until the system is rebooted. It will not run a simple command line connect from windows task scheduler, from the automation software we are using, or anywhere else automated, regardless of user account.
*The process that launches it (Visual Cron)runs as a service, but restarting the service has no effect.
*Userland command windows continue to function normally.


prikryl wrote:
demax wrote:
Any news on this? - having the same problem here.

Can you (and anyone else) describe in very details, how do you use WinSCP .NET assembly? What environment? How long does a single session last on avarage? How frequently do you open session and in what intervals? How many sessions does it take before the error start happening? Is the process using WinSCP .NET assembly running continuously or not?

I'm trying to find out how to reproduce the problem.
demax
[View user's profile]

Joined: 2013-06-12
Posts: 4
Location: Stockholm
prikryl wrote:
demax wrote:
Any news on this? - having the same problem here.

Can you (and anyone else) describe in very details, how do you use WinSCP .NET assembly? What environment? How long does a single session last on avarage? How frequently do you open session and in what intervals? How many sessions does it take before the error start happening? Is the process using WinSCP .NET assembly running continuously or not?

I'm trying to find out how to reproduce the problem.


We are using the .NET assembly and have created an .exe that's scheduled to fire off every 5 minutes. To answer your questions:

how do you use WinSCP .NET assembly?
Yes

What environment?
Server 2008R2

How long does a single session last on avarage?
~30-60 seconds

How frequently do you open session and in what intervals?
Every 5 minutes, 24/7

How many sessions does it take before the error start happening?
Unclear, It was running fine for about 3 months before this error appeared.

Is the process using WinSCP .NET assembly running continuously or not?
no, started and stopped every time the scheduled task is triggered and the job is finnished

I'm starting to think that this has got something to do with the windows desktop heap size for non-interactive desktop sessions. Sometimes we receieve error code "0xC0000142" from task scheduler. i'm aware of that the desktop heap is only for storing graphical/form objects but could it be the case that even tho winscp.exe is ran non-interactive there is something that has to do with the interface that's initialized?

Thanks in advance
agriffin
[View user's profile]

Joined: 2013-05-09
Posts: 7
Can anyone here say they won't make it more than a week reliably? If so, can you set the winscp executables to run in win 2003 compatibility mode for all users? We have made this change and haven't seen a problem since, but the intermittent nature of this error makes it difficult to say. Additionally, has anyone tried seeing if changing the desktop heap makes a difference?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Thanks for all the reports. Sorry for late answer, I was away on vacation.

I read all the new and old reports over and over again. I seems the problem is occurring on Windows 2008 (R2 SP1) only (though for some reports where I know Windows version number 6.1.7601, it can also be Windows 7 SP1).

That may explain why I was not able to reproduce the problem on my Windows 8 test machine, where I have a task scheduled every minute for over 4 months without a single problem. I have tried now to intensify the test by running multiple sessions in parallel as @iverchenko suggested.

Can others test suggestion by @agriffin to set process to run in 2003 compatibility mode?
mshah
[View user's profile]

Joined: 2013-07-19
Posts: 1
Hi Friends,
I have same problem with running multiple sessions on win server 2008 R2. I am badly stuck at this, kindly help if anybody has a solution.
thanks,
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
I was able to reproduce the problem in the end. It took about 11 days and 100 000 sessions. Unfortunately, my machine crashed shortly afterwards, before I even noticed, so I was not able to debug the issue. I'm running second round now.
Anyway, inspecting the logs, I'm pretty sure now, the root cause in not in WinSCP, but rather in Windows OS (or .NET framework).
_________________
Martin Prikryl
jasongk
[View user's profile]

Joined: 2013-07-30
Posts: 1
I too have this error. When do you think this error could be fixed?
(please don't take this as i'm pressuring you or anything to fix this, i'm just curious)

---
Some more info just in case:

OS: Windows 2008 R2 server
.net version: 3.5

Application is using the dll from the download page (version 5.1.4).
I run the application every day at a set time (9am) once, i started to get these errors (Could not open session, WinSCP process terminated with exit code 3 and output "", without creating a log file).
I use this dll in my C# application. The application connects to a sftp remote server and downloads a bunch of files (around 20).
Application is scheduled to run via the MSSQL Server agent and not via windows scheduler.
MEMScadman

Guest


This problem is not limited to .net library use. I am having a similar issue executing a WinSCP.com 5.2.1 script from a batch script inside a service built on srvany. The OS is Windows Server 2008 R2 Standard SP1.

The WinSCP script contains commands to perform a directory listing using FTP over SSL.
It runs every 5 seconds and and two such services running simultaneously fail after about a day, generating error code 3. No log file is created. There was nothing in the Windows log files relating to the failure.

The symptoms are the same as others have reported - interactive operation runs fine but any background WinSCP operation fails - even if the service is stopped/restarted. Apparently, there is a resource that has been exhausted as the machine must be rebooted to recover.

An attempt to run procmon, filtered for WinSCP, caused it to run out of memory after about an hour.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
jasongk wrote:
I too have this error. When do you think this error could be fixed?
(please don't take this as i'm pressuring you or anything to fix this, i'm just curious)

As I wrote above, I have no reason to believe this is bug of WinSCP and hence that there's anything to fix.
I believe it is bug in Windows. I'm trying to find out why it Windows entering this dead state and if there's any workaround to employ to prevent that. No luck so far. Still trying... I was able finally to reproduce the problem myself (after 100 000 runs), what makes it easier for me to debug this.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
MEMScadman wrote:
This problem is not limited to .net library use. I am having a similar issue executing a WinSCP.com 5.2.1 script from a batch script inside a service built on srvany. The OS is Windows Server 2008 R2 Standard SP1.

Thanks for your report. I suspected that this is the case. Knowing it for sure narrows the problem down to Windows OS (previously I also suspected .NET framework).
_________________
Martin Prikryl
bitterman1

Guest


It is well known that the exit code 3 is caused by abort() function https://msdn.microsoft.com/en-us/library/k089yyh0.aspx.

It may be possible (although very improbable) that the C Runtime calls abort() on startup. Otherwise, it is the user program (or any of the dependent libraries) that calls abort() or otherwise causes SIGABRT. Although WinSCP source doesn't call this function as-is (as far as I could ascertain after a rather cursory look), OpenSSL library most certainly does.

I suggest a deeper look into it.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
bitterman1 wrote:
It may be possible (although very improbable) that the C Runtime calls abort() on startup. Otherwise, it is the user program (or any of the dependent libraries) that calls abort() or otherwise causes SIGABRT. Although WinSCP source doesn't call this function as-is (as far as I could ascertain after a rather cursory look), OpenSSL library most certainly does.

I was able to reproduce this problem will very simple console application, with no code whatsoever and definitely no OpenSSL library. So it's somewhere within C++ Builder libraries. I'm still looking into this (trying to build debug version of the libraries).
_________________
Martin Prikryl
bitterman1

Guest


prikryl wrote:
I was able to reproduce this problem will very simple console application, with no code whatsoever and definitely no OpenSSL library. So it's somewhere within C++ Builder libraries. I'm still looking into this (trying to build debug version of the libraries).


I was wondering if a simple executable compiled with another compiler (Visual C++, Intel, GNU++) also aborts on startup under the same conditions.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
bitterman1 wrote:
I was wondering if a simple executable compiled with another compiler (Visual C++, Intel, GNU++) also aborts on startup under the same conditions.

I've meanwhile found that the problem is somewhere inside C++Builder's visual library (VCL).
_________________
Martin Prikryl
joshillian

Guest


As other mentioned earlier in the thread, I too found that switching to Windows 2003 for the task type seemed to resolve my problem.

Appreciate those that contributed the suggestion. The problem had been a significant pain as of late.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
joshillian wrote:
As other mentioned earlier in the thread, I too found that switching to Windows 2003 for the task type seemed to resolve my problem.

Thanks for yuor report. What exactly did you do? Did you change a scheduler task settings or WinSCP process/executable settings?
_________________
Martin Prikryl
goetterfunke

Guest


I just want to say that we are also working on the exact same error message.
We use a c# service with the .NET assembly and after each loop we get the error 3 from WinSCP.

System is 2008 R2 x64
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Everyone, please upvote my related question on StackOverflow:
http://stackoverflow.com/questions/18893366/why-registerclass-fails-with-error-not-enough-memory
goetterfunke

Guest


Thank you for your work on this problem. I can't upvote because i didn't have 15 repurtation (points?)..
Guest




Thank you for following up on this issue, you'll really help me out with a problem I have!
Phuc Pham

Guest


prikryl wrote:

Hi Prikryl,
Any updates on this?
I'm facing the same issue and need your help.
My email: phuphucpham@gmail.com
Thanks,
Phuc
JKL
[View user's profile]

Joined: 2013-10-17
Posts: 6
Location: Poland
I have the same problem.

The error is:
Code:
WinSCP.SessionLocalException: WinSCP process terminated with exit code 3 and output "", without responding (response log file was not created). This could indicate lack of write permissions to the log folder or problems starting WinSCP itself.


but it only occurs when I run it via task scheduler.

The funny thing is that it runs with no problem when I start it manually. Same user logged in that runs scheduled task. Same application. The only difference is that running through task scheduler gives me error.

Running on Windows Server 2008 R2 Standard.

I have already tried versions 5.1.7 and 5.2.6.

Compatibility mode makes no difference.

Can you help?

----
one more observation

If in task properties on General tab in Security options i set the radio to "Run only when user is logged in" - no error.
"Run whether user is logged on or not" - error.

----

Another one:
Friend told me that it happens because winscp requires User Environment. He suggested that to solve it I should use SSH Stack instead of sending parameters to application.

I don't really know what that means, but maybe it will help you out.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
JKL wrote:
I have already tried versions 5.1.7 and 5.2.6.

Compatibility mode makes no difference.

Can you help?

Did you restart your machine?

Quote from Bug 996:
Quote:
While the fixed versions no longer gradually exhaust system resources, they cannot recover resources exhausted by previous buggy versions. So it's still necessary to restart affected machine to recover the system.

Let us know if it helped.
JKL
[View user's profile]

Joined: 2013-10-17
Posts: 6
Location: Poland
prikryl wrote:
JKL wrote:
I have already tried versions 5.1.7 and 5.2.6.

Compatibility mode makes no difference.

Can you help?

Did you restart your machine?


It's not that simple I'm affraid.
Can you tell me why restarting it might have meaning?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
JKL wrote:
It's not that simple I'm affraid.
Can you tell me why restarting it might have meaning?

I've already quoted an explanation above, once again:
Quote:
While the fixed versions no longer gradually exhaust system resources, they cannot recover resources exhausted by previous buggy versions. So it's still necessary to restart affected machine to recover the system.

So please, give it a try.
_________________
Martin Prikryl
JKL
[View user's profile]

Joined: 2013-10-17
Posts: 6
Location: Poland
Restart helped.
Thank you.
Army

Guest


Hi Everyone,

Although this post is a couple months old now, I came across it only by fluke, but thought I would share my findings on this, just to see if it helps anyone.
We're running multiple scheduled tasks on a Windows Server 2008 R2 SP1, .NET Framework version 4.5.
Every months / 3 weeks we get a similar and annoying 0xc0000142 result code for all of our scheduled tasks. It seemed to have sorted by forcing the task to restart on error inside Task Scheduler, however this issue reappeared a couple of weeks ago.

A restart is definitely the only solution, while the cause in our case seems to be pending Windows updates.

Basically, every time the error code appears in the Task Scheduler it's for sure that there's an update requiring restart in the background.
I'm not entirely sure if it's connected to the atoms mentioned in the StackOverflow thread, but it's very annoying and would appreciate any solutions you might have.

Cheers!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Army wrote:
Basically, every time the error code appears in the Task Scheduler it's for sure that there's an update requiring restart in the background.
I'm not entirely sure if it's connected to the atoms mentioned in the StackOverflow thread, but it's very annoying and would appreciate any solutions you might have.

Is the 0xc0000142 an actual exit code of WinSCP? Can you give us more details on the task? (how does it interact with WinSCP)
_________________
Martin Prikryl
Army
[View user's profile]

Joined: 2014-06-25
Posts: 2
Location: UK
Hey Martin,

Thanks for getting back.
prikryl wrote:
Is the 0xc0000142 an actual exit code of WinSCP? Can you give us more details on the task? (how does it interact with WinSCP)


No, that's what I was trying to reflect on that it doesn't seem to be a WinSCP issue, but more like a Windows Server 2008 R2 issue whereby if there's a Windows update pending the task throws this error code in Task Scheduler. So it's definitely an internal (prolly Windows?) error code, and I'm receiving it just like people up the thread even though my scheduled task has nothing to do with WinSCP..
I was just wondering if anyone found anything useful regarding this issue as I couldn't find anything on official forums.. Confused
roby1121

Guest


Army wrote:
Hey Martin,

Thanks for getting back.
prikryl wrote:
Is the 0xc0000142 an actual exit code of WinSCP? Can you give us more details on the task? (how does it interact with WinSCP)


No, that's what I was trying to reflect on that it doesn't seem to be a WinSCP issue, but more like a Windows Server 2008 R2 issue whereby if there's a Windows update pending the task throws this error code in Task Scheduler. So it's definitely an internal (prolly Windows?) error code, and I'm receiving it just like people up the thread even though my scheduled task has nothing to do with WinSCP..
I was just wondering if anyone found anything useful regarding this issue as I couldn't find anything on official forums.. Confused


The same for me.
On my server Windows 2008 R2 an update for Java was waiting for running. In this situation WinScp returns the following error message: "winscp process terminated with exit code 3 and output....".
I made the Java update and next WinScp works fine.
Thanks for your suggestion.

Roberto
Army
[View user's profile]

Joined: 2014-06-25
Posts: 2
Location: UK
roby1121 wrote:
Thanks for your suggestion.


No worries, glad I could help. Very Happy
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License