Repository navigation
Closed
Labels
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.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
1. Start workflows
2. The first two jobs will get a runner very quickly
3. The third one will sometimes stay pending for 30/40 minutes before getting a runnerDescribe the bug
Let's say that I have a workflow with 3 jobs running in parallel.
Sometimes, the jobs 1 and 2 will get a runner right away but the third one will have to wait 30 minutes to an hour before getting a runner.
Describe the expected behavior
All the jobs should start right away.
Note that I have two runner-scale-sets with the same runnerScaleSetName name, I don't know if its a bad practice or not but its working fine 🤷♂
I did that to ease teh upgrade process when a new chart is available, I update the gha-runner-scale-sets one by one to avoid service interruptions.
Thanks
Additional Context
gha-runner-scale-set-controller:
enabled: true
flags:
logLevel: "warn"
podLabels:
finops.company.net/cloud_provider: gcp
finops.company.net/cost_center: compute
finops.company.net/product: tools
finops.company.net/service: actions-runner-controller
finops.company.net/region: europe-west1
replicaCount: 3
podAnnotations:
ad.datadoghq.com/manager.checks: |
{
"openmetrics": {
"instances": [
{
"openmetrics_endpoint": "http://%%host%%:8080/metrics",
"histogram_buckets_as_distributions": true,
"namespace": "actions-runner-system",
"metrics": [".*"]
}
]
}
}
metrics:
controllerManagerAddr: ":8080"
listenerAddr: ":8080"
listenerEndpoint: "/metrics"
gha-runner-scale-set:
enabled: true
githubConfigUrl: https://github.com/company
githubConfigSecret:
github_token: <path:secret/github_token/actions_runner_controller#token>
maxRunners: 100
minRunners: 1
containerMode:
type: "dind" ## type can be set to dind or kubernetes
listenerTemplate:
metadata:
labels:
finops.company.net/cloud_provider: gcp
finops.company.net/cost_center: compute
finops.company.net/product: tools
finops.company.net/service: actions-runner-controller
finops.company.net/region: europe-west1
annotations:
ad.datadoghq.com/listener.checks: |
{
"openmetrics": {
"instances": [
{
"openmetrics_endpoint": "http://%%host%%:8080/metrics",
"histogram_buckets_as_distributions": true,
"namespace": "actions-runner-system",
"max_returned_metrics": 6000,
"metrics": [".*"],
"exclude_metrics": [
"gha_job_startup_duration_seconds",
"gha_job_execution_duration_seconds"
],
"exclude_labels": [
"enterprise",
"event_name",
"job_name",
"job_result",
"job_workflow_ref",
"organization",
"repository",
"runner_name"
]
}
]
}
}
spec:
containers:
- name: listener
securityContext:
runAsUser: 1000
template:
metadata:
labels:
finops.company.net/cloud_provider: gcp
finops.company.net/cost_center: compute
finops.company.net/product: tools
finops.company.net/service: actions-runner-controller
finops.company.net/region: europe-west1
spec:
restartPolicy: OnFailure
imagePullSecrets:
- name: company-prod-registry
containers:
- name: runner
image: eu.gcr.io/company-production/devex/gha-runners:v1.0.0-snapshot5
command: ["/home/runner/run.sh"]
controllerServiceAccount:
namespace: actions-runner-system
name: actions-runner-controller-gha-rs-controllerController Logs
https://gist.github.com/julien-michaud/dce55b9320fb236b622cbb00919277ceRunner Pod Logs
/Reacted by Faranak, adaminato42, Avadhani Jonnavithula, Emma Sax, Patrick Vinograd, air-hand, Dzmitry Harchanin, Marcus Isnard, Guillaume Desvé, Mauricio Tovar and 9 more
Reacted by Martin G., Oneide Luiz Schneider and Ray Semiraglio
Activity
[-]Sometimes, no runners are spawned[/-][+]Sometimes, a job need to wait 30/60 minutes before getting a runner[/+]avadhanij commentedon Apr 3, 2025
We are seeing the same issue and we have a similar setup. We are unsure if the two runnerscalesets (for upgrade ease) is actually causing problems.
emmahsax commentedon Apr 4, 2025
We are on 0.8.2, and seem to be encountering a similar issue. We recently upgraded Karpenter to 1.3.3, and that's when we began seeing this issue. But it may have been existing before that.
marcusisnard commentedon Apr 14, 2025
I’m observing similar behavior, even when not running in a high availability setup (single cluster on Azure). Unfortunately, the logs offer no insight, and the latency is unpredictable.
marcusisnard commentedon Apr 22, 2025
Our organization is experiencing job queue delays exceeding 12 hours, severely impacting production workloads. No error logs are observed on our side. What steps can we take to troubleshoot this issue? @nikola-jokic
nikola-jokic commentedon Apr 22, 2025
Hey everyone,
Could you please submit these logs without obfuscation through the support? We cannot investigate it without understanding which workflow runs are stuck. If you have failed runners, they count as the number of runners, so we can avoid creating an indefinite number of runners if something goes wrong with the cluster.
But if the delay is caused on the back-end side, please submit the workflow run that is stuck, and the unobfuscated log, so we can troubleshoot it. Thanks!
nikola-jokic commentedon Apr 22, 2025
Hey everyone,
We found the root cause of the issue, and it should be fixed now. Please let us know if you are still experiencing this issue. I will leave this issue open for now for visibility. Thank you all for reporting it!
marcusisnard commentedon Apr 22, 2025
Do we need to uninstall and re-deploy ARC?
nikola-jokic commentedon Apr 22, 2025
No, the issue was on the back-end side, so it should start working properly without touching the ARC installation.
marcusisnard commentedon Apr 22, 2025
We are still seeing this issue, lots of jobs still pending, we do not have a cap on the maximum number of runners. Please let me know how I can send the appropriate logs and helm chart values used for our deployment.
nikola-jokic commentedon Apr 22, 2025
Do you have failed ephemeral runners? If you don't have failed ones, please send the listener log, the controller log and workflow URLs of the pending jobs. You can submit them in the support issue if you don't want to share them publicly.
If you do have failed runners, please remove all failed ephemeral runner instances, which would free up the slots to scale up.
53 remaining items
forgondolin commentedon Jul 2, 2025
0.12 is working better for us, the major change we've made (along with EKS autoscaler) was a better argo crds management, cause it was conflicting somehow with the listener.
ajschmidt8 commentedon Jul 8, 2025
Is anyone still experiencing these issues on
0.12.1?nikola-jokic commentedon Jul 8, 2025
Hey @ajschmidt8,
As far as I can tell from feedback,
0.12.1is behaving much better, and this issue has been fixed. I'm still leaving this issue around for a while to wait for potential reports, but the issue that was previously caused by a race condition during deletion of the runner has been fixed, which was the reason for the delay.We still need to investigate the reports where draining the node causes pod issues, but that one would also have caused issues in previous releases. Assuming that the cluster is working properly, the controller would not cause the delays anymore in
0.12.1.niodice commentedon Jul 8, 2025
We are upgrading from
0.11.0to0.12.1tomorrow AM. I will report back after some time to report status. These issues can happen intermittently, it seems, and so it might be some time before I could confidently say that the issue is resolved.OneideLuizSchneider commentedon Jul 8, 2025
Upgraded today to
0.12.1, will provide feedback next week.nikola-jokic commentedon Jul 8, 2025
Hey @niodice,
Yeah, they would occur randomly, so we do need to make sure some time has passed without experiencing these issues to confidently say this has been resolved. That is why we keep this one open, so we can monitor until we are confident that this is in fact resolved☺️
Please keep us updated!
nikola-jokic commentedon Jul 15, 2025
Hey @IuriGarcia,
this looks like a network issue failing to connect, not the issue where the runner cannot connect because of incorrect credentials.
IuriGarcia commentedon Jul 17, 2025
Hi @nikola-jokic
Yeah, a network issue may have occurred. However, what I’m still trying to understand is why some pods get stuck in this network failure loop, while others seem to recover successfully.
Would it make sense to open a separate issue for this?
nikola-jokic commentedon Jul 21, 2025
Hey @IuriGarcia,
Network failures are cluster-specific, which means that it is unlikely to be an ARC issue. You should look into what is going on, and if you are confident that the ARC is causing the issue, please report it. But ARC is only responsible for creating a runner pod and reacting to the events associated with it. It doesn't control even most of the specs. ARC has a tiny bit of logic related to the runner container in the runner pod, and that is it.
nikola-jokic commentedon Jul 21, 2025
Hey @niodice, @OneideLuizSchneider
Any news? This one might be safe to close now.
niodice commentedon Jul 21, 2025
@nikola-jokic things have been quite smooth on our end. No issues to report from me 👍
OneideLuizSchneider commentedon Jul 22, 2025
@nikola-jokic
no issues anymore, it seems to be stable now. Thanks for your help!
nikola-jokic commentedon Jul 22, 2025
Closing this one now. Thank you, everyone, for your valuable feedback!
denysvitali-kaiko commentedon Dec 9, 2025
@nikola-jokic This seems to still happen to us, despite we're using the latest ARC version.
Can you check
runs/20069831057/job/57568468148? Looks very odd that this happens randomly.The logs from the listener look like GH's backend is not relying the message...