question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please explain vsts agent error log

See original GitHub issue

Hi! During agent autoupdate I can see this error in agent log ( taken from _diag/ folder):

[2018-10-29 15:53:51Z INFO SelfUpdater] Version '2.141.1' of 'agent' package available in server.
[2018-10-29 15:53:51Z INFO SelfUpdater] Current running agent version is 2.140.2
[2018-10-29 15:53:51Z INFO SelfUpdater] An update is available.
[2018-10-29 15:53:51Z INFO Terminal] WRITE LINE: Agent update in progress, do not shutdown agent.
[2018-10-29 15:53:51Z INFO Terminal] WRITE LINE: Downloading 2.141.1 agent
[2018-10-29 15:53:51Z INFO HostContext] Well known directory 'Bin': 'C:\agent33\bin'
[2018-10-29 15:53:51Z INFO HostContext] Well known directory 'Root': 'C:\agent33'
[2018-10-29 15:53:51Z INFO HostContext] Well known directory 'Work': 'C:\agent33\_work'
[2018-10-29 15:53:51Z INFO SelfUpdater] Save latest agent into C:\agent33\_work\_update\agent.zip.
[2018-10-29 15:53:52Z INFO JobDispatcher] Shutting down JobDispatcher. Make sure all WorkerDispatcher has finished.
[2018-10-29 15:53:52Z ERR  Terminal] WRITE ERROR: An error occurred: An error occurred while sending the request.
[2018-10-29 15:53:52Z ERR  AgentProcess] System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The connection with the server was terminated abnormally
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Threading.Tasks.RendezvousAwaitable`1.GetResult()
   at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext()
   --- End of inner exception stack trace ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at System.Net.Http.HttpClient.<FinishSendAsyncUnbuffered>d__59.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.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at System.Net.Http.HttpClient.<FinishGetStreamAsync>d__33.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 Microsoft.VisualStudio.Services.Agent.Listener.SelfUpdater.<DownloadLatestAgent>d__10.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 Microsoft.VisualStudio.Services.Agent.Listener.SelfUpdater.<SelfUpdate>d__8.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 Microsoft.VisualStudio.Services.Agent.Listener.Agent.<RunAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.VisualStudio.Services.Agent.Listener.Agent.<RunAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.VisualStudio.Services.Agent.Listener.Agent.<RunAsync>d__8.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 Microsoft.VisualStudio.Services.Agent.Listener.Agent.<ExecuteCommand>d__5.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 Microsoft.VisualStudio.Services.Agent.Listener.Program.<MainAsync>d__1.MoveNext()

Could anyone explain what does it mean? ( “The connection with the server was terminated abnormally”), I’d like to address this to our netwrok team, however I’d like to get vsts agent maintainers input first … Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:29 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
TingluoHuangcommented, Oct 29, 2018

@melezhik the error from that winhttp exception is:

ERROR_WINHTTP_CONNECTION_ERROR

12030

The connection with the server has been reset or terminated, or an incompatible SSL protocol was encountered. For example, WinHTTP version 5.1 does not support SSL2 unless the client specifically enables it.

https://docs.microsoft.com/en-us/windows/desktop/winhttp/error-messages

can you hit the agent download url from the machine that having the problem from IE? https://vstsagentpackage.azureedge.net/agent/2.141.1/vsts-agent-win-x64-2.141.1.zip

make sure you configure the agent to use the same proxy server as your browser.

0reactions
TingluoHuangcommented, Nov 21, 2018

i am going to close this issue as it is not an actual agent issue and the question has be answered.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Please explain vsts agent error log · Issue #1913
Hi! During agent autoupdate I can see this error in agent log ( taken from _diag/ folder): [2018-10-29 15:53:51Z INFO SelfUpdater] Version ...
Read more >
Where are the VSTS logs on a self hosted Azure DevOps ...
If the agent is Self Hosted (Private Agent) the logs are in the _diag folder (the folder exist in agnet root folder). Share....
Read more >
Review logs to diagnose pipeline issues - Azure
Agent diagnostic logs provide a record of how the agent was configured and what happened when it ran. Look for the agent log...
Read more >
Troubleshoot pipeline runs - Azure DevOps
If the agent is configured to run as a service on Linux, macOS, or Windows, then it is not running within an interactive...
Read more >
Azure DevOps On-Premise Agent Failure to talk to dev. ...
Detailed error message when the build/release failed. If you have some username/password/private information defined as normal variables, please remove it from ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found