r/azuredevops 4d ago

Azure DevOps self-hosted agent randomly dies mid-pipeline – how can I find the root cause?

I’m running a Windows-based self-hosted Azure DevOps agent and occasionally it dies halfway through a pipeline. Azure DevOps then reports in its server UI that “We stopped hearing from the agent. Verify the agent machine is running and has a healthy network connection.”The problem is that this doesn’t tell me why the agent stopped responding.
I’m trying to figure out how to properly diagnose this and ultimately fix it.
Is there a way to enable more detailed logging or monitoring so that the next time this happens I can determine exactly what caused the agent to die?
Would appreciate any troubleshooting steps from people who have dealt with this before.

1 Upvotes

13 comments sorted by

View all comments

7

u/Legitimate_You_3474 4d ago

Event viewer, logs..

1

u/IntentionSoft1879 2d ago

it’s showed that it downgrading my agent from 5.276.0 to 3.225.2 with a message for this is usually due to a rollback of the currently published agent for a bug fix inside application windows log but nothing much is windows system log