Repository navigation
Description
What's the problem
When an appliance fails to boot healthy, the machine stays up for diagnosis with the dashboard down — os/overlay/pithead-boot:60 tells whoever is at the console "The machine stays up for diagnosis; the dashboard is down, see the journal" — but the shell-less owner has no way to turn that journal into a support bundle: the CLI bundle command was written for a DIY host with docker compose, not the appliance's quadlet+journald layout, and the dashboard route needs the dashboard. Child issue of #4032.
What it impacts
Exactly the case that matters most: a box that failed boot gating or lost its stack can currently produce no portable evidence at all; today's only recourse is a reboot and hope.
How I found it
From parent issue #4032 (its acceptance criterion: "The same bundle can be produced from the appliance's recovery or maintenance screen, without the dashboard"). Verified in this checkout: os/overlay/pithead-boot keeps the machine up after both slots fail and writes advisories to /dev/tty1 and /dev/ttyS0; os/rootfs/Dockerfile bakes a serial-getty override for ttyS0; the appliance runs containers through quadlet units in os/quadlet/ with the journal persistent on /data (os/overlay/pithead-journal-persist), so a journald-based collector works with no container engine.
How important is it
High: an explicit acceptance criterion of the owner-requested #4032, covering the no-dashboard failure mode the dashboard action itself cannot serve.
Acceptance criteria
- The appliance support-bundle collector (shared with the dashboard child issue — one collector function, one redaction path,
bundle_redact_log) is reachable from a host CLI verb that does not require the dashboard, the container engine, or the network: it reads only the journal and /data files and exits 0 with an archive on a box whose stack is fully down. - The archive is written chmod 600 to a fixed path under /data/pithead, and the command prints that path to the console (tty1/ttyS0 reachable output), so the recovery-screen user knows where it landed.
- A tier-1
tests/stackcase runs the verb with the container engine absent (the existing fake/no-engine fixture path) and asserts success plus archive presence; a tier4-kvm fault-phase leg stops the stack, runs the verb, and asserts the archive exists and contains journal lines from at least one failed pithead unit. docs/operations.mddocuments the recovery-state recipe (console, command, output path) and links the dashboard download and the bug-report flow (Add a 'Report a bug' link (bugs@pitheadmining.com) to the shell and Maintenance #3746).
Possible solutions
Give the collector its own entry point so both consumers call it (dashboard control kind and this CLI verb); the existing stack_support_bundle keeps DIY/docker behaviour untouched. The appliance collector is journald-first (journalctl --since, unit names from the quadlet set plus pithead-boot and RAUC), with the same window default (72 h) and host-side caps as the dashboard child defines.
Parent: #4032
Worker brief: Test tier: tier-1 tests/stack plus one tier4-kvm phase (fault) — the CLI works on a KVM appliance with the stack stopped; quote the bench-ci evidence block for the KVM leg in the PR. Tiers 1-3 must be green on the head before the KVM submit; always pass --base develop.
Implement the no-dashboard bundle entry point for parent issue #4032, per the acceptance criteria on the issue. Depends on the sibling child issue 'Download a redacted support bundle of a chosen log window from the dashboard' for the shared collector: if that collector already exists on develop when you start, reuse it as-is; if not, structure your change so the collector lives in the support-bundle slice both consumers can call, and keep your diff to the CLI verb, tests and docs so the two PRs merge cleanly. Read lib/pithead/07-support-bundle.sh, os/overlay/pithead-boot (the stay-up-for-diagnosis branch), and the no-engine fallback already present in stack_support_bundle. Run scripts/build-pithead.sh and commit the generated CLI, make lint-pithead-build, and the tests/stack case first failing. No comments in code; docs carry the explanation. Do not implement the dashboard route, the notifier changes, or journald config — sibling issues own those.
Activity
pithead-developer commentedon Nov 12, 2026
Grouped with #4036, but PR #4053 does not close it: the worker left it out. Released for its own pick.
appliance: fix #4036, #4037 and start #4038 — download a redacted sup…
recovery-bundle leg: stop containers, avoid pipefail SIGPIPE; tier-1 …
appliance: tier4-kvm fault leg for recovery-bundle and a boot advisor…
pithead-developer commentedon Nov 14, 2026
Merged in #4104.
Tor diagnostics snapshot: circuits, consensus, guards, bootstrap and …