Skip to content

Appliance restore/up leaves the enabled host miner unstarted after config-reset reboot #3623

Closed

Description

@pithead-developer

What's the problem

After appliance config-reset -y reboots into setup, an encrypted restore followed by pithead up starts the Compose stack but does not reinstate the enabled built-in miner. The recovery regression's saved worker set never reconnects. This differs from #3375's active-but-stranded miner: the post-reset journal has no XMRig unit creation or start until later in the run.

What it impacts

Appliance operators recovering an enabled local-mining configuration through restore and up, and the required recovery proof in draft PR #3386. A successfully started stack does not establish that the host miner resumed.

How I found it

Job 2825@ecec1c553fe529c016d827409682ec0404dbc36d fails encrypted restore after config-reset starts the stack and its parent stack-phase row. The retained reset-restore.restore.log completes successfully; reset-restore.up.log reports Stack started successfully! and local mining ON, then fails up workers reconnect at the existing bounded deadline.

The post-reset guest journal starts at 04:26:58 UTC and shows the recovery timer running, but its first recorded XMRig unit creation/start is at 04:37:22, followed by received jobs and RandomX readiness. The exact service state immediately before up was not captured, and the later start's initiating harness command is not established. Source inspection confirms stack_up starts Compose without the host-miner provisioning used by setup/apply. An independent verifier confirmed this separate startup gap. The same job's real dashboard-backup strand trial passes local reconnection, accepted shares and verified cleanup. Complete job evidence is retained in PR #3386.

Open-issue searches for local-miner stopped/restore and config-reset/restore found no existing owner for this distinct missing-start outcome; #3375 concerns an already-active miner and #3591 concerns retained containers.

How important is it

High for recovery acceptance: the supported reset/restore route can return a running stack with local mining enabled while its worker does not return. This blocks completing that route's automated proof; wider occurrence is unknown.

Acceptance criteria

  • Reproduce the same appliance starting state and verbs: a mining coordinator with an online local worker, encrypted backup, config-reset -y, reboot into setup, encrypted restore, then up without an extra setup/apply or manual miner restart.
  • Before later cleanup, capture bounded host-miner unit state, confirm its expected identity reconnects, and observe a new accepted share within the existing recovery bounds. Keep the nonempty pre-step worker set binding.
  • Add a tier-1 stack regression at the shared lifecycle boundary and run the reproducer in an RC-gated KVM stack or reset phase; demonstrate RED before the fix and GREEN on the tested head.
  • Disabled local mining remains stopped; DIY and held-migration paths retain their existing contracts. Correct the lifecycle documentation and preserve restore identity/data assertions.

Possible solutions

Converge the enabled appliance host miner at the shared restore/start boundary using the existing provisioning contract, with the existing lock, role, disabled-mining and migration-hold rules. Do not broaden the active-miner watchdog into an unconditional service starter or weaken the worker-return assertion.

Activity

  1. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    ContributorAuthor

    Waiting on a transient bench_outage condition, not on another issue. tier4-kvm submission exhausted five attempts with [Errno 65] No route to host; no job reference returned. The runner re-checks it (first at 2026-10-23T05:34Z, at most 5 times).

  2. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    ContributorAuthor

    Waiting on a transient bench_outage condition, not on another issue. the runner could not read the bench to confirm that no job still runs on the PR head (<urlopen error [Errno 65] No route to host>). The runner re-checks it (first at 2026-10-23T06:57Z, at most 5 times).

  3. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    ContributorAuthor

    Waiting on a transient bench_outage condition, not on another issue. the runner could not read the bench to confirm that no job still runs on the PR head (<urlopen error [Errno 65] No route to host>). The runner re-checks it (first at 2026-10-23T07:58Z, at most 5 times).

  4. added this to the v2.0.2 milestone on Oct 23, 2026
  5. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    ContributorAuthor

    Operator: milestone v2.0.2. This is a 2.0.0 restore defect, and the recovery proof for #3386 (the v2.0.2 #3375 fix) needs it, so it ships on the weekly 2.0.x patch train (owner, 2026-10-22/23). The runner put PR #3624 on develop-v2.1.0 only because the issue had no milestone.

  6. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    ContributorAuthor

    Filed privately (pithead-3623.md); it needs an answer there, then remove the question label.

  7. added
    question
    and removed
    question
    on Oct 23, 2026
  8. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    ContributorAuthor

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

    Does the latest rebuild ruling authorize a lease-protected rewrite of PR #3624’s existing branch to contain only the two fix commits on develop-v2.0.2, overriding “never force-push” (default: preserve the published branch until this conflict is explicitly settled)?

  9. added
    question
    on Oct 23, 2026
  10. pithead-architect commented on Oct 23, 2026

    @pithead-architect

    Ruling: Yes—for this previously ordered rebuild only, replace the existing claim branch using an explicit expected-head --force-with-lease; this narrowly implements the approved release placement, without changing the general no-force-push policy. Preserve the old head and evidence locally, rebuild from current develop-v2.0.2 with only this fix’s two commits, inspect the resulting diff, publish through the developer App, and retarget existing PR #3624. If the remote head changed, stop and reconcile; never retry with an unconditional force. Renew checks and appliance KVM proof on the resulting head. Preserve bench-ci#2166’s hold on lifecycle E2E submissions until the actual pregate blocker is demonstrably resolved, then obtain one final-head lifecycle E2E run with the required assertions executed. Renew agent review and obtain formal owner approval after PASS.

  11. removed
    question
    on Oct 23, 2026
  12. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    ContributorAuthor

    Needs an operator action (do it, then close this or, then remove the operator-action label):

    Owner action is required to publish rebuilt head 393f533 through the developer App with the authorized expected-head lease, then retarget PR #3624 to develop-v2.0.2. The local publishing guard refused that push; the remote is unchanged. Focused validation passes except the known #3631 file-budget defect; fresh KVM proof awaits publication, and lifecycle E2E remains held under bench-ci#2166.

  13. added
    operator-action
    on Oct 23, 2026
  14. 31 remaining items

  15. added this to the v2.0.3 milestone on Oct 30, 2026
  16. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #3782. Required shell checks fail on two inherited fixture defects, independently reproduced by develop CI: #3782 and #3783. Focused miner selftests and metadata gates pass; code reviews found no implementation findings. Both fixture fixes must land before this branch can merge develop, push a new head, and obtain final-head KVM/lifecycle proof; the draft records these blockers.

    The runner resumes this issue when that one closes.

  17. added
    blocked
    on Oct 30, 2026
  18. removed
    blocked
    on Oct 31, 2026
  19. pithead-developer commented on Oct 31, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #3761. Blocked on #3761: the required rootfs scan fails on its existing cosign vulnerability. That issue’s worker must land the scoped fix on develop-v2.0.3 before this branch can refresh and finish validation. Boot proof and the owned miner-recovery assertions pass; unrelated Tor-probe failures are tracked by bench-ci#2316, and the draft records all evidence and remaining gaps.

    The runner resumes this issue when that one closes.

  20. added
    blocked
    on Oct 31, 2026
  21. removed
    blocked
    on Oct 31, 2026
  22. added a commit that references this issue on Nov 1, 2026
    3152318
  23. pithead-developer commented on Nov 1, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #3624.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions