8
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

この記事誰得? 私しか得しないニッチな技術で記事投稿!

【Github Actions】run.cmdを実行したらRunnerプロセスを起動できない

Last updated at Posted at 2023-06-21

run.cmd実行するとこんなエラーが出てくる

既存Ruunerプロセスが有効セッション紐づけられているため、新しくRunnerプロセスを起動できないエラーが表示される。

PS C:\actions-runner> .\run.cmd
        1 個のファイルをコピーしました。

√ Connected to GitHub

.\run.cmd : A session for this runner already exists.
発生場所 行:1 文字:1
+ .\run.cmd
+ ~~~~~~~~~
    + CategoryInfo          : NotSpecified: (A session for t...already exists.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
2023-06-21 01:21:33Z: Runner connect error: The actions runner ホスト名 already has an active session for owner ホスト名.. Retrying until reconnected.

√ Connected to GitHub

A session for this runner already exists.

√ Connected to GitHub

A session for this runner already exists.
Stop retry on SessionConflictException after retried for 240 seconds.
Failed to create session. The actions runner ホスト名 already has an active session for owner ホスト名.
"Runner listener exit with terminated error, stop the service, no retry needed."
"Exiting runner..."

対応方法

既存Runnerプロセスを削除する
Runner.Lisenerという名前が既存Runnerプロセスです。
このプロセスが有効セッションと紐づけられているため削除します。
image.png

既存Runnerプロセス削除後にrun.cmdを再実行する

既存Runnerプロセスを削除後にrun.cmdを実行すると新しいRuunerプロセスに有効セッションが紐づけられて起動します。

PS C:\actions-runner> .\run.cmd
        1 個のファイルをコピーしました。

√ Connected to GitHub

.\run.cmd : A session for this runner already exists.
発生場所 行:1 文字:1
+ .\run.cmd
+ ~~~~~~~~~
    + CategoryInfo          : NotSpecified: (A session for t...already exists.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
2023-06-21 01:30:10Z: Runner connect error: The actions runner ホスト名 already has an active session for owner ホスト名.. Retrying until reconnected.

√ Connected to GitHub

2023-06-21 01:30:41Z: Runner reconnected.
Current runner version: '2.305.0'
2023-06-21 01:30:41Z: Listening for Jobs
8
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?