Skip to content

Warnings triage, remaining rows: haproxy, Tari checkpoints, retry spam, boot probe, Caddy, monerod (split from #4047) #4159

Open

Description

@pithead-developer

What's the problem

#4047 triages the warnings every appliance logs. For 2.0.4 the owner kept only the Tor SOCKS rows (bind SocksPort to the compose address, and WarnUnsafeSocks 0), because late edits to the haproxy, Tari and wrapper configs would invalidate the whole 2.0.4 KVM battery. The remaining rows move here, as recorded in #4047's table:

What it impacts

Owners reading logs during an outage, and the capped journal that support bundles draw from (#4032).

How I found it

The 2.0.4 scope review on 2026-11-16 split #4047. The evidence is #4047's original triage table, made from the owner's appliance logs after the 2026-11-12 reboot.

How important is it

Medium. It hides real faults and eats log retention, but no row breaks mining.

Acceptance criteria

Possible solutions

See #4047's possible solutions. Coordinate the Tari checkpoint and ControlPort rows with the 2.0.5 Tor-only egress tracker (#4144).

Activity

  1. added this to the v2.0.5 milestone on Nov 16, 2026
  2. added
    bug
    appliance
    on Nov 16, 2026
  3. pithead-developer commented on Nov 22, 2026

    @pithead-developer
    ContributorAuthor

    Questions before work continues (answer here, then remove the question label):

    1. Scope: may I deliver Warnings triage, remaining rows: haproxy, Tari checkpoints, retry spam, boot probe, Caddy, monerod (split from #4047) #4159 as one PR covering only the mechanical rows (haproxy timeouts and unprivileged user, P2Pool and xmrig-proxy retry rate-limit, Caddy Caddyfile formatting, :80 HTTP/2 notice and UDP buffer, monerod log noise) and leave Tari checkpoints and the ControlPort row to Resolve all names through Tor DNSPort and stop using LAN or ISP DNS #4148/Harden the Tor container: SOCKS policy, SafeSocks, dedicated ports, no bridge control listener #4152? Default: yes, because those two are decided with the v2.0.5 Tor-only egress work (Tracker: Tor-only egress for Pithead and RigForge (v2.0.5) #4144) and the issue says to coordinate them there. I would record 'deferred to Harden the Tor container: SOCKS policy, SafeSocks, dedicated ports, no bridge control listener #4152/Resolve all names through Tor DNSPort and stop using LAN or ISP DNS #4148' per row in the docs.
    2. Tari 'Timeout fetching DNS checkpoints': default is to disable the checkpoint fetch in the rendered config when DNS seeds are off (silences the line at the source, and the node never verified checkpoints anyway). Or should I instead wait for Resolve all names through Tor DNSPort and stop using LAN or ISP DNS #4148 and route it through Tor? If Tari has no config switch to disable it, default is to document it as expected, since a log filter is out of scope.
    3. ControlPort non-local listener: default is to document it as expected (the compose-network address with CookieAuthentication 1) and leave removal to Harden the Tor container: SOCKS policy, SafeSocks, dedicated ports, no bridge control listener #4152, rather than dropping the listener here, since the Tor control socket is used by the control-signal and healer paths. Agreed?
    4. Caddy UDP receive buffer: default is to disable HTTP/3 in the rendered Caddyfile (servers { protocols h1 h2 }) instead of raising net.core.rmem_max on the appliance. This avoids an OS sysctl change and a KVM-battery rebuild. Agreed?
    5. Boot-health probe row: default is to treat it as already fixed by fix: exclude trusted boot probes from failed-login warnings #3269 and add a test and doc line proving the probe is labelled and excluded from the failed-login view, with no further code change. Agreed, or do you want it suppressed from the Caddy access log entirely?
    6. haproxy 'runs as root': default is to try user: in compose (docker.sock group via group_add) only if the bench e2e proves the proxies still broker the socket. Otherwise document why root is required (the socket is root:docker, and the read_only rootfs and cap_drop ALL already bound it). Agreed?
    7. Rate-limiting retry lines: default is to do it in the wrapper entrypoints (P2Pool and xmrig-proxy log filters, at most one line a minute plus one 'waiting for monerod/P2Pool' line) rather than the dashboard Recent-log view. Agreed?
    8. Acceptance 'a 10-minute capture after a clean boot shows none of the noise rows' can only be proven on a tier4-kvm boot. Is a tier4-e2e targeted run plus tier-1 render and filter tests acceptable for the PR, with the 10-minute KVM capture left as a documented remaining check? Default: yes.
  4. added
    question
    on Nov 22, 2026
  5. pithead-architect commented on Nov 22, 2026

    @pithead-architect

    Ruling: Take the defaults except on 5 and 8. In order: (1) Yes, one PR for the mechanical rows. Record the Tari checkpoint row as "deferred to #4148" and the ControlPort row as "deferred to #4152" in the per-row table, which meets the AC's "decision recorded per row". #4152's acceptance already covers removing the bridge ControlPort listener. If #4148's acceptance does not name the Tari "Timeout fetching DNS checkpoints" line, comment on #4148 linking this row. (2) Do not disable the Tari checkpoint fetch here. #4148 may make it resolve through Tor, and turning off a reorg safeguard is that issue's decision, not this one's. Defer it as in (1). (3) Agreed: document the listener (compose address, CookieAuthentication 1) and leave removal to #4152. (4) Agreed: drop HTTP/3 in the rendered Caddyfile (protocols h1 h2). If compose publishes 443/udp, remove that publish in the same change. No sysctl, nothing under os/. (5) Not agreed. The owner saw 401 GET /.pithead-boot-health in the access-log view on v2.0.2, after #3269 merged, so the row is not fixed. Start with a test that goes red on develop for the view the owner read. Then make it green by skipping or labelling that request, but only when it passes the same trusted-probe test #3269 uses. Never key it on the path alone, or a stranger hitting that path disappears from the log. (6) Agreed, with one condition. The appliance runs Podman, and its socket ownership differs from Docker CE on the benches. A compose user:/group_add change lands only with a tier4-e2e and a tier4-kvm boot on the head, both showing the proxies still broker the socket. Without both, document why root is needed (socket ownership on Docker and Podman, read_only rootfs, cap_drop ALL). (7) Agreed: filter in the wrapper entrypoints. Match only the exact known retry patterns, and pass every other line through unbuffered. Keep the child's signals and exit status (it must stop on TERM, and a nonzero exit must propagate). Tier-1 tests must show a suppressed retry line, a passed-through error line and exit-status propagation. Keep monerod's level change from hiding the peer-count and sync lines that mattered in #4045. (8) No waiver. Compose, build/ and config rendering need a tier4-e2e targeted job on the head with a 10-minute log capture from stack start, quoted. The AC says "after a clean boot", and the boot-probe and Caddy rows only exist on the appliance, so the PR also needs one tier4-kvm boot-phase job on the head with the 10-minute journal capture. If that phase cannot produce such a capture, file the gap on bench-ci with the job id and commit, and return waiting on it. Do not mark the row done. List these under "Decisions taken" in the PR body.

  6. removed
    question
    on Nov 22, 2026
  7. pithead-developer commented on Nov 23, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on p2pool-starter-stack/bench-ci#2751. Blocked on bench-ci#2751 for one acceptance criterion: the 10-minute per-service log capture after a clean boot. Neither job 4450 (tier4-e2e targeted) nor job 4451 (tier4-kvm boot), both on f40fd74, publishes service logs, so that row cannot be proven. The boot phase's guest journals contain no caddy, p2pool or xmrig lines, and the e2e artifacts carry only the harness log and a container census. The owner can also waive that row. Finished: all code, tier-1 tests, a real-Caddy caddy fmt gate, GitHub checks green on the head, and evidence for both jobs in the draft PR #4356. Job 4451 passed (294 rows, 0 fail). Job 4450's four red rows are the backup-restore version refusal owned by #4373 (VERSION 2.0.3 on the base vs a 2.0.4 config baseline), not this change. Separately, the haproxy backend timeouts and user: are documented but not fixed; the fix needs an os/ Quadlet change that the ruling excludes, so that criterion needs the owner's word. The Tari checkpoint row is deferred to #4148 (comment posted there) and ControlPort to #4152.

    The runner resumes this issue when that one closes.

  8. added
    blocked
    on Nov 23, 2026
  9. 6 remaining items

  10. pithead-developer commented on Nov 27, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #4537. Blocked on #4537. On draft PR #4356 the required check Build image (dashboard) is red on head af3d886 because Trivy finds a HIGH CVE (libzstd1 CVE-2026-124851) in the dashboard's Debian base image, which this PR does not touch. bench-submit held the tier4-e2e targeted submit (exit 75, held: tier1/tier2 not passed for the head: Build image (dashboard)) and created no job; the tier4-kvm boot submit is held by the same gate. So the 10-minute per-service capture the 2026-11-25 ruling requires can't be produced. Finished: both socket proxies (Compose, mini-stack and the appliance Quadlet units under os/) now change the image's unbounded events-backend timeout server 0 to an explicit 10m. The renderer's two proxy blocks are one loop, and its file budget drops from 418 to 404. Three new tier-1 assertions fail against the base renderer and Compose. docs/operations.md explains why the proxies run as root, and the CHANGELOG and the PR body's Decisions section are updated. The other 42 GitHub checks are green and the verifier and security passes are done. To unblock: a fix for #4537 merged into develop-v2.0.5. Then this branch takes the base and submits tier4-e2e targeted plus tier4-kvm phases=boot, and quotes their evidence and the captures.

    The runner resumes this issue when that one closes.

  11. added
    blocked
    on Nov 27, 2026
  12. removed
    blocked
    on Nov 28, 2026
  13. pithead-developer commented on Nov 28, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #4569. Blocked on #4569. #4537 is closed, fixed by #4604 on develop. This PR's base develop-v2.0.5 doesn't have that fix, because the forward merge #4569 is still open. Build image (dashboard) therefore stays red on head af3d886, and bench-submit holds the tier-4 jobs until it passes. Finished: the haproxy timeout change, its tier-1 tests, the docs, and the verifier and security passes. 42 other checks are green. Still to do once #4569 merges into develop-v2.0.5: merge the base into the branch, confirm the check is green, then submit tier4-e2e targeted and tier4-kvm phases=boot and quote their evidence and the 10-minute captures. I posted the blocker on the PR.

    The runner resumes this issue when that one closes.

  14. added
    blocked
    and removed
    blocked
    on Nov 28, 2026
  15. pithead-developer commented on Nov 28, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on p2pool-starter-stack/bench-ci#2802. Blocked on bench-ci#2802: job 4680@585953fad's service-logs were collected at 06:42:32Z from containers started at 06:36:38Z, after the harness restored the bench baseline, so no tier4-e2e artifact can show this branch's 10-minute per-service capture. Finished on head 6aa3c20: the wrapper shell stays PID 1, forwards stop and drains the retry filter before exiting (F4356-3, with an image-CI check on both real images and tier-1 rows that fail without the fix); doctor and the integration argv readers use /tmp/.proc; comments in edited hunks are gone (F4356-4); PR body refreshed (F4356-5). Still to do: GitHub checks on the head are all queued behind the runner pool (bench-submit held tier4 with exit 75). Once bench-ci#2802 is closed and deployed and checks are green, the next session submits tier4-e2e targeted and tier4-kvm phases=provision on the head (F4356-2) and quotes the per-service captures.

    The runner resumes this issue when that one closes.

  16. added
    blocked
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    applianceblockedbug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions