[GH-ISSUE #18223] issue: Redis exception in ydoc manager when working with aws elasticache #34065

Closed
opened 2026-04-25 07:58:58 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @pierfrancesto on GitHub (Oct 10, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18223

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I am using the latest version of Open WebUI.

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

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

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:

  • REDIS_KEY_PREFIX="{open-webui}"
  • ENABLE_WEBSOCKET_SUPPORT="true"
  • WEBSOCKET_MANAGER="redis"
    Also tested with:
  • REDIS_CLUSTER=True

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.

Originally created by @pierfrancesto on GitHub (Oct 10, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/18223 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I am using the latest version of Open WebUI. ### 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 - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### 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: - REDIS_KEY_PREFIX="{open-webui}" - ENABLE_WEBSOCKET_SUPPORT="true" - WEBSOCKET_MANAGER="redis" _Also tested with:_ - REDIS_CLUSTER=True 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.
GiteaMirror added the bug label 2026-04-25 07:58:58 -05:00
Author
Owner

@silentoplayz commented on GitHub (Oct 10, 2025):

Please give your issue a title.

<!-- gh-comment-id:3392484785 --> @silentoplayz commented on GitHub (Oct 10, 2025): Please give your issue a title.
Author
Owner

@tjbck commented on GitHub (Oct 11, 2025):

Keep us updated!

<!-- gh-comment-id:3393623395 --> @tjbck commented on GitHub (Oct 11, 2025): Keep us updated!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#34065