runner icon indicating copy to clipboard operation
runner copied to clipboard

Unexpected Removal of Runner from Production After VM Shutdown

Open Sidharth-Chandra opened this issue 9 months ago • 1 comments

After shutting down and restarting the Dev and QA VM hosting our self-hosted runner, the Dev and QA runners were unexpectedly removed from the runner's list. We have been following this process for several months without any issues, but this behavior happened for the first time. Production is currently inactive but still accepting jobs.

Steps to reproduce the behavior:

  1. Have a self-hosted runner running on a VM.
  2. Shut down the VM.
  3. Restart the VM and check the runner status.
  4. Observe that the runner has been removed.

Expected behavior The runner should persist after a VM restart and automatically reconnect upon boot, as it has done in the past.

Runner Version and Platform Platform: linux

Image Image Image

Sidharth-Chandra avatar Mar 24 '25 11:03 Sidharth-Chandra

Can you share the runner diag log? 🙇

TingluoHuang avatar Mar 24 '25 13:03 TingluoHuang

Maybe you are not properly binding some required files

-rw-r--r-- 1 runner 1001 268 Apr 7 22:45 .credentials -rw------- 1 runner 1001 1667 Apr 7 22:45 .credentials_rsaparams

I changed the entrypoint to fix this problem https://github.com/byli-dev/github-runner

bylidev avatar Apr 13 '25 19:04 bylidev