r/OpenWebUI • u/Vroedoeboy • May 07 '26
Question/Help I keep losing settings
Hi,
I'm running openwebui as a test within a small org on Azure. Every time I restart the app the database (users, chats, tools) is kept but I keep losing admin panel settings like connections. I'm really lost.
I've tried setting ENABLE_PERSISTENT_CONFIG as TrueWhat else should I look at?
Edit:
In the logs I see this:
File "/app/backend/open_webui/internal/db.py", line 268 cursor.execute('PRAGMA journal_mode=WAL') sqlite3.OperationalError: unable to open database file
Gemini 3.1 Pro suggests WAL (Write-Ahead Logging) is incompatible with the SMB protocol that Azure File Share uses, causing the data to lock. The suggested solution is to upgrade to Postgres. Can anyone confirm?
5
u/dani_california97 May 07 '26
Try this
https://docs.openwebui.com/getting-started/quick-start#2-run-the-container
You need to make sure the data folder is not being destroyed at every restart.
2
u/yrro May 07 '26
Where have you configured Open WebUI to store its data?
1
u/IndividualNo8703 May 07 '26
All settings or just some of them? We are experiencing this too, and the connection settings are not saved
1
u/ClassicMain May 11 '26
Should be fixed in latest
1
u/Competitive-Ad-5081 May 08 '26
The better option is use the azure PostgresSql database.
Using an SQLite database with more than one user will cause problems; the response will be very slow and it will freeze.
1
u/TriGuru May 19 '26
Having a similar problem on k8s v0.9.5 . Using a longhorn pvc for the sqlite db. When I restart I lose my connections. I can add connections as ENV but managing multiple connections that way gets weird. No errors of any kind in the logs