Files
q-blog/docs/CI_RUNNER_TROUBLESHOOTING.md
2025-08-21 16:40:49 -04:00

40 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# CI Runner Troubleshooting (Quick)
If a workflow shows **Waiting** indefinitely, its almost always one of:
1. **No runner matches labels** This workflow requires only the `self-hosted` label.
Ensure your runner config includes it:
```yaml
runner:
capacity: 1
labels: ['self-hosted', 'linux', 'x64']
```
2. **Runner offline** start the runner process and watch logs:
```bash
./run.sh # or the systemd service you configured
```
You should see “listening for jobs”.
3. **Another job occupying capacity** your runner has `capacity: 1`.
Cancel the stuck job in Actions UI.
4. **Repo visibility / permissions** ensure Actions are enabled for this repo and the runner is allowed to pick jobs from it.
This repos workflow doesnt use marketplace actions, Docker, or services—so a plain runner works.
## Verify via API (optional)
```bash
# runs list
curl -s -H "Authorization: token $GITEA_TOKEN" \
"$GITEA_BASE_URL/api/v1/repos/$OWNER/$REPO/actions/runs?limit=5" | jq .
# a specific run
curl -s -H "Authorization: token $GITEA_TOKEN" \
"$GITEA_BASE_URL/api/v1/repos/$OWNER/$REPO/actions/runs/{run_id}" | jq .
```