What this thread does
agent is offline / Waiting for next available executor The Pipeline either cannot acquire an eligible executor or loses its agent after steps have started. Do first: open Manage Jenkins → Nodes and the queue item's reason, then inspect the affected node's log. Evidence — official docs establish scheduling and runtime requirements; public reports show multiple causes, and no universal recovery was tested. Not for: Jenkins Expected a step or Permission denied; see jenkins-expected-a-step-offline-permission-credentials-plugin-errors.
How to diagnose and fix
1. Record the last successful node assignment. If the job never acquired a node, follow the queue branch. If steps ran before the agent disappeared, follow the connection branch. Save the queue reason and node log at the same time. 2. Match the job's exact label expression against online nodes, usage restrictions and executor capacity. A free executor on an ineligible node cannot run the job. Correct the expression or provide capacity with the required capabilities. 3. Check whether someone marked the node offline or a monitor disabled it for disk, temporary space, swap, clock or response thresholds. Fix the reported condition before bringing it online. More executors cannot bypass a failed monitor. 4. For disconnections, inspect launch and Remoting logs, service exit status, resource pressure and inbound/SSH transport. Verify which Java executable launches the agent; changing the build JDK alone does not change that process. 5. Obtain agent.jar from the controller's own node page and use that page's launch instructions. Refresh old agent images instead of bypassing compatibility checks. Keep credentials out of diagnostic output. 6. Run one small job on the intended label. Observe assignment, checkout and a build step, then wait through the idle interval that previously triggered disconnects. Restore concurrency after this succeeds.
Version pair and runtime boundary
This is error diagnosis, not a complete Jenkins upgrade guide. The source → target example is Jenkins LTS 2.541.3 → 2.555.1 (checked 2026-10-28), adjacent baselines named by the official upgrade guide.
| Boundary, checked 2026-10-28 | What matters to offline agents |
|---|---|
| Source → target above | Target requires Java 21 or 25 for controller and agent processes |
| Earlier 2.462.3 → 2.479.1 (checked 2026-10-28) | Earlier guide requires Java 17 and minimum Remoting 3107.v665000b_51092 (checked 2026-10-28) |
| Current Java support policy | Java 17 ends at the source LTS above; Java 11 ends at the earlier source LTS |
The historical Remoting floor does not guarantee compatibility with every newer controller. Use the controller-provided JAR and verify its actual rejection message. The policy dates some transitions only by month; an exact calendar EOL day is not stated.
Diagnostic: Waiting for next available executor
| State | Next check | Action |
|---|---|---|
| No assignment; no matching label | Effective Pipeline and node labels | Correct selector/provision matching nodes |
| Matching nodes online but busy | Eligible executor occupancy | Free capacity/add agents |
| Matching node offline before execution | Offline reason and node log | Restore runtime/health/connection |
| Agent connected, then lost | Process and transport logs | Repair crash, resource or connection cause |
| Dynamic agent never appears | Provisioner and launcher logs | Repair provisioning before tuning executors |
The starvation guide separates offline from busy agents and recommends labels over binding builds to individual machines. Managing Nodes explains monitors and executor slots.
What to test
Verify assignment with the production label, a complete short job, service restart/reconnect and the previously failing idle period. Confirm the controller and actual agent process use supported Java; test build tools independently.
Pitfalls
An online node does not prove eligibility. More executors do not repair labels or an exited JVM and can worsen memory pressure. Unsupported-Remoting overrides hide a mismatch. Do not move builds onto the controller just to empty the queue.
Public evidence
- sithmein (Thorsten), high-load report: “it will never get scheduled onto any node.” A dynamic-agent scheduling report, without a generally confirmed fix.
- ganesh1143 (Ganesh Babu), scheduling report: “we are still facing this error” after increasing executors, followed by a missing-label symptom. Check eligibility before capacity; this does not establish a universal plugin diagnosis.
A prompt to give your agent
Your training data may predate this runtime boundary. Read the linked Java policy, upgrade guide, node and starvation docs. Determine whether an executor was ever assigned. Compare label, node health, launch JVM and Remoting JAR with this controller. Propose a reversible correction and verification job; do not guess a current minimum from an old guide.
Limits
No Jenkins reconnection or cloud provisioning was tested. The Java policy does not say upgrading Java fixes every offline agent. Neither report establishes a general scheduler defect or universal recovery. Cloud-plugin-specific failures require their own logs. Only agent runtime boundaries are covered, not all intervening Jenkins/plugin changes.
Started from a post by @Jenkins documentation team, packaged by the editor. Original post