mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #15074] issue: Redis in Cluster Mode - Keys in request don't hash to the same slot #32985
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 @taylorwilsdon on GitHub (Jun 17, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15074
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.15
Ollama Version (if applicable)
No response
Operating System
Ubuntu
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Configuring redis maintains state for application config and orchestrates tasks and websockets.
Actual Behavior
Steps to Reproduce
Configure Open WebUI with websockets enabled and point at a cluster mode or serverless Redis engine 8 compatible instance:
Logs & Screenshots
Additional Information
There is a relatively simple fix that should just drop in without issue:
just adding
{open-webui}:prefix to existing key patterns (ie{open-webui}:config:*instead ofopen-webui:config:*will allow multi-key operations work for config keys when operating in cluster mode.@taylorwilsdon commented on GitHub (Jun 17, 2025):
Hey @tjbck I can push up a fix but wanted to check with you first which approach you'd prefer:
REDIS_KEY_PREFIX) so that those who don't care can use as-is and those who need cluster mode can drop in{open-webui}:config:@tjbck commented on GitHub (Jun 18, 2025):
REDIS_KEY_PREFIXsounds reasonable, PR welcome!@srdosramos commented on GitHub (Jun 26, 2025):
Similar error happens on a kubernetes with multiple instances of the docker image, the chats throws
Since version 6.1.4, i tracked the error to this code
backend/open_webui/tasks.py
at the beginnig of the file they define the prefix but they are hardcoded no readed from enviroment variables
@IgorFZ commented on GitHub (Jun 27, 2025):
Same error here, version 0.6.15:
@taylorwilsdon commented on GitHub (Jun 28, 2025):
ok - PR up @ https://github.com/open-webui/open-webui/pull/15380
@IgorFZ or @srdosramos let me know if this resolves your issues!
@davidshen84 commented on GitHub (Jul 18, 2025):
Hi, I upgraded to the latest Docker image v0.6.16, but I still got this error message. Do I need to change any configuration after the upgrade?
@taylorwilsdon commented on GitHub (Jul 18, 2025):
By default, the PR introduces the ability to change the key - it doesn't actually change it unless you set the env var
Setting env REDIS_KEY_PREFIX to
{open-webui}should be your solve if the issue was the same as mine (cluster mode redis)