actions-runner-controller: Listener registration failing with RunnerScaleSetNotFoundException
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.9.3,0.10.1
Deployment Method
Helm
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
This has been happening this morning across our estate. Runnersets that had been happily running and registered are suddenly failing with this.
Describe the bug
Having previously been healthy, our listeners are failing to register with the Github API, throwing the following error:
2025/02/19 07:05:16 Application returned an error: createSession failed: failed to create session: actions error: StatusCode 404, AcivityId "c16014ee-8847-41ae-87e9-0feb3061b89a": GitHub.Actions.Runtime.WebApi.RunnerScaleSetNotFoundException, GitHub.Actions.Runtime.WebApi: No runner scale set found with identifier 6.
This causes them to repeatedly retry until we have exhausted our API limits, causing all runners to cease to work.
Describe the expected behavior
Successful registration
Additional Context
-
Controller Logs
2025-02-19 12:29:28.363
2025-02-19T12:29:28Z INFO AutoscalingListener Created listener pod {"version": "0.9.3", "autoscalinglistener": {"name":"dev--647f5fd5-listener","namespace":"infradev"}, "namespace": "infradev", "name": "dev--647f5fd5-listener"}
2025-02-19 12:29:28.350
2025-02-19T12:29:28Z INFO AutoscalingListener Creating listener pod {"version": "0.9.3", "autoscalinglistener": {"name":"dev--647f5fd5-listener","namespace":"infradev"}, "namespace": "infradev", "name": "dev--647f5fd5-listener"}
2025-02-19 12:29:28.347
2025-02-19T12:29:28Z INFO AutoscalingListener Creating a listener pod {"version": "0.9.3", "autoscalinglistener": {"name":"dev--647f5fd5-listener","namespace":"infradev"}}
2025-02-19 12:29:27.545
2025-02-19T12:29:27Z INFO AutoscalingListener Listener pod is terminated {"version": "0.9.3", "autoscalinglistener": {"name":"dev--647f5fd5-listener","namespace":"infradev"}, "namespace": "infradev", "name": "dev--647f5fd5-listener", "reason": "Error", "message": ""}
Runner Pod Logs
025-02-19 12:23:42.746
2025/02/19 12:23:42 Application returned an error: createSession failed: failed to create session: actions error: StatusCode 404, AcivityId "7efdb2aa-1b5d-471a-8557-855bd8eeea18": GitHub.Actions.Runtime.WebApi.RunnerScaleSetNotFoundException, GitHub.Actions.Runtime.WebApi: No runner scale set found with identifier 6.
2025-02-19 12:23:30.867
2025/02/19 12:23:30 Application returned an error: createSession failed: failed to create session: actions error: StatusCode 404, AcivityId "c0c41d56-8847-41ae-87e9-0feb3061b89a": GitHub.Actions.Runtime.WebApi.RunnerScaleSetNotFoundException, GitHub.Actions.Runtime.WebApi: No runner scale set found with identifier 6.
2025-02-19 12:23:26.668
2025/02/19 12:23:26 Application returned an error: createSession failed: failed to create session: actions error: StatusCode 404, AcivityId "fd0647bd-4c98-4217-902b-0b7ca3343818": GitHub.Actions.Runtime.WebApi.RunnerScaleSetNotFoundException, GitHub.Actions.Runtime.WebApi: No runner scale set found with identifier 6.
2025-02-19 12:23:22.694
2025/02/19 12:23:22 Application returned an error: createSession failed: failed to create session: actions error: StatusCode 404, AcivityId "fd064c6c-4c98-4217-902b-0b7ca3343818": GitHub.Actions.Runtime.WebApi.RunnerScaleSetNotFoundException, GitHub.Actions.Runtime.WebApi: No runner scale set found with identifier 6.
2025-02-19 12:23:10.578
2025/02/19 12:23:10 Application returned an error: createSession failed: failed to create session: actions error: StatusCode 404, AcivityId "9802e18f-984c-4049-ad4b-b3d837c00514": GitHub.Actions.Runtime.WebApi.RunnerScaleSetNotFoundException, GitHub.Actions.Runtime.WebApi: No runner scale set found with identifier 6.
2025-02-19 12:23:06.608
2025/02/19 12:23:06 Application returned an error: createSession failed: failed to create session: actions error: StatusCode 404, AcivityId "7efd86a8-1b5d-471a-8557-855bd8eeea18": GitHub.Actions.Runtime.WebApi.RunnerScaleSetNotFoundException, GitHub.Actions.Runtime.WebApi: No runner scale set found with identifier 6.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 8
- Comments: 31 (4 by maintainers)
we’ve worked out a semi unpleasant way to force re-registration:
… which at least avoids the finalizer hell of helm uninstalls. It’d be great to understand what causes the runner sets to disappear on the Github repo side?
Also is there any way to request an API to list the runner sets on the repo? I saw it was raised here https://github.com/actions/actions-runner-controller/issues/2990 and the raiser was directed to the community page… I tried and failed to see whether it has been requested there…
@cmiller01 @dagi3d We’ve just had a reply from a separate support thread, so hopefully we should stop seeing these issues 🙏 :
Hey @tomhaynes,
We found the root cause of this issue! We disabled the cleanup for your scale sets until we permanently fix it, so you shouldn’t encounter similar problem anymore. I will keep you all posted about the progress, and if anyone else experiences a similar issue before the fix is done, please let me know!
And thank you again for providing all the necessary information we needed to find the root cause!
Hi @Link- many thanks for the reply.
Please can we know what the expected time is for “dormant” scale sets to be removed? Can this be added to the Github Documentation, I have seen people discussing this in various places but it would be good to have some clarity.
As Ben said we saw this impact our development environments, which are powered down each night and over the weekend. We previously saw this happen every Monday morning for most of February. FYI In an internal support ticket raised at the time I was told the following:
Lastly previously it was also discussed having the listener handle the 404 and recreate the runner set, this sounds like a sensible idea
There should be no risks, we just disabled the automatic cleanup for now, until we completely fix it. That just means that if you stop the cluster and the scale set is not talking to our API for more than 7 days, they won’t be cleaned up automatically.
The background job has been fixed. Closing this issue.
Hey, our support reached out to your company to ask for specifics of your setup. This feature is scale set based, so if you have some scale sets registered on the repo level, and others registered on the org level, we need to enable this feature for org, and for each repository. Please let them know so we can properly enable it for all scale sets you have running. Sorry for the inconvenience, I thought it will be sorted out through that channel of communication.
Brilliant thanks @nikola-jokic! thank you for all your help