[GH-ISSUE #10792] Failed to initialize the database connection: unable to open database file #16033

Closed
opened 2026-04-19 22:04:57 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @pyhundan on GitHub (Feb 26, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10792

Bug Report

Installation Method

Use Development Guide to install open-webui

Environment

  • Open WebUI Version: [e.g., v0.3.11]

  • Ollama (if applicable): N/A

  • Operating System: [e.g., macOS Monterey]

  • Browser (if applicable): [e.g., Chrome 100.0, Firefox 98.0]

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

Once the front end is running, the entire project can be executed by running the back end normally.

Actual Behavior:

Clone the Repository:

git clone https://github.com/open-webui/open-webui.git
cd open-webui

Frontend Setup:

npm install

npm run dev

Backend Setup

cd backend

conda create --name open-webui python=3.11
conda activate open-webui

pip install -r requirements.txt -U

sh dev.sh

Description

Bug Summary:
Failed to initialize the database connection: unable to open database file

Reproduction Details

Steps to Reproduce:
Clone the Repository:

git clone https://github.com/open-webui/open-webui.git
cd open-webui

Frontend Setup:

npm install

npm run dev

Backend Setup

cd backend

conda create --name open-webui python=3.11
conda activate open-webui

pip install -r requirements.txt -U

sh dev.sh

Logs and Screenshots

Screenshots/Screen Recordings (if applicable):

Image

Additional Information

I have used the root user to set the project folder to be readable and writable by everyone, and checked the packages installed in Python. Both sqlite and peewee have been installed, but it still shows that the database file cannot be opened.

Originally created by @pyhundan on GitHub (Feb 26, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/10792 # Bug Report ## Installation Method [Use Development Guide to install open-webui](https://docs.openwebui.com/getting-started/advanced-topics/development) ## Environment - **Open WebUI Version:** [e.g., v0.3.11] - **Ollama (if applicable):** N/A - **Operating System:** [e.g., macOS Monterey] - **Browser (if applicable):** [e.g., Chrome 100.0, Firefox 98.0] **Confirmation:** - I have read and followed all the instructions provided in the README.md. - I am on the latest version of both Open WebUI and Ollama. - [ ] I have included the browser console logs. - [ ] I have included the Docker container logs. - I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: Once the front end is running, the entire project can be executed by running the back end normally. ## Actual Behavior: **Clone the Repository**: ``` git clone https://github.com/open-webui/open-webui.git cd open-webui ``` **Frontend Setup**: ``` npm install npm run dev ``` **Backend Setup** ``` cd backend conda create --name open-webui python=3.11 conda activate open-webui pip install -r requirements.txt -U sh dev.sh ``` ## Description **Bug Summary:** `Failed to initialize the database connection: unable to open database file` ## Reproduction Details **Steps to Reproduce:** **Clone the Repository**: ``` git clone https://github.com/open-webui/open-webui.git cd open-webui ``` **Frontend Setup**: ``` npm install npm run dev ``` **Backend Setup** ``` cd backend conda create --name open-webui python=3.11 conda activate open-webui pip install -r requirements.txt -U sh dev.sh ``` ## Logs and Screenshots **Screenshots/Screen Recordings (if applicable):** ![Image](https://github.com/user-attachments/assets/b780a607-b69a-47b2-bb54-a928168d99f7) ## Additional Information I have used the root user to set the project folder to be readable and writable by everyone, and checked the packages installed in Python. Both sqlite and peewee have been installed, but it still shows that the database file cannot be opened.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#16033