publish job fails on the runner without a Docker socket #201

Closed
opened 2026-12-01 12:16:20 +01:00 by midas · 2 comments
Owner

The publish job fails intermittently after 1-3 seconds:

ERROR: failed to connect to the docker API at unix:///var/run/docker.sock; ... no such file or directory

Seen on main runs 660 and 662 (2026-12-01) and on bad14fa (2026-11-24). Registry login succeeds; docker build fails because the job container has no /var/run/docker.sock. Runner in the failing runs: 82a91a83-27b1-4bb5-a863-07fd1aa359fc (v12.13.2). The same runs have a ~3 min backend job instead of ~8-10 min, so there appear to be two runners behind the java21 label and only the slower one exposes Docker.

Effect: merged changes are not published as :latest when the job lands on that runner. As of 2be7385 the gpodder fixes (#192) and frontend fixes (#196) are merged but not published.

Fix options:

  • mount the Docker socket on that runner (container.options: -v /var/run/docker.sock:/var/run/docker.sock plus valid_volumes in its config), or
  • give the Docker-capable runner its own label (e.g. docker) and use it for publish in .forgejo/workflows/build-and-push.yml.

Until then: re-run the failed publish job from the Actions page until it lands on the other runner.

The `publish` job fails intermittently after 1-3 seconds: ``` ERROR: failed to connect to the docker API at unix:///var/run/docker.sock; ... no such file or directory ``` Seen on main runs 660 and 662 (2026-12-01) and on bad14fa (2026-11-24). Registry login succeeds; `docker build` fails because the job container has no `/var/run/docker.sock`. Runner in the failing runs: `82a91a83-27b1-4bb5-a863-07fd1aa359fc` (v12.13.2). The same runs have a ~3 min backend job instead of ~8-10 min, so there appear to be two runners behind the `java21` label and only the slower one exposes Docker. Effect: merged changes are not published as `:latest` when the job lands on that runner. As of 2be7385 the gpodder fixes (#192) and frontend fixes (#196) are merged but not published. Fix options: - mount the Docker socket on that runner (`container.options: -v /var/run/docker.sock:/var/run/docker.sock` plus `valid_volumes` in its config), or - give the Docker-capable runner its own label (e.g. `docker`) and use it for `publish` in `.forgejo/workflows/build-and-push.yml`. Until then: re-run the failed publish job from the Actions page until it lands on the other runner.
Author
Owner

Cause confirmed: the failing runner is the WSL runner xmg (uuid 82a91a83-…), whose /etc/forgejo-runner/config.yml had docker_host: "-" (use Docker, but do not mount the socket into job containers). Changed to docker_host: automount and restarted the service on 2026-12-01; backup at /etc/forgejo-runner/config.yml.bak-20261201. Not yet verified by a publish run on that runner.

Cause confirmed: the failing runner is the WSL runner `xmg` (uuid 82a91a83-…), whose `/etc/forgejo-runner/config.yml` had `docker_host: "-"` (use Docker, but do not mount the socket into job containers). Changed to `docker_host: automount` and restarted the service on 2026-12-01; backup at `/etc/forgejo-runner/config.yml.bak-20261201`. Not yet verified by a publish run on that runner.
Author
Owner

Verified: the re-run of run 662 executed entirely on the WSL runner (tasks 4239-4242) and publish succeeded in 3m14s on commit 2be7385. Closing.

Verified: the re-run of run 662 executed entirely on the WSL runner (tasks 4239-4242) and `publish` succeeded in 3m14s on commit 2be7385. Closing.
midas closed this issue 2026-12-01 13:04:00 +01:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
midas/podradar#201
No description provided.