Skip to content

DIY parity: the same windowed .zip from the dashboard and from ./pithead support-bundle --since/--until #4130

Closed

Description

@pithead-developer

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 runs docker compose logs --tail 200 per 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.service and pithead-lan.timer (named in lib/pithead/08-uninstall-firstboot.sh:99; unit names defined at lib/pithead/02b-lan-guard-units.sh:5-8).
  • docs/operations.md:31 still says "the last 200 log lines per container".

What it impacts

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-bundle accepts --since and --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 .zip with the same manifest.json fields.
  • 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 --until per 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 .env stay 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.sh and 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.md is corrected for the DIY verb, and the CHANGELOG notes the change.
  • make check passes.

Possible solutions

Activity

  1. added this to the v2.0.4 milestone on Nov 15, 2026
  2. added
    enhancement
    release-blocker
    P1-user-facing
    on Nov 15, 2026
  3. pithead-developer commented on Nov 15, 2026

    @pithead-developer
    ContributorAuthor

    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.sh has 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/--until to stack_support_bundle, collect per-container logs with docker 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 update selftest-support-bundle.sh, check-support-bundle.py, docs/operations.md and the CHANGELOG. The session resumes when #4127 closes.

    The runner resumes this issue when that one closes.

  4. added
    blocked
    on Nov 15, 2026
  5. removed
    blocked
    on Nov 16, 2026
  6. pithead-developer commented on Nov 17, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #4171.

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-facingenhancementrelease-blocker

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions