azure-pipelines-agent: CurlException when publishing artifacts (only reported by customer in Belgium using telenet)

Agent version and platform

Version of your agent? 2.115.0 which runs as a service.
OS of the machine running the agent? OSX Sierra

VSTS type and version

VSTS online

What’s not working?

Copy Publish Artifact build step throws exceptions when uploading. Recently updated to this version and it worked in the beginning but after a while it failed on this step every time. Get Sources is also extremely slow since updating. I’ve checked the connection and speeds which seem to be fine (DL: 230Mbit, UL: 25Mbit). Tried updating openssl but no luck.

An error occurred while sending the request.'. System.Net.Http.HttpRequestException: An error occurred while sending the request. —> System.Net.Http.CurlException: Failure when receiving data from the peer at System.Net.Http.CurlHandler.ThrowIfCURLEError(CURLcode error) at System.Net.Http.CurlHandler.MultiAgent.FinishRequest(StrongToWeakReference1 easyWrapper, CURLcode messageResult) --- End of inner exception stack trace --- at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.<SendAsync>d3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Net.Http.HttpClient.<FinishSendAsync>d58.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndD... Detail upload trace for file that fail to upload: build/Documentation/Sourcecode_11_08_2016.zip Begin chunking upload file 'build/Documentation/Sourcecode_11_08_2016.zip', chunk size '4194304 Bytes', total chunks '8'. Attempt '1' for uploading chunk '1' of file 'build/Documentation/Sourcecode_11_08_2016.zip'. Generate new HttpRequest for uploading file 'build/Documentation/Sourcecode_11_08_2016.zip', chunk '1' of '8'. Start uploading file 'build/Documentation/Sourcecode_11_08_2016.zip' to server, chunk '1'. Chunk '1' attempt '1' of file 'build/Documentation/Sourcecode_11_08_2016.zip' fail to send request to server. Error: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.CurlException: Failure when receiving data from the peer at System.Net.Http.CurlHandler.ThrowIfCURLEError(CURLcode error) at System.Net.Http.CurlHandler.MultiAgent.FinishRequest(StrongToWeakReference1 easyWrapper, CURLcode messageResult) — End of inner exception stack trace — at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.<SendAsync>d3.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Net.Http.HttpClient.<FinishSendAsync>d58.MoveNext() — End of stack trace from previous location where exception was thrown — at Syste… Backoff 9.606 seconds before attempt ‘2’ chunk ‘1’ of file ‘build/Documentation/Sourcecode_11_08_2016.zip’. Attempt ‘2’ for uploading chunk ‘1’ of file ‘build/Documentation/Sourcecode_11_08_2016.zip’. Generate new HttpRequest for uploading file ‘build/Documentation/Sourcecode_11_08_2016.zip’, chunk ‘1’ of ‘8’. Start uploading file ‘build/Documentation/Sourcecode_11_08_2016.zip’ to server, chunk ‘1’. Finished upload chunk ‘1’ of file ‘build/Documentation/Sourcecode_11_08_2016.zip’, elapsed 1965 (ms), response code ‘Accepted’. Attempt ‘1’ for uploading chunk ‘2’ of file ‘build/Documentation/Sourcecode_11_08_2016.zip’. Generate new HttpRequest for uploading file ‘build/Documentation/Sourcecode_11_08_2016.zip’, chunk ‘2’ of ‘8’. Start uploading file ‘build/Documentation/Sourcecode_11_08_2016.zip’ to server, chunk ‘2’. Chunk ‘2’ attempt ‘1’ of file ‘build/Documentation/Sourcecode_11_08_2016.zip’ fail to send request to server. Error: System.Net.Http.HttpRequestException: An error occurred while sending the request. —> System.Net.Http.CurlException: Failure when receiving data from the peer at System.Net.Http.CurlHandler.ThrowIfCURLEError(CURLcode error) at System.Net.Http.CurlHandler.MultiAgent.FinishRequest(StrongToWeakReference1 easyWrapper, CURLcode messageResult) --- End of inner exception stack trace --- at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.<SendAsync>d3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Net.Http.HttpClient.<FinishSendAsync>d58.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Syste... Backoff 6.425 seconds before attempt '2' chunk '2' of file 'build/Documentation/Sourcecode_11_08_2016.zip'. Attempt '2' for uploading chunk '2' of file 'build/Documentation/Sourcecode_11_08_2016.zip'. Generate new HttpRequest for uploading file 'build/Documentation/Sourcecode_11_08_2016.zip', chunk '2' of '8'. Start uploading file 'build/Documentation/Sourcecode_11_08_2016.zip' to server, chunk '2'. Chunk '2' attempt '2' of file 'build/Documentation/Sourcecode_11_08_2016.zip' fail to send request to server. Error: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.CurlException: Failure when receiving data from the peer at System.Net.Http.CurlHandler.ThrowIfCURLEError(CURLcode error) at System.Net.Http.CurlHandler.MultiAgent.FinishRequest(StrongToWeakReference1 easyWrapper, CURLcode messageResult) — End of inner exception stack trace — at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.<SendAsync>d3.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Net.Http.HttpClient.<FinishSendAsync>d58.MoveNext() — End of stack trace from previous location where exception was thrown — at Syste… Backoff 9.446 seconds before attempt ‘3’ chunk ‘2’ of file ‘build/Documentation/Sourcecode_11_08_2016.zip’. Attempt ‘3’ for uploading chunk ‘2’ of file ‘build/Documentation/Sourcecode_11_08_2016.zip’. Generate new HttpRequest for uploading file ‘build/Documentation/Sourcecode_11_08_2016.zip’, chunk ‘2’ of ‘8’. Start uploading file ‘build/Documentation/Sourcecode_11_08_2016.zip’ to server, chunk ‘2’. 4 files failed to upload, retry these files after a minute. Retry file upload after 60 seconds.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 2
  • Comments: 35 (5 by maintainers)

Commits related to this issue

Most upvoted comments

@cornillemichiel When using our Proximus backup line it also worked.