Register a Gitea Actions runner — CI runs stay queued forever without one (human action) #22

Open
opened 2026-11-29 00:16:54 +00:00 by opencode · 1 comment
Owner

Context — evidence

Actions are enabled on the instance and workflow triggers fire correctly (push + workflow_dispatch runs get created), but every run sits queued forever — including the four stale runs created when the repo was imported. That is the signature of no runner being registered with the instance.

Current state: .gitea/workflows/linux.yml on master is active and dispatching; run #6 (workflow_dispatch) is queued, waiting for a runner that does not exist.

What a human with server access needs to do (one-time)

  1. On the Gitea host (or any machine that can reach it): install a runner — gitea-runner 5.x (gitea.com/gitea/runner) or act_runner.
  2. Get a registration token: Gitea → Site Administration → Actions → Runners (or repo/org settings), then:
    gitea-runner register --no-interactive --instance https://git.thetomie.com --token <TOKEN>
  3. Register a label that maps to a full GitHub-compat image so actions/checkout@v4 (node20) works:
    ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-latest
    (plain docker.gitea.com/runner-images:ubuntu-latest also works on newer stacks; the catthehacker image is the safest for node20 actions)
  4. Docker/podman must be available to the runner user; start it as a service.

Acceptance

  • Run #6 (or a fresh dispatch) transitions queued → running → completed with the re3-linux-x64-gl3-oal artifact attached.
  • Afterward, CI becomes the automated verification gate for all agent commits.
## Context — evidence Actions are enabled on the instance and workflow **triggers fire correctly** (push + workflow_dispatch runs get created), but every run sits **`queued` forever** — including the four stale runs created when the repo was imported. That is the signature of **no runner being registered** with the instance. Current state: `.gitea/workflows/linux.yml` on `master` is active and dispatching; run #6 (workflow_dispatch) is queued, waiting for a runner that does not exist. ## What a human with server access needs to do (one-time) 1. On the Gitea host (or any machine that can reach it): install a runner — `gitea-runner` 5.x (gitea.com/gitea/runner) or act_runner. 2. Get a registration token: Gitea → Site Administration → Actions → Runners (or repo/org settings), then: `gitea-runner register --no-interactive --instance https://git.thetomie.com --token <TOKEN>` 3. Register a label that maps to a **full GitHub-compat image** so `actions/checkout@v4` (node20) works: `ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-latest` (plain `docker.gitea.com/runner-images:ubuntu-latest` also works on newer stacks; the catthehacker image is the safest for node20 actions) 4. Docker/podman must be available to the runner user; start it as a service. ## Acceptance - Run #6 (or a fresh dispatch) transitions queued → running → completed with the `re3-linux-x64-gl3-oal` artifact attached. - Afterward, CI becomes the automated verification gate for all agent commits.
opencode added this to the M1: Repo & CI modernization milestone 2026-11-29 00:16:54 +00:00
opencode added the ci label 2026-11-29 00:16:54 +00:00
Author
Owner

Update 2026-11-29 — runners registered, CI still red: host container-runtime problem.

✅ Runners are live (gitea-runner-0 + gitea-runner-1, gitea-runner v6.1.0, Alpine Linux v3.24, labels ubuntu-latest/26.04/24.04/22.04). Runs transition queued → running.

❌ Every CI job dies at the container image pull step, on both runners, with both the default image and a pinned alternative:

failed to extract layer (...) to overlayfs ...:
failed to convert whiteout file "usr/share/doc/git/contrib/...": operation not permitted
  • Default image docker.gitea.com/runner-images:ubuntu-latest → run #18 (master), run #22 (miami): EPERM converting whiteout usr/share/doc/git/contrib/.wh.coccinelle.
  • Pinned image ghcr.io/catthehacker/ubuntu:act-24.04 → run #25: same error class, different whiteout file → confirms it is the host runtime, not the image.

The error format is containers-storage/overlayfs style (podman/crun signature). Converting OCI layer whiteouts requires creating char-device nodes — in a rootless container runtime without that capability it fails with exactly this EPERM. So: the runner host's container runtime cannot extract any modern multi-layer OCI image.

Host-side fixes (any one of these, on the Alpine runner host(s)):

  1. If the runner uses rootless podman: apk add fuse-overlayfs and configure storage to use it — /etc/containers/storage.conf:
    [storage]
    driver = "overlay"
    mount_program = "/usr/bin/fuse-overlayfs"
    
  2. Run the runner rootful (rootless whiteout mknod → EPERM is the classic signature of this exact error).
  3. Update/replace the container runtime so whiteout conversion is permitted.

Both workflows keep the catthehacker/ubuntu:act-24.04 pin (a robustness upgrade regardless — guarantees node20 for actions/checkout@v4). After the host fix, re-dispatch should go green; this issue closes on the first green run.

**Update 2026-11-29 — runners registered, CI still red: host container-runtime problem.** ✅ Runners are live (`gitea-runner-0` + `gitea-runner-1`, gitea-runner v6.1.0, Alpine Linux v3.24, labels `ubuntu-latest/26.04/24.04/22.04`). Runs transition queued → running. ❌ Every CI job dies at the **container image pull** step, on both runners, with both the default image and a pinned alternative: ``` failed to extract layer (...) to overlayfs ...: failed to convert whiteout file "usr/share/doc/git/contrib/...": operation not permitted ``` - Default image `docker.gitea.com/runner-images:ubuntu-latest` → run #18 (master), run #22 (miami): EPERM converting whiteout `usr/share/doc/git/contrib/.wh.coccinelle`. - Pinned image `ghcr.io/catthehacker/ubuntu:act-24.04` → run #25: **same error class**, different whiteout file → confirms it is the **host runtime**, not the image. The error format is containers-storage/overlayfs style (podman/crun signature). Converting OCI layer whiteouts requires creating char-device nodes — in a **rootless** container runtime without that capability it fails with exactly this EPERM. So: **the runner host's container runtime cannot extract any modern multi-layer OCI image.** **Host-side fixes (any one of these, on the Alpine runner host(s)):** 1. If the runner uses **rootless podman**: `apk add fuse-overlayfs` and configure storage to use it — `/etc/containers/storage.conf`: ``` [storage] driver = "overlay" mount_program = "/usr/bin/fuse-overlayfs" ``` 2. Run the runner **rootful** (rootless whiteout `mknod` → EPERM is the classic signature of this exact error). 3. Update/replace the container runtime so whiteout conversion is permitted. Both workflows keep the `catthehacker/ubuntu:act-24.04` pin (a robustness upgrade regardless — guarantees node20 for `actions/checkout@v4`). After the host fix, re-dispatch should go green; this issue closes on the first green run.
Sign in to join this conversation.