From c7ef6025afa36918c4fac0c0fa3b7095d4312330 Mon Sep 17 00:00:00 2001 From: Taehong Gu Date: Thu, 19 Jun 2025 19:15:39 +0900 Subject: [PATCH] Provide more detailed information to the user upon database connection failure modified: backend/open_webui/internal/db.py --- backend/open_webui/internal/db.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/open_webui/internal/db.py b/backend/open_webui/internal/db.py index 840f571cc..1f02ba5b4 100644 --- a/backend/open_webui/internal/db.py +++ b/backend/open_webui/internal/db.py @@ -62,6 +62,7 @@ def handle_peewee_migration(DATABASE_URL): except Exception as e: log.error(f"Failed to initialize the database connection: {e}") + log.warning("Hint: If your database password contains special characters, you may need to URL-encode it.") raise finally: # Properly closing the database connection