I am using the VisualCron demo with intent to purchase the software, but I am getting failures for batch jobs that run with Background Execution.
We started using the software yesterday on a Server 2008 R2 server and have about 12 jobs. All jobs were configured to use Background Execution. The jobs are all batch files that kick off executables that perform basic file operations, sql commands, and web service calls.
The jobs were running fine up until this morning when they all started failing. If any jobs were manually run on the same server, they would work fine. We tried adjusting the task execution options, including the credentials, the Logon Type, and API vs Managed Code. None of those settings had any impact on the failures.
I created a new job, it was a batch file that pinged localhost. This job would not start with background execution. The System Log (debug) for VC displays the following:
Task completed: Steve Test (4086)
Setting previous task in TaskProcessCompleted: Steve Test (f80b3af8-d510-4ab6-b926-a5a8c413b777) in job: Steve Test
Process status - About to raise TaskCompleted (4086)
Task completed: Steve Test (4086)
Closing desktop handles (4086)
Process status - About to raise TaskCompleted (4086)
Ending output readers (4086)
Closing desktop handles (4086)
Ending timeout timer (4086)
Ending output readers (4086)
Could not kill process, err: No process is associated with this object.
Ending timeout timer (4086)
Ending output readers (4086)
Process status - ProcessHandles closed (4086)
Ending timeout timer (4086)
Process status - ExitCode fetched (4086)
Process status - process has already exited at WaitForExit
Process status - process has exited at retrieving process id (4086)
Task "Steve Test" exited with code: -1073741502(Error description was not found (-1073741502))
Exception in Task: Non zero exit code
Process status - trying to retrieve exit code
Process status - waiting for exit
Process status - OutPut captured (4086)
Process status - starting up output reader
Impersonation result: True
Task started: Steve Test (4086)
Task (4086) was added to processlist: Steve Test
Skipping Condition check because the Job was run manually.
User "Steve Eversen" - Ran Job: Steve Test
Job (4096) was added to processlist: Steve Test
Job started: Steve Test
Windows System Event Log displays the following message:
Application popup: cmd.exe - Application Error : The application was unable to start correctly (0xc0000142). Click OK to close the application.
Everything works fine if I use Foreground Execution. But my understanding is that BE uses the VCService and FE uses the VCTray. It seems like the VCService is hung up or being prevented from launching new BE tasks. I don't understand why it was working fine for several hours and then suddenly nothing works as a BE. I have not rebooted or restarted the VCService. I have disabled AV and that has not helped. I would prefer to use BE if at all possible. Any thoughts?