Repository navigation
Description
What's the problem
A DIY (Docker host) owner cannot get the same bundle as an appliance owner. It is part of tracker #4032.
./pithead support-bundle(stack_support_bundle,lib/pithead/07-support-bundle.sh:151-213) has no window at all. It rejects options (07:152) and runsdocker compose logs --tail 200per service (07:191), so it keeps 200 lines per container.- Its output is a
.tar.gz(07:155,07:198). - The dashboard export on a DIY host runs the journal-only collector (
bundle_support_collect,07:237). DIY containers log to Docker's own driver, not to journald units, so that bundle holds almost nothing useful. - DIY pithead units are never collected:
pithead-egress.service,pithead-egress.timer,pithead-lan-guard.service,pithead-lan-hold.serviceandpithead-lan.timer(named inlib/pithead/08-uninstall-firstboot.sh:99; unit names defined atlib/pithead/02b-lan-guard-units.sh:5-8). docs/operations.md:31still says "the last 200 log lines per container".
What it impacts
- DIY owners, who get a worse record than appliance owners, and the maintainers who support them.
- Depends on Support bundle collector: one .zip of the whole journal for a chosen start and end time, with a manifest #4127 (zip format, window fields, size policy, manifest) and on Dashboard: time-frame picker and one-click .zip export, always available, with docs and a browser test #4129 (dashboard picker and route availability). Start after Support bundle collector: one .zip of the whole journal for a chosen start and end time, with a manifest #4127 merges. The appliance-only sources in Support bundle: add state snapshots and non-journal sources, each time-bounded so a wedged service cannot block it #4128 (RAUC, Tor control port) are not required here.
How I found it
This came from a read-only audit of develop at eb929ce on 2026-11-15, against the owner's request and the acceptance criteria of #4032, verified by a second agent. The owner said on 2026-11-15: "make sure 2.0.4 has the export logs feature also. i want to be able to select a time frame and then dump pretty much every log on the system into a zip file for download. this is so we can debug issues users face".
Evidence is the file:line list above. Not verified: whether the dashboard container on a DIY host can reach the Docker engine, and whether the host journal is readable by the user running the CLI. Each must become a manifest entry when not available.
How important is it
Release blocker for v2.0.4. The owner confirmed on 2026-11-15 that DIY owners get the same windowed zip in this release, and that the export is "always" downloadable (see #4129). Part of #4032.
Acceptance criteria
-
./pithead support-bundleaccepts--sinceand--until(UTC, RFC 3339) with the same defaults, validation and clamping as Support bundle collector: one .zip of the whole journal for a chosen start and end time, with a manifest #4127, and writes the same.zipwith the samemanifest.jsonfields. - The dashboard export on a DIY host produces the same zip for the same window, through the picker from Dashboard: time-frame picker and one-click .zip export, always available, with docs and a browser test #4129.
- Container logs for the window come from
docker logs --since --untilper container (stopped ones included), in full, under the size policy from Support bundle collector: one .zip of the whole journal for a chosen start and end time, with a manifest #4127. The 200-line limit is gone. Truncation is recorded in the manifest. - The host journal for the DIY pithead units (
pithead-egress.service,pithead-egress.timer,pithead-lan-guard.service,pithead-lan-hold.service,pithead-lan.timer) is included when readable. When it is not readable the manifest says so. -
doctor.json, the masked config and the redacted.envstay in the bundle. - Existing redaction runs on every container and journal file. A seeded secret in a container's log never reaches the zip.
tests/integration/selftest/selftest-support-bundle.shand the lifecycle check (tests/integration/lifecycle,check-support-bundle.py) are updated to read the zip, check the window and check for the seeded secret. - A stopped container engine or an unreadable journal does not fail the bundle. It is recorded in the manifest.
-
docs/operations.mdis corrected for the DIY verb, and the CHANGELOG notes the change. -
make checkpasses.
Possible solutions
- Share one collector core with Support bundle collector: one .zip of the whole journal for a chosen start and end time, with a manifest #4127 and plug in a container-log source (
docker logs) in place of the journal source for DIY, so the manifest and size policy stay identical. - Reuse the engine detection the CLI already does (
docker compose ps) to list containers, including exited ones.
Activity
pithead-developer commentedon Nov 15, 2026
Blocked on #4127. I made no changes. #4130 says to start after #4127 merges, and #4127 is still open with no PR on develop.
lib/pithead/07-support-bundle.shhas no zip writer, window fields, size policy or manifest to reuse. The acceptance criteria require "the same" zip, manifest and clamping as #4127. If I built a DIY collector first, it would fix a format that #4127 has to define, and one of the two would have to be reworked. #4129 (picker and route) also depends on #4127. What is done: I read the issue and checked the dependency state. The plan is to add--since/--untiltostack_support_bundle, collect per-container logs withdocker logs --since --until(including exited containers), add the five DIY pithead units from the journal, and record an unreachable engine or unreadable journal in the manifest. I would also updateselftest-support-bundle.sh,check-support-bundle.py,docs/operations.mdand the CHANGELOG. The session resumes when #4127 closes.The runner resumes this issue when that one closes.
support-bundle (DIY): read container names without stderr, bound engi…
support-bundle tests: read the zip in the doctor leg, keep the DIY fr…
test-doctor-appliance: drop the explanatory comment from the edited h…
support-bundle (DIY): treat partial journal access as unreadable, ren…
Merge develop into agent/4130 (#4130)
DIY parity: support-bundle takes --since/--until and writes the same …
pithead-developer commentedon Nov 17, 2026
Merged in #4171.
Tor diagnostics snapshot: circuits, consensus, guards, bootstrap and …