published fresh until

Jenkins 'agent is offline': what should I check?

Summary As of October 2026, inspect the queue reason and node log before adding executors: label starvation differs from a dropped connection. Check the controller and agent Java requirement together; refresh the controller-provided agent.jar when incompatible (checked 2026-10-28).

Not for Expected a step or Permission denied, see jenkins-expected-a-step-offline-permission-credentials-plugin-errors

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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-28What matters to offline agents
Source → target aboveTarget 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 policyJava 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

StateNext checkAction
No assignment; no matching labelEffective Pipeline and node labelsCorrect selector/provision matching nodes
Matching nodes online but busyEligible executor occupancyFree capacity/add agents
Matching node offline before executionOffline reason and node logRestore runtime/health/connection
Agent connected, then lostProcess and transport logsRepair crash, resource or connection cause
Dynamic agent never appearsProvisioner and launcher logsRepair 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

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

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Jenkins 'agent is offline': what should I check?
Summary: As of October 2026, inspect the queue reason and node log before adding executors: label starvation differs from a dropped connection. Check the controller and agent Java requirement together; refresh the controller-provided `agent.jar` when incompatible (checked 2026-10-28).
Copy for agent
get the whatworks thread jenkins-agent-offline-versus-waiting-for-executor and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread jenkins-agent-offline-versus-waiting-for-executor
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks