Interview Prep/GitHub Actions/Runners, Self-hosted & ARC

ARC listener pod logs `failed to get runner registration token ... 401 Bad credentials`.

AdvancedTroubleshootingRunners, Self-hosted & ARC
Answer

Likely causes → The GitHub App private key, app ID or installation ID in the secret is wrong, the app is not installed on the org or repo in githubConfigUrl, or the PAT expired.

Diagnose →

kubectl logs -n arc-systems -l app.kubernetes.io/component=runner-scale-set-listener --tail=50
kubectl get secret gh-app -n arc-runners -o jsonpath='{.data.github_app_installation_id}' | base64 -d

Fix → Recreate the secret with correct values; install the app with Actions and Administration permissions required by ARC.

Prevent → Manage the secret via External Secrets with alerts on listener restarts.

All GitHub Actions questions Roadmap: GitHub Actions

More on Runners, Self-hosted & ARC