Builds on a static agent fail with `No space left on device` in the workspace
IntermediateTroubleshootingAgents, executors & the queue
Answer
Likely causes → Workspaces from hundreds of branch jobs and @tmp/@2 copies accumulate; Docker images and build caches fill the disk.
Diagnose →
df -h /home/jenkins
du -sh /home/jenkins/agent/workspace/* | sort -h | tail
docker system df
Fix → Delete old workspaces, docker system prune -af --filter until=72h, add cleanWs() in post { cleanup {} }.
Prevent → Disk space monitor threshold on the node (marks it offline), ephemeral agents.
More on Agents, executors & the queue
Build stuck: `Still waiting to schedule task. ‘Jenkins’ doesn’t have label ‘docker’`Beginner`Waiting for next available executor on ‘linux’` for 20 minutes during peak hoursBeginner`All nodes of label ‘windows’ are offline`Beginner`hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@6e4b:agent-07": Remote call on agent-07 failed. The channel is closing down or has closed down`IntermediateInbound agent fails: `SEVERE: http://jenkins:8080/tcpSlaveAgentListener/ is invalid: 404 Not Found`IntermediateAgent connects but builds fail with `java.io.IOException: Cannot run program "nohup" (in directory "C:\jenkins\workspace\app"): CreateProcess error=2`Beginner