Azure Pipelines "We stopped hearing from agent" Lost Communication
The Azure Pipelines service stopped receiving heartbeats from the agent mid-job, so it concluded the agent was lost and failed the job.
What this error means
A running job fails with "We stopped hearing from agent X. Verify the agent machine is running and has a healthy network connection."
azure-pipelines
##[error]We stopped hearing from agent agent-2. Verify the agent machine is
running and has a healthy network connection.Common causes
Network interruption
A transient network drop stopped agent heartbeats.
Agent host crashed or was reclaimed
The VM crashed, was OOM-killed, or a spot instance was reclaimed.
Resource exhaustion
CPU/memory pressure made the agent unresponsive.
How to fix it
Check agent health and connectivity
- Inspect the agent host for crashes, OOM, or network loss at the failure time.
- Re-run the pipeline once the agent is healthy.
Harden the agent
- Add memory and ensure a stable network path to dev.azure.com.
How to prevent it
- If you run on GitHub Actions, self-healing managed runners such as Latchkey auto-retry transient failures, so a lost-agent blip does not fail the job. On Azure DevOps, monitor agent health and network stability.
Related guides
Azure Pipelines "All potential agents are in use" WaitFix the Azure Pipelines wait where "all potential agents are in use" because the self-hosted pool has no free…
Azure Pipelines "No space left on device" on AgentFix the Azure Pipelines "No space left on device" error where the agent ran out of disk during checkout, buil…
Azure Pipelines "ran longer than the maximum time" TimeoutFix the Azure Pipelines timeout where a job ran longer than its maximum time and was canceled, from slow work…