Today around noon we had to restart a remote desktop computer on which the VisualCron server runs (Windows Server 2019 Standard). The problems were not related to VisualCron. We hadn't done an upgrade of VisualCron.
When the shutdown started, the first errors appeared:
17.12.2021 12:19:14 Info System is shutting down
17.12.2021 12:19:14 Info VisualCron Server is shutting down
17.12.2021 12:19:14 Info Shutting down running processes
17.12.2021 12:19:14 Err KillProcessAndChildren->Unhandled exception: System.Runtime.InteropServices.COMException (0x8007045B): Der Computer wird heruntergefahren. (Ausnahme von HRESULT: 0x8007045B)
bei System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
bei System.Management.ManagementScope.InitializeGuts(Object o)
bei System.Management.ManagementScope.Initialize()
bei System.Management.ManagementObjectSearcher.Initialize()
bei System.Management.ManagementObjectSearcher.Get()
bei VisualCronService.ProcessAPI.AddProperty(Int32 key_Y, Boolean ismap, Boolean iscomp) in C:\git\code\VisualCronService\Jobs\apiProcess.vb:Zeile 588.
17.12.2021 12:19:14 Err EventLog->ParseObject->Unhandled error: System.OperationCanceledException: Der Vorgang wurde abgebrochen.
bei System.Diagnostics.Eventing.Reader.EventLogException.Throw(Int32 errorCode)
bei System.Diagnostics.Eventing.Reader.NativeWrapper.EvtNext(EventLogHandle queryHandle, Int32 eventSize, IntPtr[] events, Int32 timeout, Int32 flags, Int32& returned)
bei System.Diagnostics.Eventing.Reader.EventLogWatcher.RequestEvents()
At least at this stage all jobs were obviously still there
17.12.2021 12:19:42 Info Startup->Edition: Pro
17.12.2021 12:19:42 Info Startup->License subscription type: Perpetual
17.12.2021 12:19:42 Info Startup->Max version: 9.8.5
17.12.2021 12:19:42 Info Startup->Maintenance expiration date: 2021-12-16 13:23:42
17.12.2021 12:19:42 Info Startup->Offline validation date: 2021-12-16 13:23:42
17.12.2021 12:19:42 Debug Loading language
...
17.12.2021 12:19:45 Debug Loading jobs
17.12.2021 12:19:47 Info Loaded: 447 Job(s)
17.12.2021 12:19:47 Err Trigger error: Der RPC-Server ist nicht verfügbar
17.12.2021 12:19:47 Err Trigger error: . ApproximateReceiveCount@ ApproximateFirstReceiveTimestamp, MessageDeduplicationId MessageGroupId SequenceNumber Number Binary( Server name is emptyB Un�Der RPC-Server ist nicht verfügbar
17.12.2021 12:19:47 Err Trigger error: . ApproximateReceiveCount@ ApproximateFirstReceiveTimestamp, MessageDeduplicationId MessageGroupId SequenceNumber Number Binary( Server name is emptyB UDer RPC-Server ist nicht verfügbar
After that we get thousands of errors in the log file, so obviously Visualcron seems to have fully crashed.
In the late afternoon I noticed that both on the remote where the VC server is installed and on further remotes where only VC clients are running that it wasn't possible to connect to the VC server. After another restart of the remote desktop computer (where the VC server runs) I was able to connect to the VC server again and on the left side of the VC interface I can see all the folders. However, when I click on a folder nothing happens and it seems that all jobs have been lost!!
17.12.2021 18:37:57 Debug Exiting NetworkDrivesAPI.Load
17.12.2021 18:37:57 Debug Loading jobs
17.12.2021 18:37:58 Info Loaded: 0 Job(s)
17.12.2021 18:37:58 Debug Expiring old triggers
17.12.2021 18:37:58 Info Searching for jobs that should have been executed
17.12.2021 18:37:58 Info Running missed jobs between 17.12.2021 18:37:45 and 17.12.2021 18:37:58
Is it possible to recover the jobs? Do you store a history of clients jobs on your servers?