Skip to content

ARC listener stuck on already has an active session: two clusters hold the same runner scale set, and maxRunners: 0 does not release the session

Two ARC controllers, one GitHub scale set: only one listener can hold the session. Why scaling runners to zero does not free it, and the cutover that works.

Error message
already has an active session

Also searched as: "migrate ARC runners to another cluster"

In short

Symptom
During a cluster cutover, the new ARC controller's listener restarts in a loop and picks up no jobs. On the GitHub side, session creation is refused with a 409 (already has an active session). In its 2024 form, the message also names an "owner" carrying exactly the name of your own listener.
Real cause
Same scale set name, same organisation, same runner group: both controllers resolve to the same runner scale set on GitHub, which accepts one message session at a time. The old listener still holds it. maxRunners: 0 caps runners, not the listener, and a controller scaled to zero leaves its listener pod in place, with nothing left to manage it.
Fix
On the old cluster, scale the controller to zero replicas THEN delete the listener pod by hand, and only then sync the new cluster's controller, then its scale set.
Prevention
Write the cutover as a lock handover, not as a capacity reduction: confirm the old holder is gone before starting the new one. Or give the new scale set a distinct name, or a distinct runner group, for the duration of the cutover.

The answer, in three lines

ARC (Actions Runner Controller) runs GitHub Actions runners inside Kubernetes. For each runner scale set, a set of runners GitHub knows under one name, it starts a listener: the pod that receives the jobs. GitHub accepts only one listener session at a time per scale set. If two ARC controllers, on two clusters, declare the same scale set name for the same organisation, they point at the same scale set: one of them is refused the session with a 409, and restarts in a loop.

The fix: on the old cluster, controller to zero then delete the listener pod by hand, because it outlives the controller. Only then, the new cluster.

The symptom

You are moving continuous integration runners from one cluster to another. The new cluster gets the ARC controller and the scale set, with the same values as the old one: same githubConfigUrl, same runnerScaleSetName, same namespaces. The controller starts, creates its listener, and the listener does not stay up: it dies, it is recreated, it dies again. The incident notes describe both listeners, the old one and the new one, restarting in turn as long as the old controller is running.

In the listener logs, the line that matters contains already has an active session. It reads in two pieces. The beginning is formatted by ARC, and changes with its version. The end is the text GitHub sends back, which changed between 2024 and 2025. The exact message from the incident was not recorded.

