We’re getting an intermittent time-out pushing packages from VSTS to octopus server on a VM in azure. The server contains this in its log:
September 10th 2018 14:26:23
Error
Unhandled exception from web server processing POST to https://XXXXXX.australiaeast.cloudapp.azure.com/api/packages/raw?replace=False: Incorrect function System.Net.HttpListenerException at System.Net.HttpRequestStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.IO.Stream.InternalCopyTo(Stream destination, Int32 bufferSize) at Nancy.IO.RequestStream.MoveStreamContentsToFileStream() at Nancy.IO.RequestStream.MoveStreamOutOfMemoryIfExpectedLengthExceedSwitchLength(Int64 expectedLength) at Nancy.IO.RequestStream…ctor(Stream stream, Int64 expectedLength, Int64 thresholdLength, Boolean disableStreamSwitching) at Octopus.Server.Web.OctopusNancyHost.ConvertRequestToNancyRequest(HttpListenerRequest request) at Octopus.Server.Web.OctopusNancyHost.Process(HttpListenerContext ctx) System.Net.HttpListenerException (0x80004005): Incorrect function at System.Net.HttpRequestStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.IO.Stream.InternalCopyTo(Stream destination, Int32 bufferSize) at Nancy.IO.RequestStream.MoveStreamContentsToFileStream() at Nancy.IO.RequestStream.MoveStreamOutOfMemoryIfExpectedLengthExceedSwitchLength(Int64 expectedLength) at Nancy.IO.RequestStream…ctor(Stream stream, Int64 expectedLength, Int64 thresholdLength, Boolean disableStreamSwitching) at Octopus.Server.Web.OctopusNancyHost.ConvertRequestToNancyRequest(HttpListenerRequest request) at Octopus.Server.Web.OctopusNancyHost.Process(HttpListenerContext ctx)
September 10th 2018 14:26:23
Error
An exception was thrown disposing the HttpListenerContext.Response whilst dealing with an unhandled exception: An operation was attempted on a nonexistent network connection System.Net.HttpListenerException (0x80004005): An operation was attempted on a nonexistent network connection at System.Net.HttpResponseStream.Dispose(Boolean disposing) at System.IO.Stream.Close() at System.Net.HttpListenerResponse.System.IDisposable.Dispose() at System.Net.HttpListenerResponse.Close() at Octopus.Server.Web.OctopusNancyHost.SafelyHandleProcessException(Exception e, HttpListenerContext httpListenerContext, NancyContext nancyContext)