Skip to content

Appliance recovery can commit healthy while the local miner stalls until restarted #3375

Closed

Description

@VijitSingh97

What's the problem

Classification: core, appliance / Podman. Frozen RC4 source eba5c14f2e9b955b2ab1627be6356fd3837ebde1.

After an authorized config-reset/restore battery and a supported reinstall of the same clean signed RC4 bundle, the appliance committed slot B good/primary, completed migration and its boot unit, and had all eight expected containers healthy. The built-in XMRig service was active but did no mining for over 15 minutes. This is one observed recovery-boot occurrence; ordinary reboot reproducibility has not been established.

Observed evidence:

  • XMRig remained sleeping at 0% CPU with an established loopback connection to port 3333. The proxy reported zero miners, zero upstreams and zero hashrate, despite its healthy/running state.
  • The listener was owned by the proxy's conmon process. The server receive queue on the established connection grew without the proxy registering a miner. Other chain services were healthy.
  • Restarting only xmrig using the appliance host contract returned 0. Its new loopback connection immediately received jobs and initialized RandomX. The old connection remained CLOSE-WAIT with unread data.
  • Subsequent evidence recorded about 1.5 kH/s and accepted shares 1/0 through 14/0. This is manual recovery, not unattended boot success.
  • Config/environment, configured wallets, all Tor identity files, Caddy/TLS, machine/source/boot, RAUC state and all eight container identities/start times remained unchanged. Only the miner process changed. No apply, setup, container restart, config repair, slot mark or reboot was used for this recovery.

Expected: a committed healthy appliance with its built-in miner enabled should regain job flow and mining, or the health result should clearly expose the missing work/recovery condition.

The immediate failure is an unconsumed stratum connection. Root cause within proxy process state versus Podman forwarding/lifecycle remains unproven. An initial credential-mismatch hypothesis was rejected: the miner's default x and an empty stratum password are the normal password-free contract; the control API token is separate.

Regression coverage should exercise the enabled host miner through proxy startup/recreation during recovery, require actual job/accepted-share progress, and distinguish process/container health from mining recovery. Do not weaken existing boot or restore assertions.

Dedup review: #875 concerned a stopped proxy, #3290 a crashed node, and #1684 a post-commit up failure. Here the proxy stayed running/healthy and restarting only the miner recovered it. #3373/#3374 and the normal-restore extension of #3369 remain separate observed failures. Private command/exit/state/journal receipts are retained in the RC4 QA evidence; no credentials or local topology are published here.

what it impacts

Impact is not separately established in the existing report; confirm the affected users or behavior.

How I found it

Discovery details are not separately established in the existing report; preserve and verify the evidence already recorded.

how important is it

Importance has not been assessed explicitly; triage must state the priority and its reason.

acceptance criteria

Acceptance is not isolated in the existing report; the agent must identify a testable outcome before implementation.

possible solutions

No distinct solution options are recorded; investigate the existing report before choosing an approach.

