Repository navigation
Description
What's the problem
Second failure mode found during #4045 (owner comment 2026-11-12, fleet backup pool on the 2.0.3 cut): P2Pool logged "no connections to other p2pool nodes" about 180 times an hour since 2026-11-11 10:04Z with no new sidechain tip, while monerod and Tor were healthy. Two other CI stacks kept their peers. A docker restart p2pool is the manual cure; nothing automated watches P2Pool peers.
What it impacts
Mining revenue and pool validity: a peerless P2Pool mines a private sidechain (the CI box did exactly that after a restart, until fresh-state Tor let it rejoin at 01:31Z, ~16 minutes after the restarts — so the watchdog needs patient backoff, not a single give-up). Release-blocker context for v2.0.4.
How I found it
Owner's CI monitoring comments on #4045 (2026-11-12): log counts, the recovery timeline, and the comparison with two unaffected stacks. No code defect located — the watchdog simply does not exist.
How important is it
Release-blocker for v2.0.4 by owner direction (2026-11-12): the ladder must cover "P2Pool with zero peers for more than N minutes: restart P2Pool".
Acceptance criteria
- P2Pool reporting zero peers for a bounded window (fixed, documented bound) triggers a P2Pool container restart, with a cooldown, a per-day cap, an audit entry and an owner-visible log line; after the cap it stops and says so.
- Recovery is judged on sidechain tip progress resuming, not just the container being up; while the sidechain is syncing after a restart the watchdog waits (the real-world rejoin took ~16 min), with bounded retries and backoff before a further restart.
- A remote/absent P2Pool (merged-mining-off modes) is never touched.
- Unit tests red without the fix; an e2e fault scenario cuts all P2Pool peers and proves the sidechain tip resumes unattended within the bounded window; a KVM leg for the P2Pool-peer-loss mode.
Possible solutions
- A P2Peer healer modelled on the bounded tor_heal pattern, fed by the P2Pool peer-count source the dashboard already collects; restart through the same container control API; the private-sidechain detector itself is a Triage the warnings every appliance logs: silence the noise, fix the config debts, rate-limit retry spam #4047 doctor row, not needed to gate this.
Parent: #4045
Worker brief: Test tier: tier4-e2e. Add a bounded P2Pool peer watchdog in the dashboard service: zero reported peers for a fixed window (documented constant; cooldown + per-day cap + audit + one-off owner-visible log) restarts the p2pool container via the same docker control API tor_heal.py uses; after a restart, judge recovery on sidechain tip progress with patient bounded backoff (real rejoin took ~16 min), and at the cap stop and say so. Never touch a box whose mode has no local P2Pool. Find the existing P2Pool status/peer source under dashboard/mining_dashboard (collector/service) and reuse it — do not add a new daemon probe path. Tests: dashboard/tests/service/health cases (peerless window → restart; still peerless with backoff → second restart within cap; cap → stop+warn) red before the fix; an e2e fault scenario cutting all p2pool peers → tip resumes unattended within the window; a KVM guest leg. Do NOT touch tor_heal.py's ladder, monerod watchdog, config templates or alert UI — sibling chunks. No comments in code; document the new bound in the docs page describing auto-heal.
Activity
tests(os): source the p2pool-heal phase in the module selftest (#4077)
Merge origin/develop into the p2pool watchdog branch (#4077)
tests: keep run-faults.sh within its budget; guest p2pool-heal report…
tests(os): p2pool-heal proves the control-path restart when the guest…
tests(os): name what the p2pool-heal row proves (#4077)
tests(os): p2pool-heal starts a gate-stopped guest P2Pool before the …
tests(os): leave the run.sh usage comment as it was (#4077)
pithead-developer commentedon Nov 15, 2026
Merged in #4098.
P2Pool with zero peers for a bounded window is restarted, with backof…
Tor diagnostics snapshot: circuits, consensus, guards, bootstrap and …