The latest Windows 2012 patches were installed on our Octopus deployment server and rebooted. Since then, whenever a task executes, the Octopus service immediately crashes. I see the following 2 messages in the Event logs:
Event Log #1
Application: Octopus.Server.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
at System.Net.UnsafeNclNativeMethods+SafeNetHandles_SECURITY.AcquireCredentialsHandleW(System.String, System.String, Int32, Void*, System.Net.SecureCredential ByRef, Void*, Void*, System.Net.SSPIHandle ByRef, Int64 ByRef)
at System.Net.UnsafeNclNativeMethods+SafeNetHandles_SECURITY.AcquireCredentialsHandleW(System.String, System.String, Int32, Void*, System.Net.SecureCredential ByRef, Void*, Void*, System.Net.SSPIHandle ByRef, Int64 ByRef)
at System.Net.SafeFreeCredentials.AcquireCredentialsHandle(System.Net.SecurDll, System.String, System.Net.CredentialUse, System.Net.SecureCredential ByRef, System.Net.SafeFreeCredentials ByRef)
at System.Net.SSPIWrapper.AcquireCredentialsHandle(System.Net.SSPIInterface, System.String, System.Net.CredentialUse, System.Net.SecureCredential)
at System.Net.Security.SecureChannel.AcquireCredentialsHandle(System.Net.CredentialUse, System.Net.SecureCredential ByRef)
at System.Net.Security.SecureChannel.AcquireClientCredentials(Byte[] ByRef)
at System.Net.Security.SecureChannel.GenerateToken(Byte[], Int32, Int32, Byte[] ByRef)
at System.Net.Security.SslState.StartSendBlob(Byte[], Int32, System.Net.AsyncProtocolRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[], Int32, System.Net.AsyncProtocolRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[], System.Net.AsyncProtocolRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[], Int32, System.Net.AsyncProtocolRequest)
at System.Net.Security.SslState.ForceAuthentication(Boolean, Byte[], System.Net.AsyncProtocolRequest)
at System.Net.Security.SslState.ProcessAuthentication(System.Net.LazyAsyncResult)
at Halibut.Transport.SecureClient.EstablishNewConnection()
at Halibut.Transport.SecureClient.AcquireConnection()
at Halibut.Transport.SecureClient.ExecuteTransaction(System.Action1<Halibut.Transport.Protocol.MessageExchangeProtocol>) at Halibut.HalibutRuntime.SendOutgoingHttpsRequest(Halibut.Transport.Protocol.RequestMessage) at Halibut.ServiceModel.HalibutProxy.Invoke(System.Runtime.Remoting.Messaging.IMessage) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(System.Runtime.Remoting.Proxies.MessageData ByRef, Int32) at Octopus.Shared.Contracts.IScriptService.StartScript(Octopus.Shared.Contracts.StartScriptCommand) at Octopus.Worker.Tentacles.TentacleRemoteEndpointFacade.ExecuteCommand(Octopus.Shared.Contracts.StartScriptCommand) at Octopus.Worker.Tentacles.TentacleWorker.CheckHealth() at Octopus.Server.Orchestration.Health.MachineTaskController.PerformTask(Octopus.Core.Model.Environments.Machine) at Octopus.Shared.Tasks.OctoThreadClosure
1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute()
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.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
Event Log #2
Faulting application name: Octopus.Server.exe, version: 3.2.24.0, time stamp: 0x56ca7f2e
Faulting module name: ncryptprov.dll, version: 6.3.9600.16384, time stamp: 0x5215e237
Exception code: 0xc0000005
Fault offset: 0x00000000000146a5
Faulting process id: 0x1954
Faulting application start time: 0x01d17310a2bab97d
Faulting application path: E:------\Tools\Octopus Deploy\Octopus\Octopus.Server.exe
Faulting module path: C:\Windows\system32\ncryptprov.dll
Report Id: f860f4d4-df03-11e5-80cd-005056a410bf
Faulting package full name:
Faulting package-relative application ID: