Crashed again this weekend - this was the error thrown in the log before crashing:
2021-01-24T20:32:21.2155679-05:00 [INF] Error executing job 24199: Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct. at System.Collections.Generic.Dictionary`2.Remove(TKey key)
at LiteDB.CacheService.SetDirty(BasePage page)
at LiteDB.PageService.NewPage[T](BasePage prevPage)
at LiteDB.DataService.Insert(CollectionPage col, Byte[] data)
at LiteDB.LiteEngine.InsertDocument(CollectionPage col, BsonDocument doc, BsonType autoId)
at LiteDB.LiteEngine.<>c__DisplayClass22_0.<Insert>b__0(CollectionPage col)
at LiteDB.LiteEngine.Transaction[T](String collection, Boolean addIfNotExists, Func`2 action)
at LiteDB.LiteEngine.Insert(String collection, BsonDocument doc, BsonType autoId)
at LiteDB.LiteFileStream.WriteChunks()
at LiteDB.LiteFileStream.Flush()
at LiteDB.LiteFileStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at LiteDB.LiteStorage.Upload(String id, String filename, Stream stream)
at UniversalAutomation.FileStorage`1.Insert(T item) in D:\a\universal\universal\src\UniversalAutomation.LiteDB\LiteDBDatabase.cs:line 385
at UniversalAutomation.ExecutionService.TryExecute(Job job, Schedule schedule) in D:\a\universal\universal\src\UniversalAutomation\Services\ExecutionService.cs:line 335
at UniversalAutomation.ExecutionService.Execute(Job job, Schedule schedule) in D:\a\universal\universal\src\UniversalAutomation\Services\ExecutionService.cs:line 181 System.InvalidOperationException (f7e53d70)
Lined up with the timestamp of the service terminating unexpectedly in the event log:
We’re looking to pinpoint what is causing this to happen…