Ephemeral JIT runner hangs after "Acknowledging runner request" and never exits; job fails with "lost communication" (2.338.0, linux-x64)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
調査の方向性
Start with the runner listener logs and the request acknowledgement and credential token flow described in the report; compare the related issues #4309 and #2040 for clues. The report has no reproducer or named source files, so first trace where the listener waits after acknowledging a request and look for a way to reproduce the hang. Done means the runner starts the worker or exits cleanly when it cannot acquire the job.
索引モデルが issue の本文から書いたものです。
説明
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..runnerhas"ephemeral": trueand"disableUpdate": true. Started throughrunsvc.shunder 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
_workand_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.
- 主要言語
- C#
- スター
- 6.4k
- フォーク
- 1.5k
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 36
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
actions/runner のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
actions/runner#4820 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Workflow schema omits documented code-quality and copilot-requests permissions対応中かも @localzet が 12 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
actions/runner#4692 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Runner crashes at InitializeSecretMasker on machines with Thai (th-TH) culture — culture-sensitive LastIndexOf in PowerShellPreAmpersandEscape対応中かも @CloudNinjaDev が 47 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
Broker retry logs an ERR stack trace and a phantom backoff on every job completion (listener's own cancellation treated as a request failure)対応中かも @nitrobass24 が 87 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug module
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
Tichau/FileConverter#829 ·
メンテナーはふだん 9 日以内に返信
-
needs triage
難易度 1/5 1時間未満 初心者へのやさしさ 71/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
majorsilence/Majorsilence.Forms#718 ·
メンテナーはふだん 1 日以内に返信