Skip to content

feat: migrate Open WebUI to PostgreSQL on glyph#363

Merged
stackptr merged 1 commit intomainfrom
feat/open-webui-postgresql
Mar 11, 2026
Merged

feat: migrate Open WebUI to PostgreSQL on glyph#363
stackptr merged 1 commit intomainfrom
feat/open-webui-postgresql

Conversation

@stackptr
Copy link
Copy Markdown
Owner

@stackptr stackptr commented Mar 11, 2026

Summary

  • Open WebUI now uses local PostgreSQL instead of SQLite for improved reliability and backup support
  • Added open-webui database, user, and backup entry to the centralized PostgreSQL configuration
  • Set DATABASE_URL in Open WebUI environment to connect via Unix socket

Migration steps

  1. Deploy glyph to create the database
  2. Stop the open-webui service
  3. Migrate user/OIDC data from SQLite to PostgreSQL. Open WebUI stores its SQLite DB in /var/lib/open-webui. Use pgloader or the open-webui export/import feature to transfer user accounts and OIDC config. Chat history migration is not needed.
  4. Restart open-webui — it will use PostgreSQL

Test plan

  • Verify chat.zx.dev loads
  • OIDC login works via Pocket ID
  • Existing user accounts are present after migration

🤖 Generated with Claude Code

Configure Open WebUI to use the local PostgreSQL instance instead of
SQLite for improved reliability and backup support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@stackptr stackptr force-pushed the feat/open-webui-postgresql branch from 064ade5 to 20429cb Compare March 11, 2026 20:55
@stackptr stackptr merged commit 237a8de into main Mar 11, 2026
4 checks passed
stackptr added a commit that referenced this pull request Mar 12, 2026
The PostgreSQL migration (#363) set DATABASE_URL but the default
open-webui package doesn't include the psycopg2 driver. Include the
postgres optional dependencies (psycopg2-binary, pgvector).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
stackptr added a commit that referenced this pull request Mar 12, 2026
The PostgreSQL migration (#363) set DATABASE_URL but the default
open-webui package doesn't include the psycopg2 driver. Include the
postgres optional dependencies (psycopg2-binary, pgvector).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant