Replies: 1 comment
-
|
The most common reason for losing all records after restarting Dify with Docker Compose is a problem with data persistence—usually the database or storage volumes were not mapped to persistent host directories, or those directories were deleted, empty, or inaccessible. Even if your docker-compose.yaml looks correct, double-check that your host directories (like Other frequent causes include running For production, use PostgreSQL instead of SQLite, as SQLite is file-based and unreliable in Docker unless the database file is mounted to a persistent volume. If you must use SQLite, ensure your Compose file mounts a persistent volume for the database file and implement regular backups reference. If your database files are present but you still can't log in or see your data, check for authentication/configuration issues like mismatched CORS or API URL environment variables, token expiration, or clock skew between containers. These can cause symptoms similar to data loss even if the database is intact reference. To prevent future data loss: always back up your volumes, mark critical volumes as external in your Compose file, keep your To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
After the Dify Docker Compose installation was brought down, when brought back up, there were no previous records.Knowledge base, plugins, and user information were lost.
Beta Was this translation helpful? Give feedback.
All reactions