actions-runner-controller icon indicating copy to clipboard operation
actions-runner-controller copied to clipboard

Unable to run in high-availability mode

Open joshuabaird opened this issue 2 years ago • 7 comments

Checks

  • [X] 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.
  • [X] I am using charts that are officially provided

Controller Version

0.6.1

Deployment Method

ArgoCD

Checks

  • [X] This isn't a question or user support case (For Q&A and community support, go to Discussions).
  • [X] 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. Install a new deployment of ARC in a new cluster with a unique `runnerGroup` and the same `runnerScaleSetName` as an existing ARC Deployment
2. See this error in the new ARC deployment's listener log:


platform-utility-754b578d-listener autoscaler 2024-03-25T16:49:04Z      INFO    auto_scaler     unable to create message session. Will try again in 30 seconds  {"error": "409 - had issue communicating with Actions backend: The runner scale set platform-utility already has an active session for owner platform-utility-754b578d-listener."}

In this log from the new ARC instance, "platform-utility-754b578d-listener" is the name of the listener on the old instance.

Describe the bug

I'm trying to deploy an HA instance of ARC in a new cluster following these instructions.

My first instance of ARC scalesets (which is already running) uses this config:

runnerGroup: platform-use1-utility-01
runnerScaleSetName: platform-utility

My second instance of ARC scalesets uses this config:

runnerGroup: platform-use1-sandbox-01
runnerScaleSetName: platform-utility

As described in the docs, they have the same runnerScaleSetName but different runnerGroups.

In this configuration, the listener on the new/second instance of ARC fails to start with the following error:

2024-03-25T16:52:01Z      INFO    auto_scaler     unable to create message session. Will try again in 30 seconds  {"error": "409 - had issue communicating with Actions backend: The runner scale set platform-utility already has an active session for owner platform-utility-754b578d-listener."}

platform-utility-754b578d-listener is the name of the listener on the first instance of ARC. It seems the two can not co-exist with each other.

What am I doing incorrectly here?

Describe the expected behavior

The listener should start on the second instance of ARC and GH should distribute jobs across the first and second instances.

Additional Context

N/A

Controller Logs

N/A

Runner Pod Logs

N/A

joshuabaird avatar Mar 25 '24 16:03 joshuabaird

I just noticed that the second instance of ARC just came online (no changes were made) -- but now both runners are configured in the same runner group -- even though the second instance of ARC is configured to be in a separate runner group (platform-use1-sandbox-01):

image

In this configuration (runner groups are apparently the same) -- jobs seem to be getting distributed across both workers. This contradicts what is in the documentation -- so I'm a bit confused.

joshuabaird avatar Mar 26 '24 19:03 joshuabaird

Hey @joshuabaird,

I'm failing to reproduce the issue. Can you please post the output of the kubectl get autoscalingrunnersets -n $NS -o yaml for both of your scale sets? I created 2 kind clusters, applied controllers on both of them and installed scale sets with different runner groups. image image

nikola-jokic avatar Apr 02 '24 12:04 nikola-jokic

Closing this one until we hear back from you :relaxed: Please let us know if this issue is resolved.

nikola-jokic avatar Apr 18 '24 12:04 nikola-jokic

@joshuabaird Would be greatly helpful if you could confirm that your issue is resolved. Our team is planning to adopt the high availability mode. Thank you.

nisaanthN avatar Jul 24 '25 23:07 nisaanthN

Hey @joshuabaird,

I'm failing to reproduce the issue. Can you please post the output of the kubectl get autoscalingrunnersets -n $NS -o yaml for both of your scale sets? I created 2 kind clusters, applied controllers on both of them and installed scale sets with different runner groups. image image

@nikola-jokic , I've fallen into a similar trap as the original poster. Do you have a means to share what values.yaml you provided in your working scenario?

SolverDude avatar Sep 11 '25 18:09 SolverDude

We've also been experiencing problems with this, and CoPilot has suggested using a Github App for auth, instead of a PAT token - can anyone verify whether this is true? the docs here: high-availability-and-automatic-failover - don't mention not being able to use a PAT token for the auth

madAndroid avatar Oct 14 '25 07:10 madAndroid

@SolverDude @joshuabaird Did you folks install both the runner-scale-sets on the same kubernetes namespace?

bsr-blinkit avatar Sep 10 '26 14:09 bsr-blinkit