Octopus deploy server crashed with System.NullReferenceException at Renci.SshNet.SshCommand.Session_ErrorOccured


(Devan Jain) #1

Octopus server crashed with following error 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()

Octo worked fine after starting the service back. It seems similar to https://github.com/OctopusDeploy/Issues/issues/3874

Octopus deploy server details:
version: 3.17.14
OS: 2012
Memory: 16GB
CPU: 8 core
AWS Family: C5.2xlarge


(Kenneth Bates) #3

Hi Devan,

I’m just letting you know in this thread that I’ve responded to your question at the other thread linked below. :slight_smile:

Best regards,

Kenny


(Devan Jain) #4

Hi Kenneth,

This is accidental duplicate ticket and we can close this.
Is there any page/dashboard where we can check pending posts till any moderator approves, as this causes confusion/curiosity about the post status. After submitting the post, there should be an email notification sent to indicate that post is submitted and is currently in pending state.

Thanks and Regards,
Devan