mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #18223] issue: Redis exception in ydoc manager when working with aws elasticache #34065
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 @pierfrancesto on GitHub (Oct 10, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18223
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
0.6.33
Ollama Version (if applicable)
No response
Operating System
ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
The application should interact with Redis on AWS ElastiCache without throwing exceptions or losing messages.
Actual Behavior
Occasionally, the application raises the following exception during normal operation without breaking the service:
redis.exceptions.ResponseError: unknown command 'keys', with args beginning with: {open-webui}:ydoc:documents:*When this occurs, a message in process may be lost.
(Full error log attached below.)
Steps to Reproduce
I do not have consistent reproduction steps. The issue occurs sporadically under normal usage conditions.
Environment
OS: Ubuntu 22.04
Python: 3.12 (inside virtual environment)
Key Environment Variables:
Also tested with:
Redis-compatible service: Valkey 8.1 (AWS ElastiCache)
Logs & Screenshots
Traceback (most recent call last): File "/app/openwebui/venv/lib/python3.12/site-packages/engineio/async_server.py", line 509, in run_async_handler return await self.handlers[event](*args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/openwebui/venv/lib/python3.12/site-packages/socketio/async_server.py", line 709, in _handle_eio_disconnect await self._handle_disconnect(eio_sid, n, reason) File "/app/openwebui/venv/lib/python3.12/site-packages/socketio/async_server.py", line 586, in _handle_disconnect await self._trigger_event('disconnect', namespace, sid, File "/app/openwebui/venv/lib/python3.12/site-packages/socketio/async_server.py", line 644, in _trigger_event ret = await handler(*args[:-1]) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/openwebui/venv/lib/python3.12/site-packages/open_webui/socket/main.py", line 635, in disconnect await YDOC_MANAGER.remove_user_from_all_documents(sid) File "/app/openwebui/venv/lib/python3.12/site-packages/open_webui/socket/utils.py", line 184, in remove_user_from_all_documents keys = await self._redis.keys(f"{self._redis_key_prefix}:*") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/openwebui/venv/lib/python3.12/site-packages/redis/asyncio/client.py", line 677, in execute_command return await conn.retry.call_with_retry( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/openwebui/venv/lib/python3.12/site-packages/redis/asyncio/retry.py", line 50, in call_with_retry return await do() ^^^^^^^^^^ File "/app/openwebui/venv/lib/python3.12/site-packages/redis/asyncio/client.py", line 652, in _send_command_parse_response return await self.parse_response(conn, command_name, **options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/openwebui/venv/lib/python3.12/site-packages/redis/asyncio/client.py", line 698, in parse_response response = await connection.read_response() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/openwebui/venv/lib/python3.12/site-packages/redis/asyncio/connection.py", line 627, in read_response raise response from None redis.exceptions.ResponseError: unknown command 'keys', with args beginning with: {open-webui}:ydoc:documents:*Additional Information
This report follows up on issue #15834, whose last comment was on August 25.
The original reporter suggested opening a new issue because there have been PR merges aimed at fixing this problem, but the error still occurs in my setup.
@silentoplayz commented on GitHub (Oct 10, 2025):
Please give your issue a title.
@tjbck commented on GitHub (Oct 11, 2025):
Keep us updated!