From dd7991823440503c56b31cca117b61258e7a4ace Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Fri, 27 Feb 2026 10:02:03 +0100 Subject: [PATCH] docs: update CHANGELOG and README for v0.32.5 Co-Authored-By: Claude Opus 4.6 --- CHANGELOG.md | 10 ++++++++++ controller/README.md | 14 +++++++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 472d4d2..b44e4cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ ## Changelog +### v0.32.5 — USB badge fix + graceful Tier2 backup on disconnected destinations (2026-02-27) + +#### Fixed +- **system/mounts_linux.go**: `IsUSBDevice()` and `diskModel()` now strip findmnt bind-mount suffix (`[/subdir]`) before parsing device path — fixes USB badge and disk model not showing for drives mounted via the attach wizard +- **backup/crossdrive.go**: Disconnected source/destination drives now silently skip with WARN log instead of returning error — prevents noisy error aggregation in `RunAllScheduled()` and false "failed" counts + +#### Added +- **web/handlers.go**: New `Tier2DestDisconnected` field on `AppBackupRow` — detects when a Tier2 backup destination drive is disconnected, sets yellow status dot ("2. mentés szünetel") instead of red +- **web/templates/backups.html**: New template branch for disconnected Tier2 destinations — shows "Cél meghajtó leválasztva" warning badge with grayed-out info, hides "Futtatás most" button + ### v0.32.4 — Controller telemetry: include controller in hub app telemetry (2026-02-27) #### Added diff --git a/controller/README.md b/controller/README.md index 237726e..92a9137 100644 --- a/controller/README.md +++ b/controller/README.md @@ -4,7 +4,7 @@ A single, lightweight Go container that replaces Portainer + scattered systemd scripts with a unified, Hungarian-language web dashboard for managing Docker Compose stacks, backups, storage, monitoring, and notifications on customer hardware. -**Current version: v0.32.4** +**Current version: v0.32.5** --- @@ -568,9 +568,17 @@ Continuously monitors registered storage paths for disconnection/reconnection (p - Disconnected card: dashed border, red badge, timestamp, stopped apps list, "Csatlakoztatás" (reconnect) button - After reconnect: "Alkalmazások indítása" button to restart auto-stopped stacks -**USB detection** (`system.IsUSBDevice`): Reads `/host/sys/block/` symlink — if target path contains `/usb`, it's a USB device. The `removable` sysfs flag is unreliable for USB HDDs (returns 0). USB drives show an orange "USB" badge on their storage card alongside Aktív/Alapértelmezett badges (v0.27.2). +**USB detection** (`system.IsUSBDevice`): Reads `/host/sys/block/` symlink — if target path contains `/usb`, it's a USB device. The `removable` sysfs flag is unreliable for USB HDDs (returns 0). USB drives show an orange "USB" badge on their storage card alongside Aktív/Alapértelmezett badges (v0.27.2). Handles findmnt bind-mount suffix stripping (`/dev/sdb1[/subdir]` → `/dev/sdb1`) for attach-wizard drives (v0.32.5). -**Backup guards**: Nightly DB dumps, restic snapshots, and cross-drive backups all skip disconnected drives with WARN log (not treated as failures). +**Backup guards**: Nightly DB dumps, restic snapshots, and cross-drive backups all skip disconnected drives with WARN log (not treated as failures). Cross-drive `RunAppBackup()` returns nil (not error) for disconnected source/destination — prevents noisy error aggregation in scheduled runs (v0.32.5). + +**Tier2 destination disconnected (v0.32.5)**: When a Tier2 backup destination drive is disconnected, the backup page shows: +- Yellow status dot with "2. mentés szünetel — cél meghajtó leválasztva" tooltip (not red) +- "Cél meghajtó leválasztva" warning badge on the Tier2 row +- Grayed-out last-run info and backup contents +- Hidden "Futtatás most" button (prevents futile manual triggers) +- "Beállítás" link preserved for reconfiguration +- Tier2 config persists through disconnect/reconnect — backups auto-resume when drive returns **UI integration**: Disconnected drives show with hatched red bars on dashboard, monitoring, and backup pages. Per-app backup rows show "Meghajtó leválasztva" badge. Health check emits warnings for disconnected paths.