actions / runner

The Runner for GitHub Actions :rocket:
https://github.com/features/actions
MIT License
4.64k stars 892 forks source link

'Inconsistency detected by ld.so' causes actions-runner to crash #3343

Open Crashdoom opened 1 week ago

Crashdoom commented 1 week ago

Describe the bug When running the latest actions-runner image (https://github.com/actions/runner/pkgs/container/actions-runner/223152759?tag=latest), the runner crashes when attempting to load the RSA key parameters during the runner startup process. This seems to be happening even when using the base unmodified image (ghcr.io/actions/actions-runner:latest).

To Reproduce Steps to reproduce the behavior:

  1. Deploy runners using the gha-runner-scale-set chart, ensure at least 1 runner will start (minRunners: 1 should suffice)
  2. Wait for the runner to be deployed
  3. Runner will attempt to start and immediately crash with the attached error.

Expected behavior Runner should start normally

Runner Version and Platform

Version of your runner? latest / 2.317.0

OS of the machine running the runner? Linux (Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-92-generic x86_64), hosted on Kubernetes.

What's not working?

Please include error messages and screenshots.

N/A (See below.)

Job Log Output

If applicable, include the relevant part of the job / step log output here. All sensitive information should already be masked out, but please double-check before pasting here.

[RUNNER 2024-06-17 23:14:42Z INFO MessageListener] Loading Credentials
[RUNNER 2024-06-17 23:14:42Z INFO ConfigurationStore] HasCredentials()
[RUNNER 2024-06-17 23:14:42Z INFO ConfigurationStore] stored True
[RUNNER 2024-06-17 23:14:42Z INFO CredentialManager] GetCredentialProvider
[RUNNER 2024-06-17 23:14:42Z INFO CredentialManager] Creating type OAuth
[RUNNER 2024-06-17 23:14:42Z INFO CredentialManager] Creating credential type: OAuth
[RUNNER 2024-06-17 23:14:42Z INFO HostContext] Well known directory 'Bin': '/home/runner/bin'
[RUNNER 2024-06-17 23:14:42Z INFO HostContext] Well known directory 'Root': '/home/runner'
[RUNNER 2024-06-17 23:14:42Z INFO HostContext] Well known config file 'RSACredentials': '/home/runner/.credentials_rsaparams'
[RUNNER 2024-06-17 23:14:42Z INFO RSAFileKeyManager] Loading RSA key parameters from file /home/runner/.credentials_rsaparams
Inconsistency detected by ld.so: ../sysdeps/x86_64/dl-machine.h: 534: elf_machine_rela_relative: Assertion `ELFW(R_TYPE) (reloc->r_info) == R_X86_64_RELATIVE' failed!
Exiting with unknown error code: 127
Exiting runner...

Runner and Worker's Diagnostic Logs

If applicable, add relevant diagnostic log information. Logs are located in the runner's _diag folder. The runner logs are prefixed with Runner_ and the worker logs are prefixed with Worker_. Each job run correlates to a worker log. All sensitive information should already be masked out, but please double-check before pasting here.

N/A (upon request, as I don't believe this is stored as the worker is ephemeral).