Unhandled Exception

Hi,
Came into work this morning and noticed that our Octopus Server had stopped. Looking in the event log I found the following error.

Application: Octopus.Server.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Reflection.TargetInvocationException
Stack:
   at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
   at System.Delegate.DynamicInvokeImpl(System.Object[])
   at Raven.Client.Linq.LinqPathProvider.GetValueFromExpressionWithoutConversion(System.Linq.Expressions.Expression, System.Object ByRef)
   at Raven.Client.Linq.LinqPathProvider.GetValueFromExpression(System.Linq.Expressions.Expression, System.Type)
   at Raven.Client.Linq.RavenQueryProviderProcessor`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].VisitLessThanOrEqual(System.Linq.Expressions.BinaryExpression)
   at Raven.Client.Linq.RavenQueryProviderProcessor`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].VisitExpression(System.Linq.Expressions.Expression)
   at Raven.Client.Linq.RavenQueryProviderProcessor`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].VisitExpression(System.Linq.Expressions.Expression)
   at Raven.Client.Linq.RavenQueryProviderProcessor`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].VisitQueryableMethodCall(System.Linq.Expressions.MethodCallExpression)
   at Raven.Client.Linq.RavenQueryProviderProcessor`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].VisitMethodCall(System.Linq.Expressions.MethodCallExpression, Boolean)
   at Raven.Client.Linq.RavenQueryProviderProcessor`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].VisitExpression(System.Linq.Expressions.Expression)
   at Raven.Client.Linq.RavenQueryProviderProcessor`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].VisitQueryableMethodCall(System.Linq.Expressions.MethodCallExpression)
   at Raven.Client.Linq.RavenQueryProviderProcessor`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].VisitMethodCall(System.Linq.Expressions.MethodCallExpression, Boolean)
   at Raven.Client.Linq.RavenQueryProviderProcessor`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].VisitExpression(System.Linq.Expressions.Expression)
   at Raven.Client.Linq.RavenQueryProviderProcessor`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].VisitQueryableMethodCall(System.Linq.Expressions.MethodCallExpression)
   at Raven.Client.Linq.RavenQueryProviderProcessor`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].VisitMethodCall(System.Linq.Expressions.MethodCallExpression, Boolean)
   at Raven.Client.Linq.RavenQueryProviderProcessor`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].VisitExpression(System.Linq.Expressions.Expression)
   at Raven.Client.Linq.RavenQueryProviderProcessor`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetLuceneQueryFor(System.Linq.Expressions.Expression)
   at Raven.Client.Linq.RavenQueryProviderProcessor`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute(System.Linq.Expressions.Expression)
   at Raven.Client.Linq.RavenQueryProvider`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].System.Linq.IQueryProvider.Execute[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Linq.Expressions.Expression)
   at System.Linq.Queryable.FirstOrDefault[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Linq.IQueryable`1<System.__Canon>, System.Linq.Expressions.Expression`1<System.Func`2<System.__Canon,Boolean>>)
   at Octopus.Server.Orchestration.TaskQueue.PollForMoreWorkOnBackgroundThread(System.Object)
   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()

The last entry in the server log was at 16:50 for CheckForOctopusUpgrades. So the two seem unrelated.
Any ideas?

Hi Sean,

Thanks for getting in touch! Yeah we are aware of the issue and are currently trying to get to the bottom of it.

Vanessa

Thanks Vanessa :slight_smile: