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
Controller Version
0.14.2 (the same code is on master)
Deployment Method
ArgoCD
Checks
- This isn't a question or user support case (For Q&A and community support, go to Discussions).
- I've read the Changelog before submitting this issue and I'm sure it's not due to any recently-introduced backward-incompatible changes
To Reproduce
- Run a runner scale set on GKE.
- The API server answers a runner pod create with a 403 caused by a transient backend failure, not by the pod itself. On GKE this happens when the control plane briefly throttles clients with gRPC
ResourceExhausted/ HTTP/2ENHANCE_YOUR_CALM:pods "arc-medium-bscbt-runner-mrf9p" is forbidden: rpc error: code = ResourceExhausted desc = stream terminated by RST_STREAM with error code: ENHANCE_YOUR_CALM - The EphemeralRunner goes to
phase: Failed,reason: InvalidPod, with no pod. - A queued job for that scale set gets no runner until someone deletes the EphemeralRunner by hand.
We can't trigger the throttling on demand, but the controller path is deterministic: any Forbidden whose message lacks exceeded quota: takes it.
Describe the bug
In EphemeralRunnerReconciler.Reconcile, the case kerrors.IsForbidden(err) branch retries only when the message contains exceeded quota: (#4305). Any other Forbidden goes to markAsFailed(..., ReasonInvalidPodFailure) on the first attempt.
ephemeralRunnersByState.scaleTotal() counts failed runners (pending + running + failed), and nothing deletes them until the set is cleaned up. So the scale set reports current = desired while no pod runs, and the queued job waits. That is the symptom in #3685.
This hit us three times in four days on three scale sets, and one job sat queued for about 17 hours. Each time the throttling was cluster-wide: other controllers and the kubelets logged ENHANCE_YOUR_CALM at the same moments. The pod spec was fine; the same template created pods before and after.
Describe the expected behavior
A Forbidden caused by a failed backend call should be retried. The message carries a gRPC status of ResourceExhausted, Unavailable or DeadlineExceeded in that case. It could take the same two paths the quota case already has:
- runner younger than 10 minutes: requeue after 30s and try the pod create again
- older than that: delete the EphemeralRunner so the set re-creates it
In #4258 a maintainer said a runner should enter the failed state only if the pod definition is wrong and should otherwise be retried. Here the pod definition was fine.
Additional Context
# Nothing specific in values.yaml: the behavior is in the controller's handling of the pod-create error.
# Workaround we run meanwhile: a CronJob that deletes EphemeralRunners with
# phase=Failed, reason=InvalidPod, no jobRequestId/jobId, and a status.message matching
# "rpc error: code = (ResourceExhausted|Unavailable|DeadlineExceeded)".Controller Logs
2026-10-13T11:28:18Z ERROR Failed to create a pod due to unrecoverable failure
error: pods "arc-medium-bscbt-runner-mrf9p" is forbidden: rpc error: code = ResourceExhausted desc = stream terminated by RST_STREAM with error code: ENHANCE_YOUR_CALMRunner Pod Logs
# No pod was created. EphemeralRunner status:
status:
message: 'Failed to create the pod: pods "arc-medium-bscbt-runner-mrf9p" is forbidden:
rpc error: code = ResourceExhausted desc = stream terminated by RST_STREAM with
error code: ENHANCE_YOUR_CALM'
phase: Failed
reason: InvalidPod
Activity
JoaoManierii commentedon Oct 14, 2026
We hit the same thing on GKE (zonal, 1.35.6) with ARC 0.13.1, and 0.15.0 still has the same code path: the Forbidden branch only retries on
exceeded quota:, andscaleTotal()still counts failed runners, which are only removed when the set is cleaned up.On Oct 12–13, four EphemeralRunners in four different scale sets ended up
Failed/InvalidPodwithrpc error: code = ResourceExhausted ... ENHANCE_YOUR_CALM. One scale set (maxRunners 4) lost a slot for about 12 hours and at times had a queued job with no runner at all. GKE audit logs show the throttling was cluster-wide: 2,747 writes were rejected with that error over those two days, including kube-scheduler, cloud-controller-manager and kubelet lease updates. The pod spec was fine; the same template created pods before and after.The approach in #4711 (requeue while the runner is young, delete it after 10 minutes, same as the quota case) is what we need. Could a maintainer take a look and reopen #4711? We're happy to run a build with that change in our cluster and report back. Meanwhile we run a CronJob that deletes Failed EphemeralRunners older than 5 minutes.
github-actions commentedon Nov 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.