Unhandled exception at Octopus.Server.Orchestration.Logging.ServerLogWriter

Hello. We catched Unhandled AppDomain exception on 2018.8.5 with interesting stack:

2018-11-01 17:40:09.0971   9344    101 FATAL  Unhandled AppDomain exception occurred: Cannot access a disposed object.
System.ObjectDisposedException
   at System.Threading.TimerQueueTimer.Change(UInt32 dueTime, UInt32 period)
   at System.Threading.Timer.Change(TimeSpan dueTime, TimeSpan period)
   at Octopus.Server.Orchestration.Logging.ServerLogWriter.Flush()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.TimerQueueTimer.CallCallback()
   at System.Threading.TimerQueueTimer.Fire()
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
System.ObjectDisposedException: Cannot access a disposed object.
   at System.Threading.TimerQueueTimer.Change(UInt32 dueTime, UInt32 period)
   at System.Threading.Timer.Change(TimeSpan dueTime, TimeSpan period)
   at Octopus.Server.Orchestration.Logging.ServerLogWriter.Flush()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.TimerQueueTimer.CallCallback()
   at System.Threading.TimerQueueTimer.Fire()
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

Octopus running on Windows 2016 with sql server on one host:

.NET release: 461814
.NET version: 4.7.2

Looks like already fixed here https://github.com/OctopusDeploy/Issues/issues/4975
Ok, will update octopus service.

Hi Andrei,

Thanks for getting in touch!

Glad to see that you found the issue at hand, sorry that you ran into this one. Please let me know if there is anything else we can assist with.

Regards,
Alex

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.