Activity

  1. VijitSingh97 commented on Oct 11, 2026

    @VijitSingh97
    CollaboratorAuthor

    The same visible stall pattern occurred again on frozen RC4 eba5c14f2e9b955b2ab1627be6356fd3837ebde1, this time after an ordinary GUI backup in Safari. This is a second trigger, not proof that both occurrences share a root cause.

    The downloaded archive matched the server, decrypted successfully, and preserved config, environment, configured wallet values, Tor identities and database integrity. Backup completion therefore succeeded, but unattended mining recovery did not. The last pre-backup accepted share was at 02:19:47 UTC; zero speed persisted from 02:21:13 through 02:27:13, and the healthy proxy still reported zero miners/upstreams/hashrate at 02:32:07. The host miner remained active.

    A separately recorded manual systemctl restart xmrig at 02:33:59 UTC exited 0. New accepted shares were observed at 02:34:52 (1/0) and 02:36:35 (2/0). All eight container identities/start times, persistent files, TLS, boot, full source, machine and RAUC state remained unchanged; only the miner process changed. No setup, apply, reboot, container restart or credential/config repair was used for recovery.

    Please include normal backup-driven proxy recreation in the regression coverage. The Chrome backup earlier in this run recovered unaided, so this evidence does not establish a Safari-specific cause or a deterministic failure on every backup. The Safari archive checks pass; its unattended mining-recovery row fails, with manual recovery recorded separately.

  2. added
    P1-user-facing
    bug
    on Oct 11, 2026
  3. added this to the v2 - appliance milestone on Oct 11, 2026
  4. pithead-developer commented on Oct 11, 2026

    @pithead-developer
    Contributor

    Blocked by bench-ci #1694. Job 2486@c3e6e5ba6f99fd7b4ed55c8d8f87084f891ae1c3 built the negative-control image but skipped the entire stack phase because the runner supplied no reserved remote Monero inputs. No guest or backup regression assertion ran, so its failure cannot satisfy the required RED/GREEN proof.

    The per-worker recovery implementation, real dashboard-backup strand test, rig-masking variant, lifecycle assertions, focused tests and review are finished. The owned GitHub inventory failure is corrected and pushed. Required runtime proofs remain outstanding, and this PR stays a draft.

    The bench-ci owner must correct required-node selection/admission or managed configuration and verify fleet-routed execution with the needed inputs. Closing #1694 with that verified change will unblock resubmission through the normal queue; no manual bench intervention is requested.

  5. pithead-developer commented on Oct 11, 2026

    @pithead-developer
    Contributor

    Blocked on p2pool-starter-stack/bench-ci#1694. Job 2486 skipped the entire stack phase because the runner supplied no reserved node inputs, so it provides no regression proof. Fixed and verified the GitHub inventory failure, pushed the update, and documented the blocker on PR #3386 and issue #3375. Bench-ci #1694 must restore required-node admission and verified fleet execution before runtime proof can resume.

    The runner resumes this issue when that one closes.

  6. added
    blocked
    and removed
    blocked
    on Oct 11, 2026
  7. pithead-developer commented on Oct 11, 2026

    @pithead-developer
    Contributor

    Blocked by the existing bench-ci #1696. The #1694 repair merged in bench-ci PR #1695 as f6c026499e1921b3f5b08ccf7c8f3f6e0d1dfd4f, but every responding bench still reports its preceding runner commit. Required stack/rig node admission therefore remains unproved on the installed fleet; submitting the blocked controls now would test the old runner.

    The implementation, focused tests, inventory correction and review are complete, and all current-head GitHub checks are green. The draft PR still needs its required current-head runtime proofs and valid negative controls; job 2486 did not execute the regression.

    Normal fleet self-update clears the deployment prerequisite when every bench reports a commit containing the merge; the runner tracks that through #1696. Then this worker will first verify actual fleet-routed execution with the required node inputs and record product and runner commits, as the owner ruled, before resubmitting the controls. No manual bench action is requested.

  8. pithead-developer commented on Oct 11, 2026

    @pithead-developer
    Contributor

    Blocked on p2pool-starter-stack/bench-ci#1696. The #1694 fix merged, but the fleet still runs the preceding commit. Existing deployment issue bench-ci #1696 must close before verified fleet execution and the required controls can resume. PR #3386’s GitHub checks are green; its body and both public threads now explain the deployment blocker.

    The runner resumes this issue when that one closes.

  9. added
    blocked
    and removed
    blocked
    on Oct 11, 2026
  10. pithead-developer commented on Oct 11, 2026

    @pithead-developer
    Contributor

    Required-node live acceptance is verified after reading the full completed logs and retained node/provisioning/KVM artifacts, with independent verifier and security review. Both stack and rig coordinator-share received populated inputs before building and actually executed under runner f6c026499e1921b3f5b08ccf7c8f3f6e0d1dfd4f, on product 11e22bee2839dacba3f474e23d5092c7511a5c7d. Both baselines/restoration verified. The whole jobs remain failures, not runtime PASS claims.

    The two stack red rows (grouped DIY gate; wizard-defaults mining precondition) belong to pithead #3375 / PR #3386, whose product worker has corrected the malformed SSH Python probe. The rig red row is #3375’s separate backup recovery assertion; its deeper cause remains unproven. Neither failure is missing required node admission. Rig executor attribution is established independently by allocation/node-progress artifacts; the stale receiver commit in status is already tracked in bench-ci #1697, with this reproduction added there.

    Resubmitted the owner-authorized watchdog-reverted stack control through normal fleet routing as 2499@c3e6e5ba6f99fd7b4ed55c8d8f87084f891ae1c3, without changing historical job 2486. It is queued: its trigger, verdict and cleanup must be read before calling it RED. The aggregate-reading rig negative-control branch is not yet pushed and remains work for the pithead #3375 owner; please use the existing rig job’s evidence rather than duplicating the admission proof. Product GREEN proofs at the newer head also remain the product owner’s work.

    bench-ci job 219@11e22bee2839dacba3f474e23d5092c7511a5c7d · pithead · tier4-kvm

    • options: {"phases": ["stack"]}
    • status: completed · conclusion: failure · exit 1 · 38m 30s
    • baseline verified: yes · rig restored: n/a
    • node guard: not recorded · no comparison recorded
    • steps: checkout success · reserve success · preflight success · run failure · collect success · restore success · cleanup success
    • rows: 188 pass · 2 fail · 5 skip (by-design 3, missing 2)
    • image sha256: system.img 140f5641ddef854720ce332a5946c0245962ca98a6ad2b727d7dfe83bc216e74
    • failed rows:
      • [stack] DIY gate vs. appliance channel: lifecycle, fault-injection, hardening, auth-fail-closed (exit 1) (no issue linked)
      • [stack] run_cli_wizard_defaults mining precondition (no issue linked)
        Generated by bench-ci evidence 219@11e22bee2839dacba3f474e23d5092c7511a5c7d; re-run it to check.

    bench-ci job 2493@11e22bee2839dacba3f474e23d5092c7511a5c7d · pithead · tier4-kvm

    • options: {"phases": ["rig"]}
    • status: completed · conclusion: failure · exit 1 · 48m 47s
    • baseline verified: yes · rig restored: n/a
    • node guard: not recorded · no comparison recorded
    • steps: checkout success · reserve success · preflight success · run failure · collect success · restore success · cleanup success
    • rows: 230 pass · 1 fail · 2 skip (by-design 1, missing 1)
    • image sha256: system.img 7f907ee46f4a34c5155c53276203d2278aa2be5b1edf592e1c739a6c236201a3
    • image sha256: rig/bundle-1.raucb 611ee43afb5c2bb34dc2d80411ca04e9903b9946446a1e69ebf1c325442334dd
    • failed rows:

    bench-ci job 2499@c3e6e5ba6f99fd7b4ed55c8d8f87084f891ae1c3 · pithead · tier4-kvm

    • options: {"phases": ["stack"]}
    • status: queued · conclusion: none yet · exit none · no duration
    • baseline verified: n/a · rig restored: n/a
    • node guard: not recorded · no comparison recorded
    • steps: checkout pending · reserve pending · preflight pending · run pending · collect pending · restore pending · cleanup pending
    • rows: 0 pass · 0 fail · 0 skip
      Generated by bench-ci evidence 2499@c3e6e5ba6f99fd7b4ed55c8d8f87084f891ae1c3; re-run it to check.
  11. pithead-developer commented on Oct 11, 2026

    @pithead-developer
    Contributor

    Blocked by bench-ci #1699: job 2495@95790499e80ef15d4b731be29ede5c624f7b731c errored during collection on an unreadable private lifecycle state file. Only monitoring traces were published; required guest journals, units, image checksum and lifecycle logs are missing, preventing reliable diagnosis of the preceding lifecycle failures and acceptance of the RC5 proof. The full status, log and all published artifacts were read.

    The implementation, transport regression and clean reviews remain complete. The full log reports the deterministic fidelity and real dashboard-backup recovery legs passing, but the overall job is an error and supplies no full passing proof. The bench-ci owner must repair and deploy collection; then a fresh fleet-routed run must supply complete evidence, followed by any needed lifecycle correction and the remaining rig, negative-control, provision and deploying lifecycle proofs. No manual bench change or bypass was attempted; the PR remains a draft.

  12. pithead-developer commented on Oct 11, 2026

    @pithead-developer
    Contributor

    Blocked on p2pool-starter-stack/bench-ci#1699. Job 2495 errored during artifact collection, leaving required guest and lifecycle evidence unpublished; bench-ci #1699 blocks reliable diagnosis and RC5 acceptance. The implementation remains pushed with green GitHub checks, and the PR contains regenerated evidence and blocker comments. The bench-ci owner must repair and deploy collection before a fresh proof can supply the missing diagnostics.

    The runner resumes this issue when that one closes.

  13. 58 remaining items

  14. removed
    operator-action
    on Nov 8, 2026
  15. pithead-developer commented on Nov 10, 2026

    @pithead-developer
    Contributor

    Moved to v2.0.4 by the owner on 2026-11-10, as a priority for that release. It keeps P1-user-facing.

    2.0.3 ships a mitigation, not a fix. #3386 adds pithead-miner-recovery on appliance coordinators.

    • Every 30 seconds it reads xmrig-proxy's live worker list for the built-in miner's identity.
    • After 300 seconds of readable "disconnected" readings, it runs systemctl --no-block try-restart xmrig.service.
    • The 2.0.3 release notes list this issue as mitigated, not fixed.

    What is still unknown: why the built-in XMRig stays disconnected while every container reports healthy, after a dashboard backup or a recovery boot recreates the proxy.

    Evidence to collect now that the watchdog exists:

    • Each automatic restart writes one journal line:
      pithead-miner-recovery: active local miner disconnected for 300 seconds; restarting xmrig.
      • On an appliance, journalctl -u pithead-miner-recovery.service shows how often and when the stall happens.
      • journalctl -u xmrig.service over the five minutes before that line shows what XMRig was doing while it stayed disconnected.
    • KVM proof jobs keep the guest journal as an artifact (guest-system.*.journal), so the line can be counted across bench runs without logging in to any machine.
    • The t3375 leg (tests/os/appliance-miner-recovery-leg.sh) reproduces a disconnect with an injected loopback strand. It proves the watchdog recovers the miner, not why the natural stall happens. A root-cause fix needs a reproduction of the natural stall.
  16. pithead-developer commented on Nov 10, 2026

    @pithead-developer
    Contributor

    Merged in #4005.

  17. added a commit that references this issue on Nov 23, 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

    P1-user-facingbug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions