[PR #2873] [MERGED] check if sqlite folder exists #3171

Closed
opened 2026-03-03 09:41:42 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/2873
Author: @stefan0xC
Created: 10/27/2022
Status: Merged
Merged: 12/1/2022
Merged by: @dani-garcia

Base: mainHead: check-sqlite-folder


📝 Commits (2)

  • 2f9d706 check if sqlite folder exists
  • 5a13efe only check sqlite parent if there could be one

📊 Changes

2 files changed (+14 additions, -13 deletions)

View changed files

📝 src/config.rs (+9 -1)
📝 src/db/mod.rs (+5 -12)

📄 Description

Instead of creating the parent folders to a sqlite database vaultwarden should just exit.

This should fix most issues like #2835 where a wrongly configured DATABASE_URL falls back to using sqlite.

Fixes #2873


🔄 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/dani-garcia/vaultwarden/pull/2873 **Author:** [@stefan0xC](https://github.com/stefan0xC) **Created:** 10/27/2022 **Status:** ✅ Merged **Merged:** 12/1/2022 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `check-sqlite-folder` --- ### 📝 Commits (2) - [`2f9d706`](https://github.com/dani-garcia/vaultwarden/commit/2f9d7060bd966007bb3ac6435463a1389073d9b3) check if sqlite folder exists - [`5a13efe`](https://github.com/dani-garcia/vaultwarden/commit/5a13efefd3e551e4fd47e2d748f6dab31ef1118d) only check sqlite parent if there could be one ### 📊 Changes **2 files changed** (+14 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `src/config.rs` (+9 -1) 📝 `src/db/mod.rs` (+5 -12) </details> ### 📄 Description Instead of creating the parent folders to a sqlite database vaultwarden should just exit. This should fix most issues like #2835 where a wrongly configured `DATABASE_URL` falls back to using sqlite. Fixes #2873 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 09:41:42 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#3171
No description provided.