mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[GH-ISSUE #20373] issue: webui.db stores full rooted path back to original RAG files in upload directory in files table #122486
Reference in New Issue
Block a user
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?
Originally created by @ttait1 on GitHub (Jan 5, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20373
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0,6,43
Ollama Version (if applicable)
No response
Operating System
Debian 13
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When moving the location of the DATA_DIR, the links back to the source files that were used to create the RAG knowledge should still work after the move. The upload path that is stored in the "file" table of webui.db should be relative to DATA_DIR.
Actual Behavior
The links back to the knowledge base source doc instead point to the fully rooted path of where the original location of the upload folder was, causing the links back to the original document at the top of the sources chunk to not work. This is a particular problem if moving from say native instance to docker instance or v.v.
Steps to Reproduce
Install open-webui native
Set DATA_DIR to a path where webui.db should be stored (other than /app/backend/data)
Start docker
launch browser to open-webui instance
Create a knowledge Collection
Add a file to the knowledge collection
Create a new chat
Attach knowledge collection
Make a prompt to query the collection with a known hit
click the sources link
click the link at the top with the original file name - This should open the original file that was stored in the upload dir
Shut down open-webui
spin up a docker instance of open-webui, and mount the previous DATA_DIR on /app/backend/data with line like " -v $DATA_DIR:/app/backend/data"
launch browser to open-webui instance
Create a knowledge Collection
Add a file to the knowledge collection
Create a new chat
Attach knowledge collection
Make a prompt to query the collection with a known hit
click the sources link
click the link at the top with the original file name - This should open the original file that was stored in the upload dir, but it will fail with an error
Logs & Screenshots
logs were destroyed along with docker instance
Additional Information
Work-around is open the webui.db in a Db browser, open the file table, and search/replace on it to replace the old path to upload with the new path.
@owui-terminator[bot] commented on GitHub (Jan 5, 2026):
🔍 Similar Issues Found
I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
by flefevre • Nov 18, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.