mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #16549] issue: OWUI unusable when one of the API endpoint isn't reachable #56620
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 @QDUCHENNE on GitHub (Aug 12, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16549
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.22
Ollama Version (if applicable)
Operating System
Ubuntu 24.04.03
Browser (if applicable)
Confirmation
README.md.Expected Behavior
Display the interface
Actual Behavior
Crashes
Steps to Reproduce
Logs & Screenshots
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in call
File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in call
File "/app/backend/open_webui/main.py", line 1165, in check_url
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in call
File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in call
File "/app/backend/open_webui/main.py", line 1151, in commit_session_after_request
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in call
File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in call
File "/app/backend/open_webui/utils/security_headers.py", line 11, in dispatch
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in call
File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in call
File "/app/backend/open_webui/main.py", line 1137, in dispatch
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
File "/usr/local/lib/python3.11/site-packages/starlette_compress/init.py", line 92, in call
File "/usr/local/lib/python3.11/site-packages/starlette_compress/_zstd_legacy.py", line 100, in call
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in call
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in call
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
File "/app/backend/open_webui/main.py", line 1319, in get_models
TypeError: '<' not supported between instances of 'NoneType' and 'str'
Additional Information
No response
@QDUCHENNE commented on GitHub (Aug 12, 2025):
This would fix my issue : https://github.com/open-webui/open-webui/pull/16547
@quadeare commented on GitHub (Aug 13, 2025):
I'm experiencing the same issue. My OpenWebUI instance crashed after my PVC ran out of disk space.
Now, the front-end UI is stuck in a loop, and the back-end is returning an error.
If you have a workaround, I would greatly appreciate your help!
Here full logs trace :
@QDUCHENNE commented on GitHub (Aug 13, 2025):
I connected to the docker using VS code and edited main.py at line 1320 using the fix I liked earlier.
Then rebooted the container and I had access to the app ;)
@quadeare commented on GitHub (Aug 13, 2025):
@QDUCHENNE Thank you for your response!
Unfortunately, with a Kubernetes deployment, the situation is a bit more complex. I need to create a specific volume or a ConfigMap to overwrite this file. Another option would be to modify the entrypoint to address the issue in main.py.
I plan to create a new image that incorporates your fix, and I'll wait for an official resolution.
@tjbck commented on GitHub (Aug 13, 2025):
https://github.com/open-webui/open-webui/pull/16547