Three times in the past week, we've had an installation of VC lose its jobs. It's been a different installation affected each time. The first two times, only the jobs disappeared. The last one, however, lost jobs, conditions and connections, although user variables stayed.
Looking in the VisualCron\Settings folder, I see these files listed:
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 8/25/2017 3:07 AM 1310922 jobs.0jdxntxb.mfu.xml
-a---- 9/25/2017 12:51 AM 0 jobs.lnev4uz3.z4v.xml
-a---- 9/25/2017 3:05 AM 118 jobs.xml
-a---- 9/25/2017 3:05 AM 118 JobsFailed20170925.xml
Jobs.xml should be about 1.2 MB in size.
It would appear that a low-virtual-memory condition had something to do with this, because this is in the server log just before midnight on the 24th:
9/24/2017 11:58:55 PM Info Job started: AccessToXml
9/24/2017 11:58:55 PM Info Task started(Write file): Create log file, if necessary (403294)
9/24/2017 11:58:55 PM Info Task completed (Success)->'Create log file, if necessary' (403294)
9/24/2017 11:58:55 PM Info Task started(Create folder): Create base folder, if necessary (403295)
9/24/2017 11:58:55 PM Info Task completed (Success)->'Create base folder, if necessary' (403295)
9/24/2017 11:58:55 PM Info Task started(Create folder): Create output folder, if necessary (403296)
9/24/2017 11:58:55 PM Info Task completed (Success)->'Create output folder, if necessary' (403296)
9/24/2017 11:58:55 PM Info Task started(Write file): Write PowerShell parameters to log file (403297)
9/24/2017 11:58:55 PM Info Task completed (Success)->'Write PowerShell parameters to log file' (403297)
9/24/2017 11:58:55 PM Info Task started(PowerShell): Get Data from FSSMain (403298)
9/24/2017 11:58:55 PM Err Error at starting process (C:\Program Files (x86)\VisualCron\\PowerShell\TaskPowerShell.exe): System.ComponentModel.Win32Exception (0x80004005): The paging file is too small for this operation to complete
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at OBOKIIHBDBPMCFALPGECCIFHCDJPEDKODDGK.MHPBMJGCOCLBHDHAAMMLFOPNPEIFDLGGMLMM.DGKFNFEIJEBKOPHPLDDNBGAOOIKBNNOGOGFH(NOEMICIHJDCELPNILBDNIEPEHLIIGGIANCCC ) in C:\sourcefiles\code\VisualCronService\Jobs\TaskProcesses\Process\ExecuteHelper\clsExecuteHelper.vb:line 845
It appears that the service restarted soon after that, because the first entries in the server log for the 25th appear to be all startup information. Then there's this:
9/25/2017 12:00:25 AM Debug Loading jobs
9/25/2017 12:00:27 AM Err Error loading jobfile, new file was copied to: C:\Program Files (x86)\VisualCron\settings\JobsFailed20170925.xml, error: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderJobClassArray.InitIDs()
at System.Xml.Serialization.TempAssembly.InvokeReader(XmlMapping mapping, XmlReader xmlReader, XmlDeserializationEvents events, String encodingStyle)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at OBOKIIHBDBPMCFALPGECCIFHCDJPEDKODDGK.GHAMFGCEDFOEIDCMEENNAFIOCECPBDKLJMLG.AFPAJLJGMPPLGGPABDOPLIPDADFDPIMBMKKE(String , Boolean , Boolean , Boolean ) in C:\sourcefiles\code\VisualCronService\Jobs\apiJob.vb:line 488, inner exception:Exception of type 'System.OutOfMemoryException' was thrown.
I can get the low virtual memory situation creating a problem for the service, but why should the jobs be lost because of that?