Builds are stuck in the queue with `There are no nodes with the label ‘maven’` but the pod template with label `maven` exists.
IntermediateTroubleshootingAgents, executors & the queue
Answer
Likely causes → The cloud is at its concurrency limit, the template's instance cap is reached, the cloud's connection to the API server is failing, or the template is restricted to certain jobs/folders.
Diagnose → Manage Jenkins > Clouds > kubernetes > Test Connection; controller log for KubernetesCloud errors; count running pods vs caps.
Fix → Fix credentials/API connectivity, raise caps, remove unintended restrictions.
Prevent → Alert on Kubernetes plugin provisioning errors.
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