Fix wolf-pair: scan for a free port instead of hardcoding 8090 #1

Merged
root merged 1 commits from claude/wolf-pair-port-conflict-7nz8qg into main 2026-08-31 17:48:38 +00:00
Owner

wolf-pair runs network_mode: host, so a taken 8090 fails at container
start with "address already in use" and no ports: line in
docker-compose.yml to explain why — wordpress, ntfy, and beszel all
default to 8090 too and correctly scan for a free port; wolf-pair
hardcoded it in three places (installer var, UFW rule, server.py's
bind) with no scan at all.

Now finds a free port via find_free_port, persists it in a new .env
(read back on rerun so a live install never silently moves), and
threads it into the container via WOLFPAIR_PORT so server.py binds
the scanned port instead of a literal 8090.

wolf-pair runs network_mode: host, so a taken 8090 fails at container start with "address already in use" and no ports: line in docker-compose.yml to explain why — wordpress, ntfy, and beszel all default to 8090 too and correctly scan for a free port; wolf-pair hardcoded it in three places (installer var, UFW rule, server.py's bind) with no scan at all. Now finds a free port via find_free_port, persists it in a new .env (read back on rerun so a live install never silently moves), and threads it into the container via WOLFPAIR_PORT so server.py binds the scanned port instead of a literal 8090.
root added 1 commit 2026-08-31 17:48:28 +00:00
wolf-pair runs network_mode: host, so a taken 8090 fails at container
start with "address already in use" and no ports: line in
docker-compose.yml to explain why — wordpress, ntfy, and beszel all
default to 8090 too and correctly scan for a free port; wolf-pair
hardcoded it in three places (installer var, UFW rule, server.py's
bind) with no scan at all.

Now finds a free port via find_free_port, persists it in a new .env
(read back on rerun so a live install never silently moves), and
threads it into the container via WOLFPAIR_PORT so server.py binds
the scanned port instead of a literal 8090.
root merged commit 81f2f36ba4 into main 2026-08-31 17:48:38 +00:00
root deleted branch claude/wolf-pair-port-conflict-7nz8qg 2026-08-31 17:48:40 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: root/ubuntu-post-install#1