Repository navigation
Closed
Labels
gha-runner-scale-setRelated to the gha-runner-scale-set modequestionFurther information is requested
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.8.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
Im not sure how to reprocude this as i think this is an issue with GitHub backendDescribe the bug
Our listener pod had some issues communicating with GitHub backend due to unknown errors, the first error we saw:
2024-01-08T18:29:29Z ERROR listener-app Retryable client error {"error": "Get \"https://pipelinesghubeus23.actions.githubusercontent.com/MASKED/_apis/runtime/runnerscalesets/6/messages?sessionId=MASKED&api-version=6.0-preview\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)", "method": "GET", "url": "https://pipelinesghubeus23.actions.githubusercontent.com/MASKED/_apis/runtime/runnerscalesets/6/messages?sessionId=MASKED&api-version=6.0-preview", "error": "request failed"}
Then we got this error:
2024-01-08T18:30:06Z ERROR listener-app Retryable client error {"error": "Delete \"https://pipelinesghubeus23.actions.githubusercontent.com/MASKED/_apis/runtime/runnerscalesets/5/messages/15323?sessionId=MASKED&api-version=6.0-preview\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)", "method": "DELETE", "url": "https://pipelinesghubeus23.actions.githubusercontent.com/MASKED/_apis/runtime/runnerscalesets/5/messages/15323?sessionId=MASKED&api-version=6.0-preview", "error": "request failed"}
After these errors, our listener pod entered to some restart loop with the same error:
2024/01/08 18:30:44 Application returned an error: createSession failed: failed to create session: 409 - had issue communicating with Actions backend: The runner scale set arc-terraform-live-small-runners already has an active session for owner arc-terraform-live-small-runners-754b578d-listener.
We have only one listener pod for that runnerset, so im not sure why we got this response, the system was stuck like this for more than an hour, somehow if was fixed after some time, maybe because i tried to stop the container and the backend was able to "handle" the issue on his side.
Describe the expected behavior
The listener pod should restart automatically and connect to Github backend with no issues.
Additional Context
NoneController Logs
NoneRunner Pod Logs
NoneReacted by Ethan Steinman, Sivli Embir, Yves Galante, Nisim Arusi, Michael Klem and Steffen Hanikel
Metadata
Metadata
Assignees
Labels
gha-runner-scale-setRelated to the gha-runner-scale-set modequestionFurther information is requested
Activity
github-actions commentedon Jan 9, 2024
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.
ahatzz11 commentedon Jan 11, 2024
I've run into this issue as well when I do a new deployment of our
gha-runner-scale-set. I've never had it stuck for an hour, it usually seems to go on for a couple of minutes and eventually the new listener starts up and connect to GitHub.nikola-jokic commentedon Jan 22, 2024
Hey @AlonAvrahami,
Thank you for reporting this issue. For the context deadline exceeded, we added HTTP client timeout of 5 minutes in this release. Could you please check if you have any network issues with the cluster that may be causing this problem?
The error having 409 status code when the listener restarts, is related to this issue. For more context, after the request fails, the listener crashes and starts up again. But since we forgot to delete the session, the listener cannot start talking to the actions service until the old session expires. Sorry for that, we have a PR that should fix the second problem.
AlonAvrahami commentedon Jan 23, 2024
Thanks @nikola-jokic!
I don't remember seeing any network issues. I will wait for the fix and will test it in the future. It didn't happen again since I've opened this issue, so it's a rare bug.
I guess we can close this issue and link it to #3209 which I haven't noticed and were opened a few hours before I've opened mine 😆
nikola-jokic commentedon Jan 29, 2024
Hey @AlonAvrahami,
Thank you for the response. Let's close this issue but feel free to comment on it and if the issue is still valid in 0.8.2, we can always re-open it☺️
vladimirlinden-inv commentedon Dec 5, 2024
I am having this exact issue in 0.9.3
both controller and runner scale set are going wild:
2024/12/05 09:42:20 Application returned an error: failed to get message: failed to get next message: Get "https://pipelinesghubeus23.actions.githubusercontent.com/eQzeTp4X5S2e3lskyMZArmydzNGrJkc40AXa6chFkroL0rqFDI/_apis/runtime/runnerscalesets/1/messages?sessionId=a5795dab-23dd-4a8c-9f04-caed0174a711&api-version=6.0-preview": GET https://pipelinesghubeus23.actions.githubusercontent.com/eQzeTp4X5S2e3lskyMZArmydzNGrJkc40AXa6chFkroL0rqFDI/_apis/runtime/runnerscalesets/1/messages?sessionId=a5795dab-23dd-4a8c-9f04-caed0174a711&api-version=6.0-preview giving up after 1 attempt(s): context canceledCasperGN commentedon Jan 24, 2025
@nikola-jokic I'm experiencing this issue on
v.0.10.1of both gha-runner-scale-set-controller & gha-runner-scale-set:Controller logs that just keeps circling:
And from the listener pod:
The listener pod keeps starting, then terminating with the same above error.
stefanandres commentedon Feb 10, 2025
Same error here with 0.10.1, the only manual workaround for me now is:
I've tried to add a sleep initContainer via:
That does kind of work in theory, but the controller recreates the listener pod before the 45s are reached because of
Listener pod is not ready. I didn't find a variable to increase the wait-time in the controller.A automatic fix for this would be nice.
kimxogus commentedon May 9, 2025
I had the same error with 0.11.0 too :(
nikola-jokic commentedon May 9, 2025
Hey, is this happening during the upgrade? The workaround from @stefanandres looks like the proper upgrade procedure.
kimxogus commentedon May 9, 2025
No, those errors just occurred randomly in multiple runnersets
nikola-jokic commentedon May 9, 2025
Can you please post the listener log?
kimxogus commentedon May 9, 2025
@nikola-jokic This is a sample of listeners' logs.
Runner scale sets were running ok, and suddenly I had so many logs like this, and autoscaling listeners terminated with exit 1, and never recreated by controller. I had to recreate autoscalingscalesets.
nikola-jokic commentedon May 9, 2025
Since this is context cancelled, it seems to me that something is sending sigint to the listener. Can you check the kubelet logs on the node where the listener was?
kimxogus commentedon May 13, 2025
@nikola-jokic I couldn't find any suspicious kubelet log. The listener pod started normally, and no sigint sent to that.
philprime commentedon May 14, 2025
Found this issue while researching solutions, I am also seeing the listener crash.
This was in my logs: