Octopus Deploy server crashed with Unhandled exception in Renci.SshNet.SshCommand.Session_ErrorOccured

Octopus server crashed with following errors in event viewer:

2018-12-01 10:20:37.5261 1480 2054 FATAL Unhandled AppDomain exception occurred: Object reference not set to an instance of an object.
System.NullReferenceException
at Renci.SshNet.SshCommand.Session_ErrorOccured(Object sender, ExceptionEventArgs e)
at System.EventHandler1.Invoke(Object sender, TEventArgs e) at Renci.SshNet.Session.RaiseError(Exception exp) at Renci.SshNet.Session.MessageListener() 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.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() System.NullReferenceException: Object reference not set to an instance of an object. at Renci.SshNet.SshCommand.Session_ErrorOccured(Object sender, ExceptionEventArgs e) at System.EventHandler1.Invoke(Object sender, TEventArgs e)
at Renci.SshNet.Session.RaiseError(Exception exp)
at Renci.SshNet.Session.MessageListener()
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.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()

Application: Octopus.Server.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at Renci.SshNet.SshCommand.Session_ErrorOccured(System.Object, Renci.SshNet.Common.ExceptionEventArgs)
at System.EventHandler`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Object, System.__Canon)
at Renci.SshNet.Session.RaiseError(System.Exception)
at Renci.SshNet.Session.MessageListener()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()

After starting the Octopus deploy service it was working fine. It seems to similar with https://github.com/OctopusDeploy/Issues/issues/3874

Octopus Server Details:
version: 3.17.14
OS: 2012
Memory: 16GB
CPU: 8 core
AWS Family: C5.2xlarge

Hi Devan,

Thanks for getting in touch! I’m terribly sorry to hear you’re hitting this annoying and unexpected issue. The link you provided looks like it’s probably the same issue, however we haven’t had this reported in any versions after what you’re currently running (3.17.14). It’s very likely this was fixed inadvertently (probably in conjunction with one of the many bug fixes) since your version; would you be able/willing to upgrade (preferably to latest) and let me know if this gets fixed in your scenario?

I hope this helps, and please don’t hesitate to reach out if you have any further questions moving forward!

Best regards,

Kenny

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