Skip to content
Menu

Troubleshooting & Recovery

Florabase fails closed on misconfiguration: when db or backend refuses to start, check docker compose logs db backend. Every refusal states the exact reason, and no data is modified.

Log message Cause & resolution
bind source path does not exist The host data or backup folder does not exist, or its storage volume is not mounted. Mount or create the path; never let Docker auto-create an empty root-owned folder.
missing required folder ... / has owner ..., expected ... / has mode ..., expected ... A required subfolder (postgres, media, state, pre-upgrade) is missing or has the wrong UID/GID or permissions. Re-run the one-time folder setup block and redeploy.
... exists and there is no installation marker; use an empty data folder The data directory already contains files that do not belong to a Florabase installation. Point to a fresh empty folder or perform an isolated restore.
the installation marker exists but its database folder is missing or empty PostgreSQL files are missing or the wrong folder is mounted. Fix the bind path or restore from a paired backup.
the installation uses PostgreSQL N, this image M A PostgreSQL major version jump requires a dedicated migration procedure. Deploy the previous image tag.
the database folder belongs to another PostgreSQL cluster state/installation.env and postgres/ come from different installations. Restore a matching paired backup.
the data and backup folders are the same (or nested inside each other) Data and backup host mounts must be completely separate directories. Move the backup folder outside $DATA.
set both FLORABASE_OWNER_LOGIN and FLORABASE_OWNER_PASSWORD, or neither / first owner refused Supply both valid owner variables on first run (password ≥ 12 chars), or omit both and bootstrap offline.
pre-upgrade backup failed / backup directory ... is missing or not writable $BACKUP/pre-upgrade is unwritable or disk space is full. Fix permissions or free space and redeploy — no migration was applied.
previous upgrade from ... to ... failed ... remove state/upgrade-failed.env before redeploying A prior migration rolled back safely after saving a verified pre-upgrade dump. Inspect the earlier backend log, fix the cause (or restore), delete $DATA/state/upgrade-failed.env, and redeploy.
database revision ... is neither image head ... nor the previous release head The database schema comes from a newer, older, or unknown release. Deploy the matching release tag or upgrade step by step.
differs from image head (release_schema serve) The guarded start step did not finish migrating the schema. Check earlier lines in florabase-backend logs.

From a trusted, unrecorded SSH session on the Docker host (with db healthy), stop frontend and backend and run the offline password reset command:

Terminal window
project=florabase
dc() { docker compose --project-name "$project" --file compose.yaml "$@"; }
dc stop frontend backend
dc run --rm --no-deps backend python -m florabase.auth.reset_password '<login-name>'
dc up -d --wait

The command updates the password hash interactively (without echoing it), revokes all existing sessions, clears sign-in backoff, and never runs schema migrations.

Stopping or removing the Compose stack deletes only containers and internal Docker networks. Your host $DATA and $BACKUP folders remain untouched on disk. Delete them only after verifying an off-host encrypted backup.