Builds started before a controller restart show `Resuming build at ...` then fail with `Pausing (Preparing for shutdown)` loops or `Could not find any running agent`
AdvancedTroubleshootingController health, disk & upgrades
Answer
Likely causes → The agents those builds used (Kubernetes pods) were deleted or did not reconnect after the restart, so the resumed builds cannot continue.
Diagnose → Build log after resume; kubectl get pods in agents namespace; whether quiet-down was used before the restart.
Fix → Abort the stuck builds and rerun. Use quiet-down before planned restarts.
Prevent → Graceful maintenance, retry(conditions: [kubernetesAgent(), nonresumable()]) for idempotent stages.
More on Controller health, disk & upgrades
Controller crashes with `java.lang.OutOfMemoryError: Java heap space`IntermediateController pod restarts repeatedly: liveness probe failed: `Get "http://10.0.3.7:8080/login": context deadline exceeded`IntermediateJenkins UI shows `Jenkins is going to shut down` and new builds are not startingBeginner`JENKINS_HOME` volume is 98% fullBeginnerAfter an upgrade: `Running with Java 11, which is older than the minimum required version (Java 17).` and Jenkins won't startBeginnerUI is slow and the thread dump shows dozens of threads `BLOCKED` on `hudson.model.Queue`Advanced