Skip to content

Ephemeral JIT runner hangs after "Acknowledging runner request" and never exits; job fails with "lost communication" (2.338.0, linux-x64) #4855

Open

Description

@scapeshift-ojones

Describe the bug

A runner registered with a JIT config (ephemeral, one job) accepts a job and then hangs. The listener's diag log ends at "Acknowledging runner request" and one token-request line. Nothing follows, and no Runner.Worker process is started. In the case we traced, GitHub failed the job about 10 minutes later with "The self-hosted runner lost communication with the server", and the registration was gone afterwards (GET /orgs/{org}/actions/runners/{id} returned 404).

The listener process never exits. It stays alive with 13 threads, its main thread in futex_wait and its TCP connections open, so the service manager never restarts it. Two runners on the same host hung this way about an hour apart. Each stayed hung for 6–7 hours, until we killed it.

To reproduce

We can't reproduce it on demand. Both cases had these conditions:

  • Runner 2.338.0, linux-x64, Ubuntu 24.04, kernel 6.8.
  • Registered via generate-jitconfig. .runner has "ephemeral": true and "disableUpdate": true. Started through runsvc.sh under systemd, one job per start.
  • The job request arrived within about a second of "Listening for Jobs".
  • The runner directory is read-only to the runner user, except _work and _diag. In normal operation this causes only the expected "Read-only file system: .credentials" error after a completed job. Hundreds of jobs a day complete normally on this host.

Expected behavior

The job runs. Or, if the listener cannot acquire it, the listener gives up and exits so the supervisor can restart it.

Runner version / OS

2.338.0, Ubuntu 24.04.4 LTS x86_64

Logs

The listener diag log, last lines. Both instances end the same way:

[17:35:23Z INFO BrokerMessageListener] Session created.
[17:35:23Z INFO Terminal] WRITE LINE: Current runner version: '2.338.0'
[17:35:23Z INFO Terminal] WRITE LINE: 2026-11-11 17:35:23Z: Listening for Jobs
[17:35:23Z INFO JobDispatcher] Set runner/worker IPC timeout to 30 seconds.
[17:35:23Z INFO BrokerMessageListener] Acknowledging runner request '<id>'.
[17:35:23Z INFO CredentialManager] Creating credential type: OAuth
[17:35:23Z INFO RSAFileKeyManager] Loading RSA key parameters from file <runner>/.credentials_rsaparams
[17:35:23Z INFO GitHubActionsService] AAD Correlation ID for this token request: Unknown

Nothing follows these lines, and there is no Worker log.

Job annotation: "The self-hosted runner lost communication with the server. Verify the machine is running and has a healthy network connection. ..."

Possibly related: #4309, #2040.

Activity

  1. scapeshift-ojones commented on Nov 15, 2026

    @scapeshift-ojones
    Author

    More cases. Same host, same setup (2.338.0, linux-x64, JIT config, one job per start under systemd), across two runner pools:

    # "Listening for Jobs" request acknowledged hung for
    1 17:35:23Z 17:35:23Z (same second) ~7 h
    2 18:37:59Z 18:37:59Z (same second) ~6 h
    3 17:51:06Z 17:51:06Z (same second) ~33.5 h
    4 02:09:03Z assigned 02:09:07Z (diag lost when restarted) ~2 h

    In every case no Runner.Worker ever started, and the listener stayed alive and silent until something killed it. Where we traced the job (cases 2 and 4), it ended at exactly 10 min with no steps ("lost communication").

    The common factor is timing: each request arrived within seconds of the listener creating its session. Requests that arrive later on the same runners run normally (hundreds of jobs a day).

    Our workaround: a root timer that restarts a per-job runner whose diag log shows an acknowledged request but no Worker log and no Worker process after 120 s. The job that hit the hang still fails once.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions