Skip to content

v1.10.0

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Nov 18:02
· 4 commits to main since this release
9472276

The dashboard gave every card the same weight and left you to find what was wrong, and watch check inspected a docker target added with --unit by a name that was not its container; the dashboard now opens with what needs attention and follows the system theme, and watch check inspects the unit.

Two things to check before upgrading. A docker target added with --unit is now reported and recorded under its unit by watch check and watch_check, the first check after upgrading sets a new baseline for it, and rolling back to 1.9.0 afterwards can report one spurious incident for each such target. And on the dashboard a running container's Restart and Stop, and a running guest's Reboot and Shut down, have moved behind the ⋯ button on its row; nothing in the API changed.

⚠️ Behavior changes

  • watch check inspects a docker target added with --unit by its unit, and records its incidents under the unit (#419). It used to inspect the name watch list shows, which for such a target is not a container at all, so it either warned no such container on every run or checked a different container of that name; watch start already watched the unit. Incidents from watch check now carry the container's real name in container and in their ID, the same as the daemon's, so watch check --json and watch_check print the unit where they printed the listed name, and flapping counts both monitors' incidents for the container together. Targets that share a unit are inspected once and a restart of it is one incident, where it was one per target. The first check after upgrading sets a new baseline for such a target instead of comparing against the other container's state. Incidents an earlier watch check recorded under the listed name were about the container of that name, not the unit, and stay so: they are found by that name only. Rolling back to 1.9.0 afterwards is not clean: its first check compares the container of the listed name against the state this release recorded for the unit, and reports one spurious incident for each such target whose listed name is also a container
  • watch history --container and watch_history given a docker target's listed name now also return the incidents recorded under its unit, where watch start has always recorded them and watch check now does, as watch show --container already did (#419). The name matches its target ignoring case, as the incident filter always has. An incident is counted under the unit only when a docker monitor could have recorded it: not a Proxmox incident, and not one that does not record its kind while a systemd or pm2 target has the unit's name, which watch show --container now skips too. When the watch list cannot be read, watch history says so on stderr and filters by the name alone; watch_history answers with a bare list, so it filters by the name alone without saying so

✨ Features

  • The web dashboard follows the system's light or dark setting, and opens with what needs attention. A sentence at the top counts what the new Needs attention card lists: servers that are not answering or refused the connection, thresholds at warning or critical on the picked server, and a Proxmox endpoint or node that is not current, each in one sentence with the homebutler trust command where the host key is the problem. It says it is still checking until every card it counts has answered, lists a card that could not be read as not checked rather than as fine, counts every Proxmox endpoint and not only the one on screen, and when nothing needs you says so plainly and names what it checked. Stopped containers are not on it: the dashboard cannot tell one stopped on purpose from one that died, and the Report tab judges that against a snapshot. Every tab is restyled on one layout, and a running container's Restart and Stop, and a running guest's Reboot and Shut down, sit behind a ⋯ button on the row. The confirmations are the same three tiers, now a dialog, or a sheet from the bottom on a phone, and a refusal from the server is said inside it. Nothing in the API changed (#425)

🐛 Fixes

  • A dashboard without a token showed Wake buttons and Save a snapshot, and both answered no such endpoint: without a token those routes are not registered. They are now offered only with a token, like every other action, and the card says how to get one (#425)
  • A failed wake replaced the dashboard's whole Wake-on-LAN list with its error until the page was reloaded. The error is now said under the list, naming the device (#425)
  • Removing a Wake-on-LAN device on the Config tab that the server refused said nothing: the device stayed on screen with no reason given. The refusal is now shown on the card (#425)
  • A systemd unit that restarted and died again between two polls was recorded with curr_started_at set to the start of the run that died, so incident_context placed its window before the crash (#419). The monitor now also reads ExecMainExitTimestamp, and when the unit is anything but active or reloading (failed, inactive, or activating towards its next Restart= attempt) and its last exit is at or after its start, curr_started_at is empty. Incidents already recorded keep the value: nothing in them says when the run exited, and the error is at most one poll interval
  • watch show --container and incident_context could warn that an incident file "could not be read" when they caught watch start writing it (#419). Incidents are now written to a temporary file and renamed into place, with the mode a new file got before (0644 under the umask) or the one the file already had. A temp file left by a crash mid-write is removed by the next save once it is an hour old