Skip to content

Pithead v2.0.4

Latest

Choose a tag to compare

@VijitSingh97 VijitSingh97 released this 25 Nov 02:01
· 95 commits to develop since this release
Immutable release. Only release title and notes can be modified.
2f8a9d4

[2.0.4] - 2026-11-24

Pithead 2.0.4 is a patch release after 2.0.3. It bakes RigForge 1.19.0 into the appliance image
(read the RigForge-only note below before updating such a rig), moves XvB donation mining to the EU
server, adds a sign-in page, a windowed support-bundle and log export, per-service and Restart all
buttons in Service diagnostics, and a Tor auto-heal that no longer stalls, stops serving stratum work
when the node cannot make valid work so rigs fail over to their backup pool, labels where each rig
mines, and clears the image-scan findings in the Go toolchain and containerd.

It adds and removes no Pithead configuration keys. It changes these defaults: monero.out_peers from
48 to 24 (#4078), xvb.url to the EU server with a saved NA host moved on the next apply (#4308), Tor's
SocksPort binds the bridge address instead of the wildcard address (#4047), and Caddy moves to 2.11.9.

Added

  • ./pithead support-bundle on a Docker host takes --since and --until (or --hours) and writes the
    same windowed .zip and manifest as the appliance: every container's full log for the window instead of
    the last 200 lines, the DIY egress and LAN-guard units from the journal, and an engine or journal that
    cannot be read recorded in the manifest (#4130).
  • The appliance support bundle (the Support bundle card and pithead recovery-bundle) now carries state snapshots beside the journal: doctor.json, monerod, Tari and P2Pool status, Tor control-port and guard state (never a key), network, time, container (exit codes and image digests), RAUC, boot-slot and coredump records, Caddy access logs for the window with credentials removed, the files saved under /data/pithead/support/, a /data/pithead marker listing, and an uncapped dashboard history export with ping_failures and the control audit events. Every step has a time limit and the whole collection a total limit; a step that times out or fails is recorded in manifest.json and the bundle is still produced (#4128).
  • The Service diagnostics card has a Restart all button (typed RESTART, refused during an OS
    update, an uncommitted slot, a held host lock or a restart in the last two minutes, and riding out the dashboard's own restart) and a
    Reset Tor state button on the Tor card that runs the existing gated Tor recovery with its own
    30-minute budget and returns the gate's refusal reason (#4064, #4063).
  • The dashboard and the configuration view now open on a sign-in page instead of the browser's
    password prompt. It has a "Remember me" box (30 days, renewed while in use; otherwise the session
    ends when the browser closes or after 8 hours idle) and a "Sign out" button. Changing the password
    ends every session, wrong passwords are rate-limited, and scripts keep using HTTP basic auth with
    the same credentials (#4089). On a full data disk an existing session still passes the gate, a
    restarted dashboard still starts and reports db_healthy:false, and signing in says the data disk is
    full instead of failing with a server error (#4199).
  • The dashboard's Export logs card (Backup tab) has a time-frame picker (last 1 h, 6 h, 24 h, 72 h or 7 days, or a custom start and end), shows how far back the logs reach and flags a range that goes further, and collects and downloads the support-bundle-<UTC timestamp>.zip with one click, showing the window the manifest recorded. It is always available, on the appliance and on DIY, whether or not dashboard.control.enabled is on: with the switch off the host runner serves only the export, and config editing, restart and the other control actions stay off. With a dashboard password set, every export route needs the login (#4129).
  • The appliance update channel is read as untrusted data: https-only fetches to the release hosts
    over Tor with remote DNS, response size caps, release-tag validation before any URL or path, and
    stale or replayed channel reporting in Check for updates (#4011). The appliance rootfs also carries
    the on-demand Tor client the rig update will use in 2.0.5 (#4139).
  • The Service diagnostics card has a Restart button for each of tor, monerod, wallet-rpc, tari,
    tari-wallet, p2pool and xmrig-proxy. It goes through the host control channel, is refused while the
    LAN guard is not ready or the host lock is busy, allows one restart per service every 120 seconds
    and is audited (#4062).
  • The header shows Mining paused here and its reason (stratum closed, node out of sync, node syncing or
    P2Pool isolated) with the number of rigs on a backup pool, and the dashboard shows a Monero node
    offline
    banner when monerod is red or, with tor.auto_heal on, when Tor egress has been down past
    the 15-minute window. The banner needs no Tor to display (#4073, #4079).
  • The Workers table says where each rig mines: "on backup pool", "not connected to this Pithead" or
    "mining location unknown". Rigs mining elsewhere no longer count in Workers Alive or Total Hashrate,
    a DOWN row explains itself, the rig's own hashrate has a separate "Rig telemetry 1m" column, and a
    proxy client with no rig name is listed as an unnamed proxy worker (#4071, #4072).
  • Failed Healthchecks pings are recorded in a ring table and shown on the health page, without the
    ping URL (#4037).

Changed

  • When P2Pool or monerod cannot make valid work (a peerless monerod that still reports synchronized, a
    monerod stalled behind P2Pool's peers, P2Pool without peers or ZMQ, or a monerod, p2pool or tor
    container down or unhealthy), the dashboard now stops xmrig-proxy after a debounce so rigs fail
    over to their backup pool, and readmits them only when every trigger has been clear for 60 seconds.
    Before, only an unreachable node stopped the proxy. The log names every trigger that held the proxy
    and why readmission stayed blocked (#4046, #4165). After a stack recreate the proxy can stay stopped
    for minutes even though every service is healthy; the root-cause fix is planned for 2.0.5 (#4138,
    #4160).
  • The Healthchecks.io ping runs in its own task every 60 seconds with a 30-second hard deadline and a
    fresh-circuit retry, so a stalled collector or a long apply no longer reads as a down server, and the
    Tor healer's first repair comes after 5 minutes of failure instead of 15 (#4135).
  • Tor's SocksPort binds the bridge address instead of the wildcard address and WarnUnsafeSocks 0
    silences the IP-only SOCKS warnings that monerod and Tari gossip dials produced several times a
    minute (#4047).
  • Caddy is updated from 2.11.7 to 2.11.9.
  • XvB donation mining now defaults to eu.xmrvsbeast.com:4247, because XMRvsBeast is retiring its NA servers. A saved xvb.url on na.xmrvsbeast.com (any port) is moved to the EU host with the same port on the next apply, the prior file is kept as config.json.bak-xvb-na, a custom host is left alone, and Tor routing is unchanged (#4308).
  • The appliance support bundle (the dashboard's Support bundle card and pithead recovery-bundle) is now one .zip for a chosen start and end time (--since and --until on the CLI, since and until on the control request; hours still works). It holds the whole system journal, the kernel log, the boot list and a journal per Pithead and quadlet unit read from the installed unit files, redacted, with a manifest.json that records the windows, the oldest retained entry, the journald usage and every truncated, empty, missing or failed file. Oversize files keep their oldest and newest lines instead of the bundle being refused, and the journald cap is raised from 200 MiB to 400 MiB to cover 168 hours at the log volume reported for a loaded test box (#4127).
  • The appliance image bakes RigForge 1.19.0. Its prebuilt XMRig is the same 6.26.0 pin with the zero donation default and minimum, so a fresh image and an upgraded rig start mining without an XMRig rebuild; the vendored RigForge contract fixtures move to v1.19.0 with the pin (#4230, #4300).

Fixed

  • After an apply or restart that restarts monerod, the dashboard no longer stops xmrig-proxy about
    90 seconds after monerod is synchronized again. The "P2Pool reports monerod is not synchronized"
    guard now counts only a line from the last 30 seconds, instead of any line from the last 2 minutes
    (#4138).
  • A rig whose miner stays at zero hashrate or without a pool connection for 120 seconds (for example after the coordinator's stratum port restarts) now has its XMRig restarted by pithead-miner-recovery, at most once every 300 seconds (#4387).
  • On the appliance, a built-in miner that lost its stratum connection because xmrig-proxy was
    recreated (an apply, a compose restart or a recovery-boot migration) is restarted at once instead
    of after five minutes of idle readings. The root cause of the stall is still not established
    (#3375).
  • On the appliance, opening Set up again on a committed slot no longer leaves the boot-slot try
    flag raised, so powering off or rebooting without choosing no longer boots the previous release
    (#3960).
  • P2Pool with no incoming or outgoing peers for 15 minutes is restarted with a 20, 40 and 80 minute
    backoff, at most three times a day, with an audit row and a warning when the cap is reached. A
    monerod with no outgoing peers for 5 minutes after any Tor start is restarted once per Tor start,
    with or without tor.auto_heal (#4077, #4076).
  • On the appliance, when the boot health gate cannot clear the chain-service migration hold it prints
    a FAULT line naming the recovery and releases the chain services anyway, instead of leaving node,
    P2Pool and proxy down with nothing in the boot journal (#3983).
  • A release now tags and bundles exactly the commit that was gated: publish refuses if HEAD moved or the
    tree is dirty, a tag already on origin or an already-promoted registry tag stops the cut, and the
    tag is created on the gated commit (release tooling only).
  • On the appliance, a wedged Tor — one whose boot never finishes because the circuit-build history
    on the data partition is saturated — no longer costs the committed slot its fallback. The boot
    health gate commits when the dashboard answers and every failing check is that network fault,
    names the fault in the boot log and in the update's recorded outcome, and leaves the return to the
    previous version unspent for a copy that is genuinely broken. That includes the case where
    compose up itself refuses because Tor is unhealthy: the boot now goes on to the gate window
    instead of rebooting at once (#4049).
  • ./pithead restart tor, a bare restart and the dashboard's restart now wait for Tor to report
    bootstrapped and then restart a running monerod themselves, so it re-dials through the new Tor
    instead of staying at 0 peers when compose did not cycle it (#4063); a bare restart and Restart all then also restart the tari container, when the stack has one, so it starts after Tor (#4064).
  • The Tor egress auto-heal no longer stalls when the host refuses NEWNYM. A rejected refresh now
    spends its rung and the ladder moves on to a host-gated state reset and then a Tor restart,
    capped at four per rolling day, instead of repeating NEWNYM forever. tor-recover accepts a
    sustained outage, a wedged control port or a stalled bootstrap as reset reasons when egress is
    still down, the heal reads Tor's control-port circuit state, and giving up is written to the
    host audit log. Past the cap the heal keeps probing every 15 minutes and re-alerts at most once
    an hour, naming the outage length, until one recovery notice on egress returning (#4075).
  • A dashboard tab left open across a restart, rollback or update now reloads itself: it notices a
    changed version or the first successful refresh after the disconnected banner, shows "Pithead was
    updated or restarted. Reloading…" and reloads once the dashboard answers, at most once every 2
    minutes (#4057). OS-update and Configuration requests from a stale tab show "Pithead restarted or
    the page is out of date. Reloading…" instead of HTTP 401, HTTP 403 or the browser's own network
    error, show the server's text for other failures, and a plain-text error no longer surfaces as a
    JSON SyntaxError (#4058). An unsaved Configuration draft survives the reload in the tab's
    sessionStorage, without any secret you typed (#4060).
  • Rig upgrade, Adopt rig, Backup, the onion client-key request and the service diagnostics show the
    same stale-page message and reload instead of HTTP 401, HTTP 403 or a browser network error, and
    show the server's text for other failures (#4059).
  • Payout confirmation skips a scan when the view-only wallet does not hold the configured payout address,
    so an address change no longer files the old wallet's payouts under the new address or alerts on them.
  • XvB request failures no longer write the payout address or the submit URL into the dashboard log.
  • The setup wizard keeps a worker's api_token instead of dropping it.
  • The setup wizard's failed screen no longer breaks when the host's error text ends in a cut-off character.
  • A failed write when applying a configuration change from the dashboard returns a server error and is
    logged, instead of reporting "Body must be JSON".
  • Tor's MaxClientCircuitsPending is raised to 64 and monero.out_peers now defaults to 24 (was 48),
    so monerod, Tari and P2Pool onion dials no longer sit at Tor's pending-circuit ceiling right after
    boot. A config.json without monero.out_peers re-renders at 24 on the next apply; an explicit value
    is kept (#4078).
  • On the appliance, the dashboard's own schema migrations no longer run before the booted A/B slot
    commits. pithead-boot defers them while the slot is uncommitted, so an update that falls back
    leaves the previous release on the schema it understands, still recording payouts (#3998).
  • On the appliance, the address watch no longer restarts a dashboard Caddy that already serves the
    current files. When an apply, up or a control commit re-renders the dashboard certificate or the
    Caddyfile, it restarts Caddy itself, and the next five-minute watch tick now records those files
    and names them in its log instead of restarting a current Caddy and blaming an address change that
    did not happen. The watch restarts Caddy only when its own render moved the files it serves — or
    for the restart a failed attempt of its own left owed — and only while it holds the stack mutation
    lock, so its restart no longer overlaps an apply, an up or a control operation; a busy lock
    defers the render and the restart to the next tick, and when an apply lands in the same tick gap
    as an address change the apply's restart stands (#3987).
  • The Service diagnostics card's log and health-check controls are styled as buttons instead of plain
    text (#4109).
  • A configuration whose data directories are nested (for example p2pool.data_dir containing
    monero.data_dir) is refused, naming both keys, instead of letting a reset of one wipe the other.
  • A data directory written with a trailing slash (/srv/, /home/user/) is held to the same system,
    home and mount-root refusal as the same path without one.
  • ./pithead config-reset now also removes the Tari wallet database volume, whose password lives only in
    the removed .env, so Tari payout confirmation no longer breaks after a reset.
  • The curl | bash installer reattaches the terminal before ./pithead setup, and stops with a clear
    message when none is available.
  • A hand-edited dashboard.secure of "TRUE", 1 or "yes" now renders the TLS Caddyfile, matching
    doctor, instead of silently serving plain HTTP.

Security

  • The appliance rootfs builds Docker Compose and Cosign with Go 1.26.11, clearing CVE-2026-97054
    in both binaries' standard library (#4265), and builds Compose v5.7.2, whose containerd v2.4.2
    clears CVE-2026-95839 (#4291, #4279).

Notes

  • RigForge-only appliances: 2.0.4 changes the rig — RigForge 1.19.0. RigForge 1.19.0 seeds
    tor_socks5 127.0.0.1:9050 on an appliance rig and fails closed when nothing listens there, and
    the appliance rig runs no Tor proxy at that address. A rig therefore refuses upgrade --check, the
    XMRig clone and a remote upgrade, and doctor warns on its tor-socks5 row. The rig rewrites its miner
    config on every boot without tor_socks5, so an override set on the rig does not persist. RigForge also refuses a DONATION above 0 while tor_socks5 is set, because the donation pool
    would dial direct, and this applies to a saved value too: a 2.0.3 rig with DONATION above 0 stops
    mining after the update, because its miner setup fails on the next boot. Before updating such a rig,
    set DONATION to 0 in the dashboard's Workers view. A rig
    with DONATION 0 keeps mining on the prebuilt miner. threads is now honored and capped, so a rig
    that mined every core before this settles at the capped count after the next apply, with a lower
    hashrate (rigforge#588 and rigforge#632). A validated
    xmrig config overlay plus configurable RandomX modes give owners control over miner settings. The baked XMRig is unchanged
    (6.26.0, zero donation default and minimum), so the built-in miner and upgraded rigs keep mining
    without a rebuild. Updating a rig still needs the USB stick, and re-flashing a rig that runs from
    its stick wipes its setup and token, so it must be adopted again. Updating rigs from the Pithead
    dashboard is planned for 2.0.5 (#1837).

Known issues in 2.0.4

The known issues listed for 2.0.3,
including those it carries over from 2.0.2, 2.0.1 and 2.0.0, still apply, except #3960, #3987
and #3998, which are fixed above, and the RigForge threads issue (rigforge#588), which RigForge
1.19.0 fixes (see the RigForge-only note above). #3375 is closed: the restarts above mitigate it,
but its cause is not established, so the stall can recur. These five are new, and each is planned
for 2.0.5:

  • After a stack recreate (an apply, an update, a reboot or Restart all), the dashboard can stop
    xmrig-proxy and leave it stopped for minutes after every service is healthy, so rigs mine on
    their backup pool or not at all. A test saw it stay stopped for at least 4.6 minutes. The cause is
    not found. The dashboard log names the reason it stopped the proxy and the time it was readmitted,
    and the support bundle carries that log. No workaround has been established (#4138, #4160).
  • After a Tor restart, Tor can sit at "Bootstrapped 95%" for about an hour. Monerod, Tari and P2Pool
    have no Tor until it ends, and a second restart does not help because it keeps the same guards.
    The healer, an update or a reboot can trigger it. Alerts travel over Tor, so the outage can be
    silent. The cause is inferred, not confirmed (#4121).
  • Tor's cached directory can go stale on an appliance that has run for days. After a restart Tor can
    stay at "Requesting descriptors" for many minutes, or clearnet probes can pass while onion peers
    fail and leave Tari or monerod without peers, and Tor auto-heal sees nothing wrong or its last
    step does not cure it. Appliance owners have no shell for the manual cure (#4261).
  • A monerod that keeps live outgoing peers but stores no new block is not restarted on its own. Use
    Service diagnostics' Restart button for monerod (#4192).
  • The support-bundle download is proven on appliance hardware for a baseline stack and with Tor
    wedged, but not yet with monerod stopped. The bundle is meant to record the monerod snapshot as
    unavailable and still complete, and that is untested on the appliance (#4131).

Ingredients — Pithead v2.0.4

  • Version: 2.0.4
  • Commit: 2f8a9d4b346a5bb57b958919f694abe4a979ca89
  • Built: 2026-11-24T22:25:01Z

Published images (ghcr.io/p2pool-starter-stack, tags v2.0.4 + latest)

  • ghcr.io/p2pool-starter-stack/pithead-tor:v2.0.4
    • digest: ghcr.io/p2pool-starter-stack/pithead-tor@sha256:a55071128121bcd7899674d7d1a6d44b0fc8dbd52885cabed59c25c45e98fbca
  • ghcr.io/p2pool-starter-stack/pithead-monero:v2.0.4
    • digest: ghcr.io/p2pool-starter-stack/pithead-monero@sha256:bf69f744143b48c56afc0ac7d3da1677163dac30544ecadb518f915541c2ce69
  • ghcr.io/p2pool-starter-stack/pithead-p2pool:v2.0.4
    • digest: ghcr.io/p2pool-starter-stack/pithead-p2pool@sha256:074c1b1dceb47ea2b49910584ba12b3bb32b3689f190fa992983aa902b4eec4b
  • ghcr.io/p2pool-starter-stack/pithead-xmrig-proxy:v2.0.4
    • digest: ghcr.io/p2pool-starter-stack/pithead-xmrig-proxy@sha256:c384a8c906fa04e3fb2771294ba722930ff84ecdaf8001dbf32fc20c09561c74
  • ghcr.io/p2pool-starter-stack/pithead-dashboard:v2.0.4
    • digest: ghcr.io/p2pool-starter-stack/pithead-dashboard@sha256:9473c8ff2d04d1cc8e43f7221b320ea21a3520d408e0129a0829d921dc676921
  • ghcr.io/p2pool-starter-stack/pithead-os-rootfs:v2.0.4
    • digest: ghcr.io/p2pool-starter-stack/pithead-os-rootfs@sha256:32b5534e5e866f569049310a0b286fc23bea377398f6cf53d861ba32d39e5c93

Upstream component pins

  • p2pool: v4.18.1
  • monerod: v0.18.5.1
  • xmrig-proxy: 6.26.0
  • tor: 0.4.9.17-r0
  • tor base: alpine:3.24@sha256:f59abe656b692d901e184be3445e084786602108599d2a51d229c0f5a48c71bf
  • tari node: ghcr.io/tari-project/minotari_node:v6.0.1-pre.0-mainnet@sha256:23ce381b74e48cf67677dfe85c800daf54a155a610c595c94b16db6b186950ec
  • tari console wallet: ghcr.io/tari-project/minotari_console_wallet:v6.0.1-pre.0-mainnet@sha256:6f1f7d8990d304466f70a0379dcef4825c29b785c10d7fc7dff4d89163ed1b9d
  • caddy: caddy:2.11.9@sha256:4851e54a46b206517c574821bb5cc67f170d2156041e9fbc4c9193b45e84a75b
  • docker-socket-proxy: tecnativa/docker-socket-proxy:v0.5.0@sha256:1f5038b54f06c3e18422902cf00ba21803d1c97805aae032e5e6673d532d3459
  • rigforge: 04f8799955989120cf0a36121d3391cc5b5f5661
  • bundle sha256: 6dbc9765a1fae1c3395989de3be2d8e02c54ae9689b43ffece0f26176b291be6