Previously, the connection logic incorrectly stripped the leading slash from sqlite+sqlcipher paths, forcibly converting absolute paths (e.g., sqlite+sqlcipher:////app/data.db) into relative paths (which became app/data.db). This caused database initialization failures when using absolute paths, such as with Docker volume mounts.
This change removes the slash-stripping logic, ensuring that absolute path conventions (starting with /) are respected while maintaining support for relative paths (which do not start with /).
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
Note
Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/20074
**Author:** [@Classic298](https://github.com/Classic298)
**Created:** 12/21/2025
**Status:** ✅ Merged
**Merged:** 12/21/2025
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `dev`
---
### 📝 Commits (6)
- [`08ddf0d`](https://github.com/open-webui/open-webui/commit/08ddf0d606a75e1747fa23845b05fae6e678bdeb) sequential
- [`d11de16`](https://github.com/open-webui/open-webui/commit/d11de164d28813ded7fa677b1e036df85deb0fe6) Merge branch 'open-webui:dev' into dev
- [`66352dc`](https://github.com/open-webui/open-webui/commit/66352dc5a9656af278dedd49a4b1af11cb7ea2ea) zero default
- [`c16aff0`](https://github.com/open-webui/open-webui/commit/c16aff00f33c57c11ace4a7f30aee20de7b64a10) fix
- [`7acb389`](https://github.com/open-webui/open-webui/commit/7acb38977863845ebb8df0b8f78d7d0e109b262e) fix: preserve absolute paths in sqlite+sqlcipher URLs
- [`3e31cdc`](https://github.com/open-webui/open-webui/commit/3e31cdcef62032858b08452f7c2122647a15dfdc) Merge branch 'open-webui:dev' into dev
### 📊 Changes
**2 files changed** (+2 additions, -4 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/internal/db.py` (+1 -2)
📝 `backend/open_webui/internal/wrappers.py` (+1 -2)
</details>
### 📄 Description
Fixes: https://github.com/open-webui/open-webui/issues/20051#issuecomment-3678747823
Previously, the connection logic incorrectly stripped the leading slash from `sqlite+sqlcipher` paths, forcibly converting absolute paths (e.g., `sqlite+sqlcipher:////app/data.db`) into relative paths (which became `app/data.db`). This caused database initialization failures when using absolute paths, such as with Docker volume mounts.
This change removes the slash-stripping logic, ensuring that absolute path conventions (starting with `/`) are respected while maintaining support for relative paths (which do not start with `/`).
### Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms.
> [!NOTE]
> Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/20074
Author: @Classic298
Created: 12/21/2025
Status: ✅ Merged
Merged: 12/21/2025
Merged by: @tjbck
Base:
dev← Head:dev📝 Commits (6)
08ddf0dsequentiald11de16Merge branch 'open-webui:dev' into dev66352dczero defaultc16aff0fix7acb389fix: preserve absolute paths in sqlite+sqlcipher URLs3e31cdcMerge branch 'open-webui:dev' into dev📊 Changes
2 files changed (+2 additions, -4 deletions)
View changed files
📝
backend/open_webui/internal/db.py(+1 -2)📝
backend/open_webui/internal/wrappers.py(+1 -2)📄 Description
Fixes: https://github.com/open-webui/open-webui/issues/20051#issuecomment-3678747823
Previously, the connection logic incorrectly stripped the leading slash from
sqlite+sqlcipherpaths, forcibly converting absolute paths (e.g.,sqlite+sqlcipher:////app/data.db) into relative paths (which becameapp/data.db). This caused database initialization failures when using absolute paths, such as with Docker volume mounts.This change removes the slash-stripping logic, ensuring that absolute path conventions (starting with
/) are respected while maintaining support for relative paths (which do not start with/).Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.