mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #16552] [CLOSED] debug: add comprehensive startup instrumentation for air-gapped deployments #39797
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/16552
Author: @RCastillo-Clave
Created: 8/13/2025
Status: ❌ Closed
Base:
main← Head:feature/fix-owui-startup-hanging📝 Commits (10+)
9c8e401feat(owui): Update package dependencies and add READMEs. Fixes issue #1.95f05abfix(ci): Increase Node.js memory for frontend buildcad1298Silent test commit79caf9dbuild: Ignore docker build artifact3a371e7Feature: modify Dockerfile to generate an authn token to the DB714a762Merge branch 'open-webui:main' into feature/owui-db-support6825620Merge pull request #1 from clavesec/feature/owui-db-support8c9e50bEnable VSCode debugging for Open WebUI in Dockerb1e0609fix: dockerfile and entrypoint for debugging in VSCode3b5bab4fix: merge feat/vscode-docker-debug for local Docker debugging rig📊 Changes
35 files changed (+3253 additions, -133 deletions)
View changed files
📝
.gitignore(+6 -0)➕
.vscode/launch.json(+24 -0)➕
AWS_INTEGRATION_MEMO_FOR_TOM.md(+454 -0)➕
DATABASE_VERIFICATION_QUERIES.sql(+263 -0)➕
DEBUG_OUTPUT_ANALYSIS_GUIDE.md(+296 -0)➕
DOCKER_BUILD_TEST_INSTRUCTIONS.md(+233 -0)📝
Dockerfile(+44 -4)📝
README.md(+4 -0)➕
backend/docker-entrypoint.sh(+119 -0)➕
backend/open_webui/README_IAM_DB.md(+16 -0)📝
backend/open_webui/env.py(+14 -0)📝
backend/open_webui/internal/db.py(+103 -6)📝
backend/open_webui/internal/wrappers.py(+77 -4)📝
backend/open_webui/main.py(+57 -3)📝
backend/open_webui/migrations/env.py(+41 -1)➕
backend/open_webui/migrations/versions/c4a3b2d1e0f_add_encryption_fields_to_user.py(+42 -0)📝
backend/open_webui/models/auths.py(+149 -30)➕
backend/open_webui/models/db_encryption_shim.py(+250 -0)📝
backend/open_webui/models/users.py(+108 -44)📝
backend/open_webui/retrieval/vector/dbs/pgvector.py(+37 -3)...and 15 more files
📄 Description
Summary
Add detailed logging and instrumentation to diagnose startup issues in air-gapped environments.
Changes
FastAPI Lifespan Instrumentation
Database Migration Debugging
Database Connection Instrumentation
register_connectionfunctionImport-Level Debugging
Technical Details
print()andlog.info()for visibility even when logger not initializedImpact
Notes
This instrumentation was essential for identifying that startup failures were caused by external network calls during module imports, not database or Redis issues.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.