Self-hosted runner jobs fail with `EACCES: permission denied, unlink '/home/runner/_work/app/app/dist/index.js'` at checkout.
IntermediateTroubleshootingRunners, Self-hosted & ARC
Answer
Likely causes → A previous container job wrote root-owned files into the persistent workspace; the runner user cannot delete them.
Diagnose → find _work -user root | head.
Fix → Clean with a privileged cleanup (docker run --rm -v $PWD:/w alpine rm -rf /w/dist), then run containers as the runner UID.
Prevent → Ephemeral runners, or a job-completed hook that resets ownership.
More on Runners, Self-hosted & ARC
Job stuck at `Waiting for a runner to pick up this job...`Beginner`This request was automatically failed because there were no enabled runners online to process the request for more than 1 days.`Beginner`Must not run with sudo` when running `./config.sh`.Beginner`Http response code: NotFound from 'POST https://api.github.com/actions/runner-registration'` during `config.sh`.BeginnerSelf-hosted runner logs: `Runner version v2.311.0 is deprecated and cannot receive messages.`Intermediate`fatal: detected dubious ownership in repository at '/__w/app/app'` in a container job on a self-hosted runner.Intermediate