Troubleshooting
A job that never starts, waits too long, or fails only on Tukang.
docker compose logs --tail 50 tukangStart there. Every event the dashboard's activity log shows is in serve's log too.
The job sits on "Waiting for a runner"
That's GitHub's status while no runner has the job. A wait of up to one poll plus the container's start is normal: Tukang's predecessor added about 30 to 45 s before a job started (measured on a Mac mini M4 with OrbStack). Longer than that:
| Sign | Cause and fix |
|---|---|
| The repo shows "Idle" on the dashboard | The job's runs-on doesn't match. Every label in it must be one of self-hosted, Linux, ARM64 or X64, and your TUKANG_LABEL. |
| The repo isn't on the dashboard | It's not in TUKANG_REPOS or TUKANG_REPOS_FILE, or the file has an error (see the log). |
| "Polling failed" on the repo | The token can't read the repo, or the API rate limit is used up. tukang check says which. |
| "job queued but not taking it: 2 of 2 jobs already running" | TUKANG_MAX_JOBS is reached. The job starts when one ends. |
| "job queued but not taking it: only 3.2 GB free" | TUKANG_MIN_FREE_GB is holding it. Free disk space. |
| "registering a runner failed: github: 403" | The token lacks Administration: read and write on that repo. |
| "creating the job container failed" | Docker refused it. The log has Docker's message. |
The job waits in "Set up job"
The runner has the job and its hook is waiting for the gate. The dashboard shows "Waiting for the gate". Check what your gate command is waiting on: run it by hand in serve's container with docker compose exec tukang sh -c "$TUKANG_GATE".
The job fails right away with "tukang refused the job"
The gate command exited before it printed go, or didn't print it within TUKANG_GATE_WAIT. The message after the colon is the command's last stderr line. See Gate.
The job fails only on Tukang
| Error | Cause and fix |
|---|---|
Killed, exit code 137, "out of memory" on the dashboard | The job went over TUKANG_JOB_MEMORY. Raise it if the host has room. |
command not found | ubuntu-latest has the tool preinstalled and the image doesn't. Install it in a step or a setup-* action. |
exec format error, a missing linux-x64 file | The step downloads an x64 build on an ARM64 host. Pick the download from runner.arch (see Workflows). |
Container action is only supported on Linux, a Docker error on a uses: step, services: failing | The job needs a Docker daemon, and jobs don't have one. Move it to a GitHub-hosted runner. |
| Float or snapshot differences | ARM64 and x64 round differently. Compare with a tolerance. |
Runners show as offline in the repo's settings
A runner that never got a job is deleted after TUKANG_IDLE_TIMEOUT. One left behind when serve was killed in the middle of starting it can be removed in Settings, Actions, Runners. A runner that took a job deletes itself.
Runners stop registering after an upgrade on GitHub's side
GitHub stops accepting old runner versions after a while, and the runner in the image never updates itself. Rebuild with a newer RUNNER_VERSION (see Self-hosting).