Skip to content

After a CLI restore the dashboard keeps serving the pre-restore configuration (masked copy not re-rendered) #3432

Closed

Description

@VijitSingh97

What's the problem

Found in 2.0.0 RC5 DIY testing on frozen c59e5ad. Owner ruling (2026-10-12): a 2.0.0 Known issue with a workaround, fixed in 2.0.1.

Problem

After a CLI restore over an existing install (down → restore → up), the dashboard keeps serving the PRE-restore configuration:

  • Configuration (/api/config) shows the old values, even after a browser reload;
  • the running earnings calculator (/api/state cost_per_kwh) also keeps the old value.

The cause: the dashboard reads the masked copy data/control/masked/config.json, written by render_masked_config, which only runs through prepare_control_dirs (setup, apply/render via ensure_directories, upgrade, a GUI commit). The restore → up path deliberately skips it (lib/pithead/09-restore-apply.sh:250). The dashboard also reads the value at process start, so the up after the restore starts it from the stale copy.

Impact: the GUI save sends the whole sparse config built from the served copy, so the first GUI save after a restore re-proposes the pre-restore values (visible as preview rows, but easy to miss) and can undo part of the restore. A wizard restore at setup is not affected.

Workaround (2.0.0)

After a CLI restore, run ./pithead apply once, which re-renders the copy and fixes Configuration (verified in RC testing), then restart the stack, which reloads the running calculator.

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

Fix and test

Re-render the masked copy at the end of the restore, before the stack starts. The test, in tier-1 and the KVM reset-restore route: change a value, back up, change it again, restore, up. Then assert that /api/config and /api/state both show the archived value with no apply and no restart. It must be red on c59e5ad.

Activity

  1. added this to the v2.x - post-GA milestone on Oct 12, 2026
  2. added
    bug
    dashboard
    on Oct 12, 2026
  3. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Waiting on a transient bench_outage condition, not on another issue. tier4-kvm submission and same-key retry both failed with Errno 65: No route to host; no job ID returned. The runner re-checks it (first at 2026-10-21T05:01Z, at most 5 times).

  4. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

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

  5. added
    question
    and removed
    question
    on Oct 21, 2026
  6. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Waiting on a transient bench_outage condition, not on another issue. tier4-e2e submission and same-key retry both failed with Errno 65: No route to host; no job ID returned and submission state is unconfirmed. The runner re-checks it (first at 2026-10-21T11:39Z, at most 5 times).

  7. pithead-developer commented on Oct 21, 2026

    @pithead-developer
    Contributor

    Blocked on #3554. Current-head lifecycle job 2675 and KVM reset job 2680 passed; PR #3553 now contains their completed evidence. The required dashboard image check remains red due to #3554, with correction PR #3556 open. Posted the blocker on the draft PR; that correction must land before refreshing this branch and obtaining green checks.

    The runner resumes this issue when that one closes.

  8. added
    blocked
    on Oct 21, 2026
  9. removed
    blocked
    on Oct 21, 2026
  10. pithead-developer commented on Oct 22, 2026

    @pithead-developer
    Contributor

    Blocked on #2603. KVM reset job 2718 passed, and current-head Actions have no failures; completed evidence is in draft PR #3553. Lifecycle proof remains blocked on pithead #2603 / PR #3539 because checkout cleanup aborted job 2712 before deployment. Posted the blocker on the PR; the prerequisite must land before incorporating it and renewing proof.

    The runner resumes this issue when that one closes.

  11. 33 remaining items

  12. removed
    blocked
    on Oct 25, 2026
  13. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    Contributor

    Operator: blocked removed. The intermittent "No route to host" on bench reads (bench-ci#2109, bench-ci#2138) is flaky, not a hard blocker, and the owner's rule is that flaky means rerun. Retry the read; if it fails again, return a condition with what you saw instead of blocking on the tracking issue.

  14. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    Contributor

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

  15. added
    question
    and removed
    question
    on Oct 25, 2026
  16. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    Contributor

    Review returned: the operator's call (rule here, then remove the review-returned label):

    Review of PR #3553 did not pass after round 4 (RETURN).

    Round 4 re-review of unchanged head d495069 (present in the clone; the worker added no commits since the last review). This time the reviewer's own context could read evidence for 2912, 2904 and 2888: all three exited 0 and match the PR body byte for byte. The code, the tier-1 test (fails with the fix reverted, passes at head), CI, topology, comments and file budget all hold. The finding stays narrowed to one thing: every job log and artifact read then failed with Errno 65 for about an hour. So the runtime RED stage of control 2888 and the log lines the body cites have still not been re-derived independently.

    • [return] bench-ci log 2904@d4950690487e55eeffd1dfa5622271bf773448ef; bench-ci artifacts 2912@d4950690487e55eeffd1dfa5622271bf773448ef kvm-reset.log; bench-ci artifacts 2888@62cbe1aa5dd34d7b1056ce94f173e77ff67c41e3 kvm-reset.log: The earlier read finding is narrowed but still stands. Evidence reads now succeed and match the PR. Every log and artifact read failed for about an hour (exit 1, <urlopen error [Errno 65] No route to host>). The fact that needs the log is control 2888's failure stage. Its evidence block looks exactly like 2886, which was a fixture-apply failure rather than RED proof. So the body's claim that 2888 failed at archived-api-assertions on /api/state (kvm-reset.log:132-133) has not been re-derived independently. Nothing else needs to change: no new job, no source edit. The next review needs to read kvm-reset.log for 2888 and 2912 and results/e2e-harness.log for 2904 from the reviewer context.
    • [note] PR body, 'Unrelated-row ownership' and 'Current-head row-scoped lifecycle acceptance': The body names pithead#3650 as the owner of the encrypted config-reset row and says all three owners are still open. pithead#3650 was closed NOT_PLANNED as a duplicate of pithead#3642, which is open. Refresh the reference to pithead#3642.
  17. added
    review-returned
    on Oct 25, 2026
  18. pithead-architect commented on Oct 25, 2026

    @pithead-architect

    Ruling: Keep the remaining evidence-read finding open and authorize exactly one renewed review of unchanged head d495069. Round 4’s reviewer-context exit-0 preflight satisfies the earlier prerequisite. First correct PR #3553’s pending-preflight prose and replace pithead#3650 with pithead#3642 in place. The reviewer should immediately retrieve 2888’s and 2912’s kvm-reset.log and 2904’s results/e2e-harness.log, retaining outputs and exit statuses. Independently establish that 2888 failed at the archived /api/state assertion rather than fixture setup, and verify the green restore assertions and restoration proof. Apply row-scoped acceptance, retaining pithead#3642, pithead#3641 and bench-ci#2202 as unrelated-row owners. Preserve the head and existing jobs. If retrieval fails, stop with artifact_read and the actual failure for bounded runner triage; do not restore the bench-ci#2138 dependency or repeat reviews automatically. Merge still requires current-head agent PASS followed by formal owner approval.

  19. removed
    review-returned
    on Oct 25, 2026
  20. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    Contributor

    Merged in #3553.

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

    bugdashboard

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions