mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #19401] issue: Redis Sentinel Authentication Bug - Password Not Passed to Sentinel Client #34391
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?
Originally created by @andrescabana86 on GitHub (Nov 23, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19401
Check Existing Issues
Installation Method
Other
Open WebUI Version
v0.6.36
Ollama Version (if applicable)
No response
Operating System
Kubernetes on Debian 12
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When configuring Open WebUI to connect to Redis via Sentinel with authentication enabled, the application should:
REDIS_URLActual Behavior
Open WebUI fails to authenticate with Redis Sentinel, resulting in a crash loop with the following error:
Key observation in error:
username=None,password=None- the password is NOT being passed to Sentinel.Steps to Reproduce
Environment Setup
Deploy Open WebUI
Observe application crash loop with authentication error
Logs & Screenshots
Error from container logs:
Verification that Sentinel works with correct authentication:
The error logs show that the connection object has
username=None,password=None, confirming that the credentials are being silently ignored by the Sentinel constructor.The
redis.sentinel.Sentinel()constructor does NOT acceptpasswordas a direct parameter. According to the redis-py documentation, authentication credentials must be passed via thesentinel_kwargsparameter:Additional Information
Until this is fixed, the only workaround is to connect directly to the master Redis node instead of using Sentinel:
Proposed Fix
Update
/backend/open_webui/utils/redis.pyto pass authentication credentials correctly:Async Mode (Lines 136-145):
Related Issues/PRs
@tjbck commented on GitHub (Nov 25, 2025):
Open to reviewing PRs!