Thanks for the response Adam. I am not aware of a place to upload a log, but there are a few things that I noticed in the log, so I will share and highlight certain sections.
The first thing I notice is that when the new process starts, there is a warning about a Dashboard Proxy.
info: UniversalAutomation.JobProcessManager[0]
Starting C:\Program Files\PowerShell\7\pwsh.exe with command line -NoProfile -NoExit -Command "& { [System.Reflection.Assembly]::LoadFrom('C:\Universal\Host.dll') | Out-Null; [UniversalHost.AgentService]::StartSecurity(65089, 14876) }"
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
info: Universal.Server.Services.SecurityProxy[0]
Port set to 65090
info: UniversalAutomation.JobProcessManager[0]
Starting C:\Program Files\PowerShell\7\pwsh.exe with command line -NoProfile -NoExit -Command "& { [System.Reflection.Assembly]::LoadFrom('C:\Universal\Host.dll') | Out-Null; [UniversalHost.AgentService]::StartApi(65092, 14876) }"
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
warn: Universal.Server.Services.DashboardManager[0]
Dashboard proxy for dashboard 1 not found.
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
Next thing is the GroomService log entries seem to be timestamped exactly 30 days ago at GMT time. Iâm not sure this is cause for concern.
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: C:\Universal
info: UniversalAutomation.GroomService[0]
Starting groom job.
info: UniversalAutomation.GroomService[0]
Groom date is: 5/30/2020 1:01:08 PM
info: UniversalAutomation.GroomService[0]
Old jobs: 0
info: UniversalAutomation.GroomService[0]
Finished groom job.
After exactly 20 minutes, I see an error related to the LogFLushThread() method for the DashboardProxy:
info: UniversalAutomation.JobProcessManager[0]
Starting job using Process.
fail: Universal.Server.Services.DashboardManager[0]
Failed to flush logs.
LiteDB.LiteException: Cannot insert duplicate key in unique index â_idâ. The duplicate value is ââ$/dashboardlog/1\00000ââ.
at LiteDB.IndexService.AddNode(CollectionIndex index, BsonValue key, Byte level, IndexNode last)
at LiteDB.IndexService.AddNode(CollectionIndex index, BsonValue key, IndexNode last)
at LiteDB.LiteEngine.InsertDocument(CollectionPage col, BsonDocument doc, BsonType autoId)
at LiteDB.LiteEngine.<>c__DisplayClass22_0.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 E:\src\universal\src\UniversalAutomation.LiteDB\LiteDBDatabase.cs:line 374
at Universal.Server.Services.DashboardProxy.LogFlushThread() in E:\src\universal\src\Universal.Server\Services\DashboardProxy.cs:line 417
info: UniversalAutomation.GroomService[0]
Starting groom job.
Finally, the process terminates about 33 minutes later in this case. It talks about the path to E:\src\universal\src\Universal.Server\Services\DashboardProxy.cs file, but I do not see that path on my E: drive. (The actual âservernameâ was replaced before sharing).
2020-06-29 09:33:51 [INFO] (Hangfire.Server.BackgroundServerProcess) Server <servername
>:14876:b7068279 caught stopping signalâŚ
info: Microsoft.Hosting.Lifetime[0]
Application is shutting down...
2020-06-29 09:33:51 [INFO] (Hangfire.Server.BackgroundServerProcess) Server <servername
>:14876:b7068279 caught stopped signalâŚ
2020-06-29 09:33:51 [INFO] (Hangfire.Server.BackgroundServerProcess) Server <servername
>:14876:b7068279 All dispatchers stopped
2020-06-29 09:33:51 [INFO] (Hangfire.Server.BackgroundServerProcess) Server <servername
>:14876:b7068279 successfully reported itself as stopped in 0.5085 ms
2020-06-29 09:33:51 [INFO] (Hangfire.Server.BackgroundServerProcess) Server <servername
>:14876:b7068279 has been stopped in total 9.6033 ms
2020-06-29 09:33:51 [INFO] (Hangfire.Server.BackgroundServerProcess) Server <servername
>:14876:c7e4328d caught stopping signalâŚ
2020-06-29 09:33:51 [INFO] (Hangfire.Server.BackgroundServerProcess) Server <servername
>:14876:c7e4328d All dispatchers stopped
2020-06-29 09:33:51 [INFO] (Hangfire.Server.BackgroundServerProcess) Server <servername
>:14876:c7e4328d successfully reported itself as stopped in 0.0927 ms
2020-06-29 09:33:51 [INFO] (Hangfire.Server.BackgroundServerProcess) Server <servername
>:14876:c7e4328d has been stopped in total 3.7637 ms
2020-06-29 09:33:51 [INFO] (Hangfire.Server.BackgroundServerProcess) Server <servername
>:14876:c7e4328d caught stopped signalâŚ
fail: Universal.Server.Services.DashboardManager[0]
Failed to flush logs.
System.NullReferenceException: Object reference not set to an instance of an object.
at UniversalAutomation.FileStorage`1.Delete(T item) in E:\src\universal\src\UniversalAutomation.LiteDB\LiteDBDatabase.cs:line 315
at Universal.Server.Services.DashboardProxy.LogFlushThread() in E:\src\universal\src\Universal.Server\Services\DashboardProxy.cs:line 410
Unhandled exception. System.AggregateException: An error occurred while writing to logger(s). (Cannot access a disposed object.
Object name: âEventLogInternalâ.)
â> System.ObjectDisposedException: Cannot access a disposed object.
Object name: âEventLogInternalâ.
at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName)
at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String strings, Byte rawData, String currentMachineName)
at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte data, Object values)
at System.Diagnostics.EventLog.WriteEvent(EventInstance instance, Object values)
at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category)
at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId)
at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
at Microsoft.Extensions.Logging.Logger.g__LoggerLog|12_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func3 formatter, List
1& exceptions, TState& state)
â End of inner exception stack trace â
at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions)
at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
at Microsoft.Extensions.Logging.Logger1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func
3 formatter)
at Microsoft.Extensions.Logging.LoggerExtensions.Log(IL
The application event log corroborated the PSU logs also. Sorry for the long and verbose post. Any help is appreciated!