`Waiting for next available executor on ‘linux’` for 20 minutes during peak hours
BeginnerTroubleshootingAgents, executors & the queue
Answer
Likely causes → All executors on matching nodes are busy, or the cloud has hit its concurrency cap.
Diagnose → Check Build Executor Status and Load Statistics for the label; for clouds, check the cap versus running pods: kubectl -n jenkins-agents get pods | wc -l.
Fix → Add capacity (more agents or higher cloud cap and quota), reduce waste (abortPrevious, skip unchanged), stagger cron jobs.
Prevent → Alert on queue wait time and review capacity monthly.
More on Agents, executors & the queue
Build stuck: `Still waiting to schedule task. ‘Jenkins’ doesn’t have label ‘docker’`Beginner`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`Building on the built-in node can be a security issue. You should set up distributed builds.` warning, and some jobs still run thereBeginner