With ARC 0.10.1, the version of the incident, in April 2026, the line very probably had this form (names replaced). The beginning comes from ARC's code at that version. The end is GitHub's text in every public issue since February 2025 (#3922, with ARC 0.9.3, which formats the error like 0.10.1; then #4285 and #4356):

Application returned an error: createSession failed: failed to create session: actions error: StatusCode 409, AcivityId "…": GitHub.Actions.Runtime.WebApi.RunnerScaleSetSessionConflictException, GitHub.Actions.Runtime.WebApi: The actions runner scaleset ci-runner already has an active session.

The 2024 issues (#3209 and #3351, with ARC 0.8) show a different ARC formatting, and a GitHub text that named the session holder:

Application returned an error: createSession failed: failed to create session: 409 - had issue communicating with Actions backend: The runner scale set ci-runner already has an active session for owner ci-runner-754b578d-listener.

That holder is the host name the listener sends when it opens its session, which is the name of its pod. With the 2024 text, the "owner" it names is exactly the name of your own listener. You read "there is already a session for me", you look for a stale session from that very pod, and you do not look at another cluster. With the text received in 2026, that trap no longer applies: the message names nobody, so it does not tell you where to look either.

To settle it, look at the old cluster: a listener pod is Running there while the new one restarts.

kubectl --context=old -n arc-systems get pods -l app.kubernetes.io/component=runner-scale-set-listener

The wrong diagnosis

maxRunners caps the number of runners. The listener keeps running: it is the component that holds the session open with GitHub to receive jobs, and it keeps it whether it has zero runners to drive or five.

Second reflex, just as natural: scale the old cluster's controller to zero replicas. That is not enough either. The listener pod belongs to neither a Deployment nor a ReplicaSet: the controller creates it from an AutoscalingListener resource, which owns it. With the controller stopped, nothing manages that pod any more. It stays there, and keeps holding the session.

What is really happening

The failure comes from three facts together.

1. Both controllers point at the same GitHub scale set. A scale set is looked up by its name, within a runner group, for an organisation. Same name, same group, same URL: the new cluster's controller does not create a second scale set, it finds the old one. Same identifier.

2. GitHub accepts one message session per scale set. The listener opens a session to receive jobs. While one of the two holds it, the other is refused with a 409 and exits with an error. In ARC 0.10.1's code, the controller deletes a listener pod that has stopped, then creates a new one, which is refused in turn: that is the loop. The incident notes describe the two clusters alternating. ARC's code does not explain that back and forth, and issue #3351 shows the opposite: one listener stuck while the other keeps running.

3. The listener name is identical on both clusters, by construction. Up to ARC 0.13.0, that name is <scale set>-<hash>-listener, where the hash is computed from the scale set's namespace alone. 754b578d is the hash of arc-runners, the namespace the documentation suggests: any scale set installed there gets that suffix, on any cluster. Since 0.13.1, the hash also covers the runner group and the configuration URL. That separates two organisations, not two clusters serving the same one.

That third fact explains the trap in the 2024 form: the message gave the name of the session holder, and that name was also yours.

The fix

Order is half the fix.

Step 1: Stop the old cluster's controller

kubectl --context=old -n arc-systems scale deploy arc-gha-rs-controller --replicas=0

The deployment name depends on the Helm release name. arc-gha-rs-controller is the one for a release named arc.

Step 2: Delete the listener pod left behind, by hand

kubectl --context=old -n arc-systems get pods -l app.kubernetes.io/component=runner-scale-set-listener
kubectl --context=old -n arc-systems delete pod -l app.kubernetes.io/component=runner-scale-set-listener

With the controller stopped, nothing recreates this pod. A normal deletion sends the listener a stop signal; in ARC 0.10.1's code, the listener answers it by closing its session with GitHub before exiting. A forced deletion can kill it before that: the session then stays open on the GitHub side until it expires, after a delay the sources consulted do not give, and the new listener is refused in the meantime. Only force it if it stays stuck.

Step 3: Sync the new cluster: the controller, then the scale set

In that order. The new cluster's listener then gets the session and stays up.

Check

# on the old cluster: no listener left
kubectl --context=old -n arc-systems get pods -l app.kubernetes.io/component=runner-scale-set-listener

# on the new one: the listener stays Running, and the controller no longer recreates it in a loop
kubectl --context=new -n arc-systems get pods -w
kubectl --context=new -n arc-systems logs deploy/arc-gha-rs-controller --tail=100 | grep -i 'listener pod'

Then run a workflow: a runner pod should appear in the new cluster's runner namespace.

Prevention

  • In the cutover plan, replace "suspend the runners" with the two actions that actually release the session: controller to zero, listener pod deleted. And one check between the two clusters: no listener on the old one before the new one is synced.
  • If both clusters have to coexist, do not let them talk to the same scale set. Two ways to do it: a distinct runnerScaleSetName on the new cluster, with workflows moved from one label to the other; or the same name in a distinct runner group. That is the setup GitHub's documentation describes, page "Deploying runner scale sets with Actions Runner Controller", section "High availability and automatic failover". An ARC maintainer pointed to it in issue #3351: two scale sets with the same name in the same group is the problem.

The cutover was carried out by an agent, following a specification written in advance. The faulty step was written in the specification, and the agent applied it faithfully, without any execution mistake. That is the most expensive case, because nothing looks like a deviation.

The fix then became a persistent memory note: the four-step procedure and the reason each step is needed, so that the next agent moving a scale set does not reread the same wrong specification. The note says why maxRunners: 0 is not enough. Without that reason, someone would end up "simplifying" the procedure.

What this entry does not cover

  • The same 409 without a second cluster. ARC issues report it on a single installation; the cause is different, and it is not covered here.
  • Two organisations, one namespace, one scale set name: that is issue #3587, fixed in 0.13.1 by the wider hash. Upgrade the controller.
  • Runners that run but that GitHub refuses, with a 403 from the broker: a different cause (a runner image that is too old), and its own entry.

Frequently asked questions

Why does the message name my own listener as the session holder? That is the 2024 form of the message. Both clusters compute the same listener name: the scale set name plus a hash of the namespace. The holder really is the other cluster, but it carries your name.

Is maxRunners: 0 on the old cluster not enough to neutralise it? No. It prevents new runners; the listener keeps holding the GitHub session.

Is scaling the old cluster's controller to zero enough? No again. No ReplicaSet manages the listener pod: with the controller stopped, it stays in place and keeps the session. It has to be deleted by hand.

Where this entry comes from

A personal infrastructure migration on 28 April 2026: an organisation's continuous integration runners moved from one Kubernetes cluster to another, with ARC 0.10.1 on both sides. The names of clusters, organisation and scale set are replaced.

The conflict and its resolution are recorded in two documents from that time: the migration's execution report, which notes the same scale set identifier on both sides, and a memory note that sets down the procedure and explains why a controller at zero is not enough. The identical values of the two scale sets, the ARC version and the Helm release name come from the configuration's git history. The listener name, identical on both sides, appears in a pod listing of the old cluster taken in February 2026, and in the specification written the day after the migration for the new one.

On 14 October 2026, every technical claim was checked against a source: ARC's code at versions 0.10.1, 0.13.0 and 0.13.1 (listener name, scale set lookup by name and group, creation, deletion and re-creation of the listener pod, the runner-scale-set-listener label, closing the session on stop, error formatting), the controller's Helm chart at 0.10.1 (deployment name), and issues #3209, #3351, #3382, #3587, #3922, #4285 and #4356. The 754b578d suffix was recomputed with ARC's algorithm: FNV-32a over arc-runners, whose decimal value goes through Kubernetes' rand.SafeEncodeString, truncated to eight characters.

What is not known: the transcript of the session in which the conflict was diagnosed was not kept, so the exact error message from the incident is in no trace. The two lines quoted above are public forms of that message; the first is the one the incident's version very probably printed. The time lost is not known either.


This entry is part of a notebook of 27 production failures hit between February and September 2026. Some are public and free: see the notebook.

The others are published as they are written, along with the modules and their exercises, as part of the paid product. In that product, the modules are in English; the exercises and the other entries are in French. Nothing on this page is a teaser for it.

Related notes

The method that handles this kind of failure