Skip to content

ARC runners did not recover automatically after Github Outage #4396

Open

Description

@rob-howie-depop

Checks

Controller Version

0.13.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 is not reproducible directly as it is the byproduct of an incident.
see https://www.githubstatus.com/incidents/g9j4tmfqdd09

Describe the bug

During the GitHub Actions degraded availability incident on 2026-03-05 githubstatus.com/incidents/g9j4tmfqdd09), our ARC deployment experienced runners that became stuck in a bad state and were not automatically recovered after GitHub's services came back online.

These runners were registered before the incident, lost their registration during GitHub's degradation, and ARC never reconciled them back to a healthy state.

This was resolved by manually deleting all of the stuck ARC runner pods.

Describe the expected behavior

ARC has no garbage collection loop that reconciles GitHub-side runner registrations against actual Kubernetes pod state. The EphemeralRunnerReconciler only handles the forward path (create secret -> create pod -> monitor pod). It does not:

  1. Periodically verify that a runner's GitHub registration is still valid
  2. Detect runners whose registration was invalidated by a GitHub-side incident
  3. Clean up and re-provision runners that are running but no longer recognized by GitHub

I suggest that we should add periodic health check to the EphemeralRunnerReconciler that verifies the GitHub-side registration is still valid for running EphemeralRunners.

Additional Context

1. GitHub's `api.github.com/actions/runner-registration` endpoint became unavailable.
2. The ARC `EphemeralRunnerReconciler` failed to generate JIT configs for new runners, retrying 5 times with backoff before giving up.
3. Already-running runners lost their registrations on the GitHub side (`Registration <uuid> was not found`).
4. Runner pods entered `BrokerServer` backoff loops, unable to communicate with `broker.actions.githubusercontent.com`.
5. **After GitHub recovered at ~23:55 UTC, errors and backoff warnings continued until at least 00:17 UTC** — over 20 minutes of lingering failures. Runners that were mid-registration during the incident remained in a bad state with no automatic recovery.

Controller Logs

related logs:
https://gist.github.com/rob-howie-depop/27b15fd387ffc5f8f36e838614ffefc0

Runner Pod Logs

related logs:
https://gist.github.com/rob-howie-depop/27b15fd387ffc5f8f36e838614ffefc0

