mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #20142] issue: YDocManager's remove_user_from_all_documents throws on websocket disconnect (with Redis Sentinel) #19099
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 @Ithanil on GitHub (Dec 23, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20142
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
0.6.43
Ollama Version (if applicable)
No response
Operating System
Debian 13
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
No error logs appearing when client's websocket is closed.
Actual Behavior
Error logs appear when client's websocket is closed (and session likely remains in SESSION_POOL).
Steps to Reproduce
Logs & Screenshots
Additional Information
I suspect the issue has been introduced by https://github.com/open-webui/open-webui/pull/19871 /
8e661a4e73, because it does not happen with Open WebUI 0.6.40, which does not contain that commit yet and nothing else seems related.Also, here is what GPT-5.2-Codex had to say when fed with the logs and repo as context:
@owui-terminator[bot] commented on GitHub (Dec 23, 2025):
🔍 Similar Issues Found
I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
#19662 issue: Cannot logout properly
by man2004 • Dec 01, 2025 •
bug#19805 issue: did we lose most of docling configuration options in v0.6.41?
by eleaner • Dec 08, 2025 •
bug#19974 issue: DOCX not parsed correctly in temporary chat
by sspeekenbrink • Dec 15, 2025 •
bug#14521 issue:batch deleting users
by Wiziechen • May 30, 2025 •
bug#20092 issue:
by VideoRyan • Dec 22, 2025 •
bugShow 5 more related issues
#19877 issue:
by dotmobo • Dec 11, 2025 •
bug#19861 issue:
by QuitHub • Dec 10, 2025 •
bug#20019 issue:
by j63440490 • Dec 17, 2025 •
bug#17786 issue: LDAP connections are not closed
by NegaScout • Sep 26, 2025 •
bug#15671 issue: active directory users can't delete chats (or chat folders)
by mmars13 • Jul 12, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
@Ithanil commented on GitHub (Dec 23, 2025):
One possible fix (reverting to previous code for Redis Sentinel):
Obviously works, because the previous code worked. But not nice.
Another more elegant possibility (to be tested):
EDIT: Tested, works too.
Third option would be to see how this can be handled in
SentinelRedisProxy(which I still think shouldn't be necessary in the first place), but I won't explore that option.@Ithanil commented on GitHub (Dec 23, 2025):
Actually I explored option 3 and have a fix ready: https://github.com/open-webui/open-webui/pull/20145