Database / BetterDB Interview questions
How does BetterDB Monitor persist license state across restarts?
License state, including the offline license and the online outage-grace token, is written under BETTERDB_DATA_DIR, which defaults to /app/data.
In Docker, that means you need to mount a writable volume there.
Because the container runs as UID 1001 rather than root, a freshly created Docker volume – typically owned by root – must be chowned to 1001 before first use, or persistence fails with an EACCES error writing license.jwt.
This is a separate concern from the analytics storage backend: even a deployment using Postgres for its analytics data still needs its own writable volume at BETTERDB_DATA_DIR purely for license state, so skipping that mount means the instance silently re-validates or reverts to Community on every restart even though everything else persisted correctly.
More Related questions...