Skip to content

v1.9.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 01:57
· 6 commits to main since this release
7e623cb

homebutler said what changed on a box, but not when a tag had moved to another image, when the machine itself needed attention, or what had changed around a container that just stopped; report and doctor now name the image under a tag, doctor reads certificates, pending updates and a pending reboot, and incident_context answers for a crash with the changes around it.

Three things to check before upgrading. doctor --strict can exit 1 on a machine that passed before: a pending reboot, a pending security update, a failed package check, or a Proxmox certificate that has expired, is not yet valid, does not name the host or expires within 14 days now each raise a finding that --strict counts. doctor findings can carry a fourth severity, info, and summary an info count; status and the --strict exit code never count it. And doctor now asks the registry of each running container's image about its tag, an anonymous HEAD, which Docker Hub does not count as a pull, plus a GET of a multi-arch index only when Docker cannot say how the image was pulled, caching the answer in ~/.homebutler/registry/digests.json; doctor.image_updates.enabled: false turns it off, per machine. incident_context against a server needs that server on this release.

⚠️ Behavior changes

  • doctor --strict can now exit 1 on a machine that passed before (#417). On Debian, Ubuntu, and RHEL-family systems with needs-restarting: while a reboot is pending, while a security update is pending, or when apt-get --simulate or dnf -C check-update fails. On any machine with a Proxmox endpoint, which is checked without being listed: its certificate has expired, starts in the future, does not name the host (not checked for a fingerprint pin or insecure: true alone), or expires within 14 days, or the certificate cannot be read while the API answers. Nothing else new warns: a stale package list, held packages, an empty dnf cache, and a system with no apt or dnf are said in a pass. βœ… No obvious issues found, and its overall finding in --json, no longer appears, because the update check always adds a finding of its own; a script that looked for it should read status instead
  • doctor findings can carry a new severity, info, and summary a new count, info (#412). A script that switches on severity meets a fourth word; one that reads status, or doctor --strict's exit code, sees no change, because info never sets the status. The dashboard lists info findings between warnings and passes and counts them as to know about
  • doctor asks registries about running images, and writes one file (#412). For each running container's tag it sends an anonymous HEAD to that image's registry (Docker Hub, ghcr.io, or whichever the reference names), plus the anonymous token request those registries ask for first. For a container behind a multi-arch tag it may also GET the tag's index, which Docker Hub counts as a pull, unless Docker says the image was pulled as an index. It keeps the answers in ~/.homebutler/registry/digests.json. It is on by default; doctor.image_updates.enabled: false turns it off. That setting is per machine: under --server the check runs on the server, so the server's config decides. A machine with no route to the registry adds at most ten seconds to the run and says which containers it could not check. doctor --no-save reads the cache without writing it; read-only MCP passes it, here and to a server, and asks a server whose homebutler predates the flag again without it, since such a server has no image check and writes no cache. Without a cache to read, --no-save asks about a behind container on every run

✨ Features

  • doctor says when a running container's tag names a different image in its registry than the one it runs (#412): web: nginx:1.27 now names a different image in the registry, with the digest the tag names upstream and the one the container was pulled as. It says different, not newer: a tag moved back looks the same. A multi-arch tag is compared by its index digest, which is what Docker records on pull, and an image pulled by one platform's digest is matched against the index's manifests, so neither looks changed when it is not. A cached answer that disagrees with what runs is asked again first, so pulling the update inside the cache window does not leave a stale line; once a fresh answer has disagreed with the image running, it is not asked again until it expires. Containers pinned by digest, images built on the machine, images whose origin Docker before 29.2 does not report under the containerd store, and registries that want credentials, answer 429 or do not answer are listed under N running container(s) not checked against their registry with a reason each. Answers are reused for doctor.image_updates.cache_ttl, six hours by default, held to 5 minutes to 7 days. Nothing is pulled or restarted
  • report says when a recreated container came back on a different image under the same tag (#411). After docker compose pull && up -d with nginx:latest in the compose file, docker ps prints nginx:latest before and after, so the line said replaced: web β€” recreated, 7d4a91f0aa11 β†’ 91be0322bb22 and nothing about the image. It is still replaced, and now reads replaced: web β€” recreated, 7d4a91f0aa11 β†’ 91be0322bb22, image 605c77e624dd β†’ 1a2b3c4d5e6f under nginx:latest. Snapshots record each container's image ID under image_ids, read with one docker inspect per run; containers it does not answer for are compared by tag as before, and warnings names them. The first report after upgrading compares against a snapshot without image IDs, so its lines are the ones the last release wrote
  • doctor checks TLS certificates: a new certificates: list of host:port entries, plus every configured Proxmox endpoint without being listed (#417). A chain with any certificate expired or not yet valid, or a leaf that does not name the host it was reached by, is ❌ [exposure]; inside 14 days is ⚠️; the rest share one βœ… line with the days each has left. It does not judge the issuer, so a self-signed Proxmox certificate in date passes. A Proxmox endpoint pinned with fingerprint, or insecure: true without ca_file, is one homebutler's client does not verify, so its name is not checked and an expired certificate there is ⚠️ about other clients. Each endpoint gets 5 seconds, a single failed connection is retried inside them, and up to 8 are dialled at once. With no list and no Proxmox endpoint, nothing is reported. config validate refuses an entry that is a URL or not host:port
  • doctor counts pending updates the way the package manager already knows them, without root and without the network (#417). On Debian and Ubuntu it reads apt-get --simulate dist-upgrade, counting a suite ending in -security as security and naming held or phased packages; on Fedora and RHEL dnf -C check-update, dnf -C updateinfo list --security and needs-restarting -r where that is installed. It never runs apt update, and the count says how old the list is, from update-success-stamp where it exists. A /var/run/reboot-required is ⚠️ A reboot is pending, with the local date and the packages that asked for it. dnf is not strictly read-only: dnf4 writes logs to /var/tmp/dnf-<user>-* and dnf5 as root rebuilds its .solv files, and as a user that is not root dnf5 would copy about 100 MB into ~/.cache/libdnf5, so doctor does not count there and says so. On macOS, Windows, inside the container image, or on Linux with neither apt nor dnf, it says βœ… Pending updates are not read on <system>. Under --server it runs on that server, against its packages
  • the MCP tool incident_context answers "why did this container stop" with one call (#414). Given an incident ID, or a target as watch_list names it for its latest incident, it returns the incident as watch_history does, the report changes between the last snapshot before it and the first one after it, and those changes split into about_target and other_changes. The window is placed at the restart (curr_started_at) when the incident has one earlier than detected_at, because watch check stamps the time it ran, which can be after a report that already saw the restarted container; anchored_on says which. Two snapshots bracket the incident without ordering what changed between them, so note says on every comparison that a change may have come after it. A port is the container's when the snapshot attributed it to that container, so new: :8001/tcp β€” now docker-proxy lands under the container that published it, and paperless-db is not taken for paperless. Changes are tied to a target only when the incident is known to be a Docker container's; otherwise unattributed says why and everything is in other_changes. When no report has run since, the comparison runs to the current state, read and not saved, and after_is_current and note say so; inside a container it is not read. With no snapshot before the incident, it comes back alone with compared: false and a note that tells pruned snapshots from none. It is classed read and offered under --max-risk read. On the command line it is watch show --context (--logs adds the logs), and watch show --container <name> shows a target's latest incident; incident_context with a server runs watch show --context there, so the server needs this release
  • incidents record the kind of monitor that wrote them, as kind (docker, systemd or pm2) in watch_history, watch history --json, watch check --json and the incident files (#414). The watch list cannot say after the fact: it allows a docker and a systemd target of the same name, and a target can be removed. Left out for Proxmox incidents and for incidents recorded before this release

πŸ› Fixes

  • A systemd unit that failed and stayed failed was recorded with curr_started_at set to the start of the run that died, the same as prev_started_at, so the incident read as if the unit had started again (#414). curr_started_at is now empty when the start did not change. Incidents already recorded keep the old value; incident_context ignores a curr_started_at equal to prev_started_at
  • watch show <id> named an incident file by its full path, home directory included, when it could not be read; the error now names the incident and the reason (#414)
  • A report taken between docker compose pull and up -d saw the container's image as a bare ID, because the pull had moved the tag off it, and the next report called the recreate … 73aaf090f3d8 β†’ nginx:latest. With image IDs on both sides it now reads as the same update as above (#411)
  • watch --help, watch list, watch remove and watch check described a Docker-only tracker; the help now names systemd units and PM2 apps where the command handles them, and check --help says it checks Docker targets only (#410)

πŸ“š Documentation

  • The README said an image line comes from pulling a new tag. Pulling and recreating is a replaced; image is what a pull leaves behind when it moves the tag off a container that is still running, so Docker names that container's image by ID. The README, docs/report.md, the docs site and the agent skill now say so (#411)