Repository navigation
Description
Checks
- I've already read https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/troubleshooting-actions-runner-controller-errors and I'm sure my issue is not covered in the troubleshooting guide.
- I am using charts that are officially provided (rendered from the official 0.14.2 charts and applied through Argo CD).
Controller Version
0.14.2
Deployment Method
ArgoCD
Checks
- This isn't a question or user support case.
- I've read the changelog and this is not an expected backward-incompatible change.
To Reproduce
- Deploy
gha-runner-scale-set-controllerandgha-runner-scale-set0.14.2 with--update-strategy=eventual,minRunners: 1, andmaxRunners: 10. - Wait until the
AutoscalingRunnerSet,AutoscalingListener, andEphemeralRunnerSetare healthy. - Change
AutoscalingRunnerSet.spec.template.specso ARC rolls the EphemeralRunnerSet. In our case, a GitOps deployment removed an obsoleteruntimeClassNameand changed the runner container security context. - Observe that the old EphemeralRunnerSet is deleted and a different EphemeralRunnerSet survives, while
AutoscalingListener.spec.ephemeralRunnerSetNamestill names the deleted set. - The controller repeatedly recreates the listener pod from that unchanged
AutoscalingListener. Every pod attempts its initial patch against the deleted EphemeralRunnerSet, exits, and enters a permanent recreate/crash loop.
This happened during an update to an existing scale set, rather than a fresh install.
Describe the bug
On ARC 0.14.2, an AutoscalingListener remained bound to a deleted EphemeralRunnerSet after a runner-template update. The surviving EphemeralRunnerSet had a different generated name, but the listener CR, config, and RBAC still referenced the deleted name.
Every listener restart failed identically:
Application returned an error: handling initial message failed: could not patch ephemeral runner set,
patch JSON: {"spec":{"patchID":0,"replicas":1}},
error: ephemeralrunnersets.actions.github.com "<scale-set>-qb49n" not found
The controller then deleted and recreated the listener pod, but did not repair or replace the stale AutoscalingListener CR, so the loop continued indefinitely and jobs could not be assigned.
The symptoms and stale-reference mechanism match #4489 very closely. That issue covered 0.14.0/0.14.1 fresh installs and was closed by stale automation without a linked fix. This report confirms the same failure on 0.14.2 and during an update to an existing AutoscalingRunnerSet.
Recovery/workaround:
- Detect that
AutoscalingListener.spec.ephemeralRunnerSetNameis not the single active EphemeralRunnerSet. - Delete the stale AutoscalingListener CR.
- With
updateStrategy=eventual, ARC drains running jobs, creates the replacement EphemeralRunnerSet/listener, and recovers.
We currently run that check as a post-sync hook because the controller did not self-heal the stale reference.
Describe the expected behavior
After replacing an EphemeralRunnerSet, ARC should atomically create/update the listener against the surviving set, or reconcile and replace any listener whose spec.ephemeralRunnerSetName points to a missing/non-current set.
A listener pod restart should not repeatedly inherit a permanently stale generated resource name.
Additional Context
controllerVersion: 0.14.2
scaleSetChartVersion: 0.14.2
kubernetesVersion: v1.35.2
controllerArgs:
- --auto-scaling-runner-set-only
- --watch-single-namespace=<runner-namespace>
- --runner-max-concurrent-reconciles=2
- --update-strategy=eventual
scaleSet:
minRunners: 1
maxRunners: 10
observedState:
listenerTarget: <scale-set>-qb49n
listenerTargetExists: false
activeEphemeralRunnerSet: <different generated name>
relatedIssues:
- https://github.com/actions/actions-runner-controller/issues/4489
- https://github.com/actions/actions-runner-controller/issues/4432Controller Logs
Complete captured controller log window (the controller includes the terminated listener's full output in message):
The first entry already contains the decisive listener error; the recreate loop continues throughout the capture.
Runner Pod Logs
No runner pod failure was involved. The failing pod was the AutoscalingListener, and its complete output is embedded in the controller termination messages in the gist above. Runner creation/assignment was blocked because the listener could not patch its referenced EphemeralRunnerSet.
Activity
github-actions commentedon Jul 10, 2026
Hello! Thank you for filing an issue.
The maintainers will triage your issue shortly.
In the meantime, please take a look at the troubleshooting guide for bug reports.
If this is a feature request, please review our contribution guidelines.
diogotorres97 commentedon Jul 14, 2026
This looks like one instance of a more general problem: references in the
AutoscalingListenerspec are write-once and never reconciled.ephemeralRunnerSetNameis stamped into the listener at construction (controllers/actions.github.com/resourcebuilder.go:139) and read back when the listener pod's config is built (:191-192). Nothing in the controllers ever compares it against theEphemeralRunnerSetthat currently exists, so once the surviving set has a different generated name, the listener is permanently pointed at a deleted object. The listener itself has no recovery path — every error return incmd/ghalistenerexits the process — so this manifests exactly as you describe: a permanent recreate/crash loop that no restart can clear.The same shape causes #4370, with
runnerScaleSetIdas the stale field instead: it's likewise written once (resourcebuilder.go:136), and the controller only re-registers a scale set when therunner-scale-set-idannotation is absent or unparseable (autoscalingrunnerset_controller.go:186-198), never when it's valid-but-dead. In both cases the listener is only rebuilt if the values-hash orListenerSpecHash()changes, andListenerSpecHash()coversars.Specalone (apis/actions.github.com/v1alpha1/autoscalingrunnerset_types.go:357-361).So a fix scoped to
ephemeralRunnerSetNamewould leave the sibling bug in place. Reconciling the listener's references against live state — or making the rebuild trigger include them — would resolve both this and #4370.github-actions commentedon Aug 14, 2026
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
sebdanielsson commentedon Aug 14, 2026
/nope
KR-Ravindra commentedon Sep 7, 2026
Worker 4 (glm-oss-agent) is investigating this issue. Following the method: search for duplicates, reproduce in 0.14.x, create a failing test, then propose a fix. Will update with findings.
KR-Ravindra commentedon Sep 8, 2026
Follow-up after digging into
master: this looks already fixed there, just not released yet.#4516 (merged 2026-06-09, closes #4489) replaced the generated-name EphemeralRunnerSet with a 1-1 mapping. On
masterthe ERS is created withName: autoscalingRunnerSet.Name(controllers/actions.github.com/resourcebuilder.go:846) and looked up by that same fixed name in the ARS reconciler (autoscalingrunnerset_controller.go:242-250), so a runner-template change patches the existing ERS in place instead of deleting/recreating it under a new name.AutoscalingListener.spec.ephemeralRunnerSetNametherefore cannot point at a name that no longer exists, and the reconciler now also deletes/recreates a listener whose spec no longer matches the desired one (autoscalingrunnerset_controller.go:372-383). The--update-strategyflag is gone as part of that change.The latest release (gha-runner-scale-set 0.14.2, 2026-05-22) predates #4516, which is why 0.14.2 still shows this. Until the next release, the workaround in the description (delete the stale
AutoscalingListener) remains the right recovery. Maintainers may want to link this to #4516 and close it when the release ships.github-actions commentedon Oct 8, 2026
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
mattmichal commentedon Oct 8, 2026
Still an issue, not stale.
upgrade arc runner and controller to 0.15.1 to get fix for actions/ac…
Sdm bootstrap (#13)
github-actions commentedon Nov 9, 2026
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.