Why your previous attempts didn’t work
I believe this happened because:
- Duplicati was first started without a valid
SETTINGS_ENCRYPTION_KEY - That created an incomplete / invalid settings database
- Changing env vars afterwards does not fix an already-created DB
- So the container keeps restarting and the UI shows Service Unavailable
This is normal Duplicati behaviour, not a ZimaOS bug.
The correct fix (safe and simple)
I suggest doing a clean reset of the Duplicati config only and recreating the container once with a proper key.
Step 1 – Stop and remove the container (safe)
This does not delete your backups.
sudo docker rm -f duplicati
Step 2 – Remove ONLY the config database
Safety note:
Do not touch /DATA/Duplicati/backups or your source folders.
Only remove the config folder.
sudo rm -rf /DATA/AppData/duplicati/config/*
This removes the broken settings DB so Duplicati can recreate it cleanly.
Step 3 – Recreate Duplicati with a real encryption key
I suggest using the ZimaOS App UI or CLI, but not both.
If using environment variables, make sure they are exactly:
SETTINGS_ENCRYPTION_KEY(no typos)- Any non-trivial string (not
1234)
Example (CLI reference):
-e SETTINGS_ENCRYPTION_KEY=ThisIsMyDuplicatiKey123
You can also omit DUPLICATI__DISABLE_DB_ENCRYPTION entirely — the default encrypted DB is fine.
After restart
Once the container starts again:
- Open
http://<zima-ip>:8200 - The setup wizard should load immediately
- No more “Service Unavailable”
Extra safety clarification
- The encryption key is only for the internal settings database
- It is not your backup password
- Losing it only affects the UI config, not your backup files
If it still doesn’t come up after that, the next step would simply be:
sudo docker logs duplicati
but I believe this reset will resolve it cleanly.