mirror of
https://github.com/open-webui/docs.git
synced 2026-11-05 01:38:13 +00:00
[PR #1441] [MERGED] docs: write pending changes into webui.db before exporting it #1404
Labels
No labels
bug
documentation
documentation
duplicate
enhancement
enhancement
good first issue
good first issue
good first issue
help wanted
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/docs#1404
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/docs/pull/1441
Author: @silentoplayz
Created: 9/29/2026
Status: ✅ Merged
Merged: 9/29/2026
Merged by: @silentoplayz
Base:
main← Head:docs/database-export-wal📝 Commits (1)
130da3ddocs: write pending changes into webui.db before exporting it📊 Changes
1 file changed (+11 additions, -4 deletions)
View changed files
📝
docs/tutorials/maintenance/database.mdx(+11 -4)📄 Description
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.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.