docs: write pending changes into webui.db before exporting it - #1441
Merged
silentoplayz merged 1 commit intoSep 29, 2026
Merged
Conversation
Open WebUI runs SQLite in WAL mode by default since v0.9.0, and a clean `docker stop` leaves recent committed changes in webui.db-wal. The export steps copied webui.db alone, so the copy could miss them. Add a step that runs PRAGMA wal_checkpoint(TRUNCATE) from the container's own image while it is stopped, using the same --volumes-from pattern the import step already uses, and add the line to the quick-commands summary. The import steps are unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The export steps on the database page stop the container and then copy
webui.dbon its own. Open WebUI runs SQLite in WAL mode by default since v0.9.0, and a cleandocker stopleaves recent committed changes inwebui.db-wal, so that copy can be missing them. On a freshly set up instance,webui.dbalone held no users and no chats at all.This adds one export step that writes the pending changes into
webui.dbwith a checkpoint. It runs from the container's own image while the container is stopped, and the quick-commands summary gets the same line. The first step's sentence now says why the container is stopped. The import steps are unchanged.Related issue or discussion
None.
Checklist
Notes for reviewers
v0.11.4and on thedevimage (176d31d1d), each stopped withdocker stop(exit code 0). In each run, thewebui.dbcopied without the new step was missing the rows written since the container last started. After it, the copy had all of them, and the page's import steps on a fresh install brought every one across.sqlite3binary. It follows the--volumes-frompattern the import step already uses forrm. On a database with WAL turned off, the pragma returns(0, -1, -1)and changes nothing.