You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CI job Base Registry Engine tutorial from source sometimes fails in its last step, Execute the Base Registry Engine tutorial from a reader directory, when tutorials/first-breg fence 03 starts bregctl dev:
==> tutorials/first-breg fence 03
bregctl dev refused.
error dev.failed dev
a requested local port is already occupied; stop its owner or choose other
ports: Address already in use (os error 98)
A re-run of the same commit passes. Seen three times since 2026-09-01, each time at the same fence (all other failures of this job in that window had other causes):
The tutorial page starts bregctl dev with its defaults: BREG on 8090, the issuer on 8091 and PostgreSQL on 55432 (crates/registry-bregctl/src/dev/mod.rs, StartArgs). The gate replays the page's fences as written, so it cannot pass other ports.
Earlier steps in the same job (dev_lifecycle, the attachment lifecycle scripts and the retained example recovery test) start complete dev sessions on OS-assigned loopback ports, then stop them.
55432 lies inside Linux's default ephemeral port range (32768 to 60999), so a socket from an earlier step could hold it. That is a hypothesis, not a confirmed cause.
Proposal
Before replaying a page that starts bregctl dev, have docs/site/scripts/check-breg-tutorial.sh check that 8090, 8091 and 55432 are free on 127.0.0.1. When one is not, print what holds it (for example ss -ltnp and docker ps) and fail with that port named, so the next occurrence identifies the owner.
Once the owner is known, fix the cause in the job (stop or wait for the leftover session, or keep the default ports out of the runner's ephemeral range) rather than retrying the fence.
Until then, re-running the failed job is the workaround.
What happens
The CI job Base Registry Engine tutorial from source sometimes fails in its last step,
Execute the Base Registry Engine tutorial from a reader directory, whentutorials/first-bregfence 03 startsbregctl dev:A re-run of the same commit passes. Seen three times since 2026-09-01, each time at the same fence (all other failures of this job in that window had other causes):
What is known
bregctl devwith its defaults: BREG on 8090, the issuer on 8091 and PostgreSQL on 55432 (crates/registry-bregctl/src/dev/mod.rs,StartArgs). The gate replays the page's fences as written, so it cannot pass other ports.dev_lifecycle, the attachment lifecycle scripts and the retained example recovery test) start complete dev sessions on OS-assigned loopback ports, then stop them.Proposal
bregctl dev, havedocs/site/scripts/check-breg-tutorial.shcheck that 8090, 8091 and 55432 are free on 127.0.0.1. When one is not, print what holds it (for exampless -ltnpanddocker ps) and fail with that port named, so the next occurrence identifies the owner.Until then, re-running the failed job is the workaround.