Activity

  1. added
    bug
    needs triage
    gha-runner-scale-set
    on Mar 6, 2026
  2. github-actions commented on Mar 6, 2026

    @github-actions
    Contributor

    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.

  3. changed the title [-]<Please write what didn't work for you here>[/-] [+]ARC runners did not recover automatically after Github Outage[/+] on Mar 6, 2026
  4. jspiewak commented on Aug 10, 2026

    @jspiewak

    We hit this again during the 2026-08-06 Actions outage (qcvjkzcs7j74) on ARC 0.14.2 / runner 2.335.1 (EKS). Adding data in case it helps triage, since this issue has been open since the March outage.

    Acute symptom. 27 runner pods in one scale set were left Running with status.jobRequestId: <none> for 17–21 hours. They were created between 16:37 and 20:07 UTC on 08-06, i.e. during the outage, and were still sitting there at 13:30 UTC on 08-07 — 11.5 hours after GitHub declared the incident resolved (02:04 UTC). Runner container logs showed nothing but a credential refresh every ~50 minutes:

    [RUNNER 2026-08-07 11:49:17Z INFO RSAFileKeyManager] Loading RSA key parameters from file /home/runner/.credentials_rsaparams
    [RUNNER 2026-08-07 11:49:17Z INFO GitHubActionsService] AAD Correlation ID for this token request: Unknown
    

    No job pickup, ever. The listener gauges reflected this precisely: gha_assigned_jobs pinned at 27 while gha_busy_runners averaged 0.12 across the entire 11.5-hour window.

    Impact. This is not just wasted capacity — it blocked scheduling. 261 of 970 jobs on that label queued more than 15 minutes, with delays peaking at 4.5–5 hours, despite maxRunners: 200 and only 27 runners present. Deleting the pods (kubectl delete pods -l actions.github.com/scale-set-name=...) resolved it immediately; average queue time on that scale set dropped from ~33 min to ~2.4 min within the hour.

    The part that may be more useful to you: while investigating, we found the same failure mode occurring chronically, with no outage involved. Joining pod lifetimes (kube-state-metrics pod.age) against actual job execution times from an ARC-independent source, in a normal incident-free week:

    Pod Lifetime Jobs run Actual work Idle
    …amd64-4-core-…-54kd2 4.8h 1 1,022s 4.5h
    …amd64-2-core-…-b4bp2 4.8h 1 667s 4.6h
    …amd64-2-core-…-xw6fx 4.6h 1 79s 4.6h
    …amd64-2-core-…-7mqgh 4.6h 1 89s 4.6h

    Every one ran exactly one job — correct ephemeral behaviour — and then simply never exited. Worst observed: a pod that lived 13.5 hours for a 631-second job, and one that lived 9.7 hours for an 11-second job. In the 13 days before the outage, 38 pods exceeded 8 hours of life. For scale, across 247,255 jobs in the same period only 4 ran longer than 4 hours, so genuine long jobs don't explain any of this.

    That suggests the outage isn't really the trigger — it just produces many at once. Whatever leaves a runner alive after its job completes appears to be happening continuously at a low rate, which may make this easier to reproduce than "wait for an incident". Possibly related: #4307 and #4155.

    The status page for the 08-06 incident stated that "the next releases of Actions Runner and Actions Runner Controller will include an automatic recovery mechanism, preventing the need for these manual steps in the future." Is there an issue or PR tracking that work? I couldn't find one, and 0.14.2 is still the latest release. Happy to provide more detail or test a fix.

  5. david-gang commented on Aug 16, 2026

    @david-gang

    Another datapoint on ARC 0.14.2 / runner 2.335.1 (self-managed Kubernetes, linux-arm64 runners), with two properties that I think are new to this thread: it happened with no GitHub incident in progress, and the runner stopped retrying entirely rather than looping.

    Strongly seconding @jspiewak's point that the outage isn't the trigger. There was no Actions incident on our date — the most recent was 2026-08-07 02:04 UTC, ten days earlier — and every other job in the same workflow run (hosted-runner jobs plus two other self-hosted scale sets) completed normally in the same window. This was a single isolated runner.

    Timeline

    The EphemeralRunner and its pod were created in the same second. One pod, zero restarts — so this is not the pod-recreation path from #4588; the JIT config was consumed exactly once, by the only pod that ever existed.

    13:07:09  EphemeralRunner + pod created
    13:07:22  Runner starts, consumes JIT config
              "Removing env var: 'ACTIONS_RUNNER_INPUT_JITCONFIG'"
              Saved 427 bytes to '/home/runner/.runner'
              Saved 224 bytes to '/home/runner/.credentials'
    13:07:24  First failure — 2 seconds after the JIT config was written
    

    The failure, and where it diverges from #4191

    [RUNNER 13:07:24Z ERR GitHubActionsService] POST request to
      https://<tenant>.actions.githubusercontent.com/<redacted>/_apis/oauth2/token
      failed. HTTP Status: BadRequest
    [RUNNER 13:07:24Z ERR RunServer] GitHub.Services.OAuth.VssOAuthTokenRequestException:
      Registration <redacted> was not found.
       at GitHub.Actions.RunService.WebApi.RunServiceHttpClient.GetJobMessageAsync(...)
       at GitHub.Runner.Common.RunServer...GetJobMessageAsync...
       at GitHub.Runner.Common.RunnerService.RetryRequest[T](...)
    [RUNNER 13:07:24Z WARN RunServer] Back off 13.069 seconds before next retry. 4 attempt left.
    [RUNNER 13:07:37Z WARN RunServer] Back off 13.951 seconds before next retry. 3 attempt left.
    [RUNNER 13:07:51Z WARN RunServer] Back off  5.323 seconds before next retry. 2 attempt left.
    [RUNNER 13:07:56Z WARN RunServer] Back off 10.248 seconds before next retry. 1 attempt left.
    [RUNNER 13:08:07Z ERR  Runner] Caught exception from acquiring job message:
      VssOAuthTokenRequestException: Registration <redacted> was not found.
       at GitHub.Runner.Listener.Runner.RunAsync(RunnerSettings settings,
          Boolean runOnce, Boolean returnRunOnceJobResult)
    

    Note the path: RunServer / RunServiceHttpClient.GetJobMessageAsync. #4191 fails in BrokerServer / BrokerHttpClient.GetRunnerMessageAsync — polling for any message, before assignment. This one fails while acquiring a specific, already-assigned job, which is why it can never self-correct: from the listener's perspective the assignment was already booked.

    Also unlike #4191, there is no infinite loop. It exhausted its 5 retries, logged the exception above at 13:08:07Z, and then wrote nothing ever again — while staying alive:

    # 45 minutes after the last log line:
    root   1  /bin/bash /home/runner/run.sh
    root  68  /bin/bash /home/runner/run-helper.sh
    root  72  /home/runner/bin/Runner.Listener run
    
    $ ls -la /home/runner/_diag/
    -rw-r--r-- 1 root root 26687 Runner_<...>-utc.log   # mtime 13:08, never touched again
    

    RunAsync returned from its retry wrapper but the process never exited. I'd argue this is worse than the #4191 loop: a loop at least emits a signal, whereas this is indistinguishable from a healthy idle runner by every available check.

    Nothing in the control plane noticed — 46 minutes

    EphemeralRunner:      phase: Running, ready: true, no failures recorded
    EphemeralRunnerSet:   currentReplicas: 1, pendingEphemeralRunners: 0,
                          runningEphemeralRunners: 1, failedEphemeralRunners: 0
    Pod:                  2/2 Running, Ready=True, restarts: 0
    

    The listener re-derived the same conclusion every ~50s for the entire 46 minutes:

    Calculated target runner count  "assigned job"=1 decision=1 min=0 max=3 currentRunnerCount=1
    Ephemeral runner set scaled.    replicas=1
    

    This is exactly the gap in the original report: because the pod never fails, the forward-only reconciler has no event, and there is no loop that would ever ask GitHub whether this runner's registration is still valid. kubectl delete ephemeralrunner <name> resolved it — a replacement was scheduled and picked up the job 90 seconds later, confirming capacity was available the whole time.

    Why this class is expensive on GPU pools

    Our runners request multiple accelerators each under a quota-gated scheduler, so a zombie doesn't only occupy a slot — it holds quota that a replacement would need. The failure is self-blocking: the stuck runner consumes exactly the budget required to recover from it. Anyone running ARC on constrained accelerator pools will see much higher impact per zombie than the CPU case.

    On the promised fix

    The 2026-08-06 incident summary states that "the next releases of Actions Runner and Actions Runner Controller will include an automatic recovery mechanism." As of today ARC's latest release is 0.14.2 (2026-05-22) and actions/runner's is v2.336.0 (2026-07-20) — both predate that incident, so no released version contains it. Echoing @jspiewak: is there an issue or PR tracking that work? Given this reproduces without an outage, the periodic registration health check proposed in the original report seems like the necessary fix rather than a nice-to-have. Happy to test a pre-release.

  6. jspiewak commented on Aug 24, 2026

    @jspiewak

    I was pointed at github/roadmap#1312 to track the 0.15.0 release. No timeframe, but it is "up next".

  7. lamdor commented on Sep 2, 2026

    @lamdor

    Another datapoint on ARC 0.14.2, self-managed Kubernetes (Talos), org-level runners. Adding it because the trigger differs from the outage cases above: there was no GitHub incident — both githubstatus.com and the Azure status page stayed green throughout — and we were able to identify the network fault precisely, which may help characterise what actually wedges the runner.

    Trigger: ~40 minutes of packet loss on the path to the Actions broker. On 2026-09-02 our cluster's egress to broker.actions.githubusercontent.com (20.85.130.105) degraded to 56% ICMP loss with RTT rising from ~13ms to 275-322ms. mtr located it inside AS8075, starting at the first Microsoft hop and persisting to the destination:

     5. AS27552  microsoft-px-100G.twdx.net      0.0%   <- our ISP handoff: clean
     6. AS8075   po26.ear02.bos01.ntwk.msn.net  38.0%   <- loss starts here
     7. AS8075   be21.owr01.bos01               41.0%
     8. AS8075   be1.owr01.bos33                55.0%
     9. AS8075   be2.ibr01.ewr30                72.0%
    10. AS8075   be5.ibr01.nyc30                77.0%
    17. AS8075   20.85.130.105                  53.0%   <- destination
    

    Non-Microsoft destinations were unaffected through the same NAT (Cloudflare 60/60 clean, 1.1.1.1 0% loss), and TCP:443 traced the same path with latency spiking to 2000-5000ms. It cleared on its own after ~40 minutes.

    Listeners behaved correctly. They exit non-zero once the long-poll exhausts its retries, and the controller recreates them:

    Application returned an error: failed to get message: failed to get next message:
      GET https://broker.actions.githubusercontent.com/scalesets/message
      giving up after 5 attempt(s): read tcp 10.244.1.48:54574->20.85.130.105:443:
      read: connection timed out
    

    Runners did not. 25 of them were left 2/2 Running with a job assigned but never executed it, for between 31 minutes and 4 hours — well past the point where connectivity had fully recovered. Same log signature others have reported here, ending on either a credential refresh or an explicit give-up:

    [RUNNER 2026-09-02 14:14:57Z INFO GitHubActionsService] AAD Correlation ID for this token request: Unknown
    [RUNNER 2026-09-02 15:02:24Z WARN RunServer] Back off 13.589 seconds before next retry. 4 attempts left
    

    The RunServer Back off ... N attempts left line may be the more useful of the two: unlike the listener, the runner does not exit when those attempts run out.

    The gauges showed it cleanly — sum(gha_assigned_jobs - gha_running_jobs) sat at 19 across four scale sets while every scale set was well below maxRunners (one at 10 of 48) and zero pods were Pending, so it was not capacity. Deleting the 25 EphemeralRunner objects requeued the jobs and dropped the gap to 1 immediately.

    On detection, in case it is useful to others hitting this before an upstream fix lands: we now alert on min_over_time(sum(gha_assigned_jobs - gha_running_jobs)[45m]). The raw gap is too noisy for a static threshold — ours has a 7-day p95 of 39 purely from normal scale-up bursts — but the floor over a window separates the cases well, since a healthy burst returns to 0 within minutes while a wedge holds it up for hours. It needs one guard: a cluster resource shortage produces an identical sustained gap (jobs assigned, pods Pending, nothing running), so we suppress on sustained Pending pods. In our data a wedge held Pending at 0-1 while a genuine node outage held it at 9.

    Consistent with the analysis in the issue description, this looks less like an outage-specific bug and more like the runner having no terminal state for "I can no longer reach GitHub". The listener's exit-and-be-restarted behaviour is exactly what the runner lacks.

    Happy to provide more detail or test a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggha-runner-scale-setneeds triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions