From 960a480cee35ce355413825117d8126df3c38919 Mon Sep 17 00:00:00 2001 From: Michael Sloan <89812914+Michael-A-Sloan@users.noreply.github.com> Date: Mon, 23 Nov 2026 22:17:02 -0500 Subject: [PATCH] Create Fluxer data folders before the Compose bind mounts. Docker will not create the local volume devices, so the first deploy fails if those directories are missing. --- docs/WORKING-NOTES.md | 2 +- scripts/init-compose-env.sh | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/WORKING-NOTES.md b/docs/WORKING-NOTES.md index 1930037..329258d 100644 --- a/docs/WORKING-NOTES.md +++ b/docs/WORKING-NOTES.md @@ -182,7 +182,7 @@ Compose Manager Plus clones this repository under its own appdata path and deplo The stack `.env` is `/boot/config/plugins/compose.manager/projects/fluxer/.env`. It is not in git. `scripts/init-compose-env.sh` writes it after the stack exists and refuses to replace a file that already has a Postgres password. `compose/.env.example` lists only the names that script sets, because Compose Manager Plus requires every name in `.env.example` to be present before deploy. The full Fluxer catalog is `compose/fluxer.env.reference` so it is not that check list. -Compose Manager Plus creates missing bind folders under an existing share such as `/mnt/user/appdata`. A typo in the share name stops the deploy. +The override uses the local volume driver with a bind device. Docker does not create those directories. `init-compose-env.sh` creates the eight folders under `/mnt/user/appdata/fluxer` before it writes `.env`. A missing folder fails the deploy with `no such file or directory` while mounting `fluxer_meilisearch-data`. The "kernel does not support swap limit" lines are warnings and are not the failure. ## Community Apps and the plugin diff --git a/scripts/init-compose-env.sh b/scripts/init-compose-env.sh index 49f8371..091e4b4 100644 --- a/scripts/init-compose-env.sh +++ b/scripts/init-compose-env.sh @@ -38,10 +38,20 @@ if [[ -z "$OUT" ]]; then exit 1 fi +# The local bind volumes fail at deploy if these directories do not already exist. +mkdir -p /mnt/user/appdata/fluxer/edge-data \ + /mnt/user/appdata/fluxer/edge-config \ + /mnt/user/appdata/fluxer/postgres \ + /mnt/user/appdata/fluxer/valkey \ + /mnt/user/appdata/fluxer/nats \ + /mnt/user/appdata/fluxer/meilisearch \ + /mnt/user/appdata/fluxer/seaweedfs \ + /mnt/user/appdata/fluxer/media-proxy-tmp + if [[ -f "$OUT" ]] && grep -q '^POSTGRES_PASSWORD=.\+' "$OUT"; then + echo "Data folders are ready." echo "Refusing to replace secrets already in $OUT" >&2 - echo "Delete that file first if you really want a new one." >&2 - exit 1 + exit 0 fi tmp="$(mktemp)"