Octopus Deploy Windows Service Stopped

Hi OD,

Octopus Deploy Windows Service stopped and it recorded only limited error in logs file. Could you please let me know what could be the reason. I checked Event Viewer and it does not show any unusual activity.

Following is the error log from Event Viewer and Octopus Logs folder.


Windows Event Viewer Error

The OctopusDeploy service failed to start due to the following error:
The service did not respond to the start or control request in a timely fashion.


Octopus Deploy Logs error.

2018-05-07 13:59:12.8240 31 ERROR Unhandled exception from web server: The network connection was aborted by the local system
System.Net.HttpListenerException (0x80004005): The network connection was aborted by the local system
at System.Net.HttpResponseStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.Compression.DeflateStream.PurgeBuffers(Boolean disposing)
at System.IO.Compression.DeflateStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at System.IO.Compression.GZipStream.Dispose(Boolean disposing)
at System.IO.Stream.Close()
at Octopus.Server.Web.Infrastructure.NancyCompression.<>c__DisplayClass3_0.b__0(Stream responseStream) in Z:\BuildAgent\work\HidingEncryptedValue\source\Octopus.Server\Web\Infrastructure\NancyCompression.cs:line 100
at Octopus.Server.Web.OctopusNancyHost.OutputWithDefaultTransferEncoding(Response nancyResponse, HttpListenerResponse response) in Z:\BuildAgent\work\HidingEncryptedValue\source\Octopus.Server\Web\OctopusNancyHost.cs:line 355
at Octopus.Server.Web.OctopusNancyHost.ConvertNancyResponseToResponse(NancyContext nancyRequest, Response nancyResponse, HttpListenerResponse response) in Z:\BuildAgent\work\HidingEncryptedValue\source\Octopus.Server\Web\OctopusNancyHost.cs:line 340
at Nancy.NancyEngineExtensions.HandleRequest(INancyEngine nancyEngine, Request request, Func2 preRequest, Action1 onComplete, Action1 onError, CancellationToken cancellationToken) at Octopus.Server.Web.OctopusNancyHost.Process(HttpListenerContext ctx) in Z:\BuildAgent\work\HidingEncryptedValue\source\Octopus.Server\Web\OctopusNancyHost.cs:line 0 2018-05-07 13:59:12.8240 297 INFO Request took 5328ms: GET https://OctopusServerName/api/dashboard 2018-05-07 13:59:12.8369 216 INFO Request took 6845ms: GET https://OctopusServerName/api/dashboard 2018-05-07 13:59:13.4927 297 ERROR Unhandled exception from web server: The network connection was aborted by the local system System.Net.HttpListenerException (0x80004005): The network connection was aborted by the local system at System.Net.HttpResponseStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.IO.Compression.DeflateStream.PurgeBuffers(Boolean disposing) at System.IO.Compression.DeflateStream.Dispose(Boolean disposing) at System.IO.Stream.Close() at System.IO.Compression.GZipStream.Dispose(Boolean disposing) at System.IO.Stream.Close() at Octopus.Server.Web.Infrastructure.NancyCompression.<>c__DisplayClass3_0.<CompressResponse>b__0(Stream responseStream) in Z:\BuildAgent\work\HidingEncryptedValue\source\Octopus.Server\Web\Infrastructure\NancyCompression.cs:line 100 at Octopus.Server.Web.OctopusNancyHost.OutputWithDefaultTransferEncoding(Response nancyResponse, HttpListenerResponse response) in Z:\BuildAgent\work\HidingEncryptedValue\source\Octopus.Server\Web\OctopusNancyHost.cs:line 355 at Octopus.Server.Web.OctopusNancyHost.ConvertNancyResponseToResponse(NancyContext nancyRequest, Response nancyResponse, HttpListenerResponse response) in Z:\BuildAgent\work\HidingEncryptedValue\source\Octopus.Server\Web\OctopusNancyHost.cs:line 340 at Nancy.NancyEngineExtensions.HandleRequest(INancyEngine nancyEngine, Request request, Func2 preRequest, Action1 onComplete, Action1 onError, CancellationToken cancellationToken)
at Octopus.Server.Web.OctopusNancyHost.Process(HttpListenerContext ctx) in Z:\BuildAgent\work\HidingEncryptedValue\source\Octopus.Server\Web\OctopusNancyHost.cs:line 0
2018-05-07 13:59:13.6823 216 ERROR Unhandled exception from web server: The network connection was aborted by the local system
System.Net.HttpListenerException (0x80004005): The network connection was aborted by the local system
at System.Net.HttpResponseStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.Compression.DeflateStream.WriteDeflaterOutput(Boolean isAsync)
at System.IO.Compression.DeflateStream.Write(Byte[] array, Int32 offset, Int32 count)
at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
at System.IO.StreamWriter.Write(String value)
at Newtonsoft.Json.JsonTextWriter.WritePropertyName(String name, Boolean escape)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
at Nancy.Serialization.JsonNet.JsonNetSerializer.Serialize[TModel](String contentType, TModel model, Stream outputStream)
at Octopus.Server.Web.Infrastructure.NancyCompression.<>c__DisplayClass3_0.b__0(Stream responseStream) in Z:\BuildAgent\work\HidingEncryptedValue\source\Octopus.Server\Web\Infrastructure\NancyCompression.cs:line 99
at Octopus.Server.Web.OctopusNancyHost.OutputWithDefaultTransferEncoding(Response nancyResponse, HttpListenerResponse response) in Z:\BuildAgent\work\HidingEncryptedValue\source\Octopus.Server\Web\OctopusNancyHost.cs:line 355
at Octopus.Server.Web.OctopusNancyHost.ConvertNancyResponseToResponse(NancyContext nancyRequest, Response nancyResponse, HttpListenerResponse response) in Z:\BuildAgent\work\HidingEncryptedValue\source\Octopus.Server\Web\OctopusNancyHost.cs:line 340
at Nancy.NancyEngineExtensions.HandleRequest(INancyEngine nancyEngine, Request request, Func2 preRequest, Action1 onComplete, Action`1 onError, CancellationToken cancellationToken)
at Octopus.Server.Web.OctopusNancyHost.Process(HttpListenerContext ctx) in Z:\BuildAgent\work\HidingEncryptedValue\source\Octopus.Server\Web\OctopusNancyHost.cs:line 0


Hi Ravinder,

That’s definitely not good. Are you able to restart the server?

It looks like the problem is an intermittent network failure that Octopus Deploy is not handling well, causing it to crash. I’ve opened an issue here https://github.com/OctopusDeploy/Issues/issues/4552

In the meantime if you can restart the server then hopefully the network issue shouldn’t cause too many problems.

Thanks

Hi Cameron,

Yes, I was able to start the service. However I would like to know what caused this. We have tons of releases every week so can’t afford any downtime with Octopus. Could anyone please let me know the RCA of this error.

Thanks,
Ravinder

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