From 30eea976627ee6e8e72bbaff225ccbb89cbc9935 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Sun, 18 Oct 2026 22:25:01 +0200 Subject: [PATCH] Immich and Nextcloud: Redis without a volume (--save "", tmpfs /data), as upstream runs it (R-1117) Measured first on scratch 9202: both apps healthy and their jobs run; the nightly dump skips the removed volume; a second-drive restore from a copy made WITH the volume succeeds. A box keeps its old Redis volume, unused, until the app is removed. Ladder step files unchanged. --- CHANGELOG.md | 14 ++++++++++++++ REPORT.md | 23 +++++++++-------------- templates/immich/docker-compose.yml | 11 ++++++----- templates/nextcloud/docker-compose.yml | 7 +++---- 4 files changed, 32 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1943d17..d756299 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +## 2026-10-18 — Immich's and Nextcloud's Redis run without a volume (R-1117) + +- Both Redis services now run as upstream runs them: `redis-server --save "" --appendonly no`, `/data` on a tmpfs, and no + named volume (`immich_redis_data`, `nextcloud_redis_data` removed). They hold queues and caches only. +- **Measured first on scratch 9202** (felhom.eu `audits/redis-volumes-2026-10-18/`), with each compose changed the same way: + (a) both apps healthy; Immich ran a forced metadata job (Redis job counter 0 → 11, 0 failed); Nextcloud `occ status` + ok, `cron.php` rc 0, WebDAV 200. (b) The nightly dump reads the compose's own volumes: it dumped Immich's two + remaining volumes and the old Redis tar was gone from the unit; a second-drive restore of Nextcloud from a copy made + WITH the Redis volume succeeded (3/3 volumes, 1/1 database, healthy) — and, by design, brought back that copy's own + compose (with the volume), a working older shape. (c) **The old volume stays on an installed box**: compose's + re-create carries it over at `/data`, hidden under the tmpfs, unused; the app's removal deletes it (it carries the + project label). Size on 9202: Immich 31.6 MB, Nextcloud 12 KB. +- Ladder step files unchanged (a box pinned to one keeps that file). + ## 2026-10-18 — CI workflow: the failure mail links the public run page, by run id (R-1135); no catalog change `.gitea/workflows/gates.yml`, the alarm step: the mail's run link is now `https://gitea.dooplex.hu//actions/runs/`. diff --git a/REPORT.md b/REPORT.md index d41a982..1ef2172 100644 --- a/REPORT.md +++ b/REPORT.md @@ -1,17 +1,12 @@ -# REPORT — 2026-10-18 (night): homepage without the Docker socket; each app's own appdata folder in the privileges gate +# REPORT — 2026-10-18 (evening): Immich's and Nextcloud's Redis without a volume (R-1117) -**In plain words.** The start page app (homepage) no longer gets control of Docker — nothing in Felhom used it. The -app-list check now refuses a template that reaches another app's data folder, the same way the box does. +**In plain words.** The two apps' Redis keeps only queues and caches, so it no longer gets a disk volume; it runs in +memory, as the apps' own makers run it. This was tested on the scratch box first: both apps work, their background jobs +run, the nightly backup is clean, and restoring an older backup still works. -- `templates/homepage/docker-compose.yml`: the socket mount is gone (R-981); `.felhom.yml`: the „Docker integration" - use case removed (HU + EN). -- `scripts/privilege-allowlist.json` v2 = controller v0.329.0's list: no entries; `appdata_folders: {paperless-ngx: paperless}`. -- `scripts/check-privileges.py`: the `${HDD_PATH}` root is `appdata//` (R-1142); 7 new decoys. -- Gates: `check-privileges.py` rc=0 (123 files); `privileges_cases` 0 fails; red-proof recorded. -- Live proof and the night's other work: felhom.eu `REPORT-night-2026-10-18.md`. +Task: the evening brief of 2026-10-18, Part 6 (felhom.eu `REPORT-evening-2026-10-18.md`). Evidence: felhom.eu +`documentation/audits/redis-volumes-2026-10-18/`. What changed and what was measured: the CHANGELOG entry of the same date. +Templates changed: `templates/immich/docker-compose.yml`, `templates/nextcloud/docker-compose.yml`; ladder step files +unchanged. -## Immich memory (R-994, same night) - -A 4,000-photo import on the scratch box killed Immich's server twice at 2 GB. Its limit is now 3 GB, and the photo -recognition part 2 GB. The memory request is unchanged, so an 8 GB box still installs Immich. Peaks table: felhom.eu -`audits/night-2026-10-18/P6/peaks.md`. +Not changed, recorded: a box that had the Redis volume keeps it, unused, until the app is removed. diff --git a/templates/immich/docker-compose.yml b/templates/immich/docker-compose.yml index b583be8..99c9bd5 100644 --- a/templates/immich/docker-compose.yml +++ b/templates/immich/docker-compose.yml @@ -14,7 +14,9 @@ # External photo library (RO) → ${USERDATA_PATH}/media/photos → /external/photos # PostgreSQL data → immich_postgres_data (named volume, NVMe) # ML model cache → immich_ml_cache (named volume, NVMe) -# Redis data → immich_redis_data (named volume, NVMe) +# Redis → no volume: queues and cache only, in memory (tmpfs /data, --save "") as upstream runs it +# (R-1117, 2026-10-18; a box that had immich_redis_data keeps that old volume, unused, +# until the app is removed) # # ⚠ EXTERNAL LIBRARY IS NOT WIRED BY COMPOSE: mounting /external/photos only makes the files # visible to the container. To actually surface them in Immich you MUST register an External @@ -129,11 +131,11 @@ services: image: redis:7-alpine container_name: immich-redis restart: unless-stopped - command: redis-server --appendonly no + command: redis-server --save "" --appendonly no environment: - TZ=Europe/Budapest - volumes: - - immich_redis_data:/data + tmpfs: + - /data networks: - immich-internal deploy: @@ -149,7 +151,6 @@ services: volumes: immich_ml_cache: immich_postgres_data: - immich_redis_data: networks: traefik-public: diff --git a/templates/nextcloud/docker-compose.yml b/templates/nextcloud/docker-compose.yml index b61cc35..7d1e0be 100644 --- a/templates/nextcloud/docker-compose.yml +++ b/templates/nextcloud/docker-compose.yml @@ -107,11 +107,11 @@ services: image: redis:7-alpine container_name: nextcloud-redis restart: unless-stopped - command: redis-server --appendonly no + command: redis-server --save "" --appendonly no environment: - TZ=Europe/Budapest - volumes: - - nextcloud_redis_data:/data + tmpfs: + - /data networks: - nextcloud-internal deploy: @@ -128,7 +128,6 @@ services: volumes: nextcloud_db_data: nextcloud_html: - nextcloud_redis_data: networks: traefik-public: