[GH-ISSUE #17048] issue: uv with postgresql fails on 0.6.26 due to psycopg2 requirement missing #33682

Closed
opened 2026-04-25 07:34:48 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @athoik on GitHub (Aug 29, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17048

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Other

Open WebUI Version

v0.6.26

Ollama Version (if applicable)

No response

Operating System

Debian 12

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using 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 every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

Updating the open-webui via uv package manager should work out of the box, wth postgresql.

UV_ENV_FILE=/opt/open-webui/.env DATA_DIR=/opt/open-webui/ uvx --python 3.11 open-webui==0.6.26 serve

Actual Behavior

Currently when using open-webui==0.6.26 (or open-webui@latest) it fails because the postgresql driver is not installed.

Steps to Reproduce

  1. Update to 0.6.26 using uv and having postgresql configured database (DATABASE_URL=....)
UV_ENV_FILE=/opt/open-webui/.env DATA_DIR=/opt/open-webui/ uvx --python 3.11 open-webui==0.6.26 serve
  1. issue appears on start
Installed 305 packages in 1.33s
Failed to initialize the database connection: Postgres driver not installed!

Logs & Screenshots

Image

Additional Information

Do we have to install manually the psycopg2 starting with v0.6.26 or use different syntax with uv?

Originally created by @athoik on GitHub (Aug 29, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/17048 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Other ### Open WebUI Version v0.6.26 ### Ollama Version (if applicable) _No response_ ### Operating System Debian 12 ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior Updating the open-webui via uv package manager should work out of the box, wth postgresql. ``` UV_ENV_FILE=/opt/open-webui/.env DATA_DIR=/opt/open-webui/ uvx --python 3.11 open-webui==0.6.26 serve ``` ### Actual Behavior Currently when using open-webui==0.6.26 (or open-webui@latest) it fails because the postgresql driver is not installed. ### Steps to Reproduce 1. Update to 0.6.26 using uv and having postgresql configured database (`DATABASE_URL=....`) ``` UV_ENV_FILE=/opt/open-webui/.env DATA_DIR=/opt/open-webui/ uvx --python 3.11 open-webui==0.6.26 serve ``` 2. issue appears on start ``` Installed 305 packages in 1.33s Failed to initialize the database connection: Postgres driver not installed! ``` ### Logs & Screenshots <img width="967" height="83" alt="Image" src="https://github.com/user-attachments/assets/053112be-3df6-41b7-91d1-06976492cb0d" /> ### Additional Information Do we have to install manually the `psycopg2` starting with v0.6.26 or use different syntax with `uv`?
GiteaMirror added the bug label 2026-04-25 07:34:48 -05:00
Author
Owner

@athoik commented on GitHub (Aug 30, 2025):

The following syntax works for me:

 UV_ENV_FILE=/opt/open-webui/.env DATA_DIR=/opt/open-webui/ uvx --python 3.11 'open-webui[postgres]@latest' serve

I guess a note can be added in docs: https://docs.openwebui.com/#2-run-open-webui

<!-- gh-comment-id:3239201797 --> @athoik commented on GitHub (Aug 30, 2025): The following syntax works for me: ``` UV_ENV_FILE=/opt/open-webui/.env DATA_DIR=/opt/open-webui/ uvx --python 3.11 'open-webui[postgres]@latest' serve ``` I guess a note can be added in docs: https://docs.openwebui.com/#2-run-open-webui
Author
Owner

@athoik commented on GitHub (Aug 30, 2025):

PR created on docs: https://github.com/open-webui/docs/pull/673

<!-- gh-comment-id:3239210961 --> @athoik commented on GitHub (Aug 30, 2025): PR created on docs: https://github.com/open-webui/docs/pull/673
Author
Owner

@rgaricano commented on GitHub (Aug 30, 2025):

Yes, in last release some libs now are optionals in pyproject:
2407d9b905/pyproject.toml (L143-L158)

(but its are instaled if pip install -r backend/requeriments.txt)

<!-- gh-comment-id:3239484262 --> @rgaricano commented on GitHub (Aug 30, 2025): Yes, in last release some libs now are optionals in pyproject: https://github.com/open-webui/open-webui/blob/2407d9b905978d68619bdce4021e424046ec8df9/pyproject.toml#L143-L158 (but its are instaled if `pip install -r backend/requeriments.txt`)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#33682