I have searched the existing issues and discussions.
I am using the latest version of Open WebUI.
Installation Method
Docker
Open WebUI Version
0.6.22
Ollama Version (if applicable)
Operating System
Ubuntu 24.04.03
Browser (if applicable)
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
Display the interface
Actual Behavior
Crashes
Steps to Reproduce
Have an API endpoint not responding
Cry
Logs & Screenshots
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in call
with recv_stream, send_stream, collapse_excgroups():
File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
raise exc
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in call
File "/app/backend/open_webui/main.py", line 1319, in get_models
models.sort(
TypeError: '<' not supported between instances of 'NoneType' and 'str'
Additional Information
No response
Originally created by @QDUCHENNE on GitHub (Aug 12, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16549
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
- [x] I am using the latest version of Open WebUI.
### Installation Method
Docker
### Open WebUI Version
0.6.22
### Ollama Version (if applicable)
-
### Operating System
Ubuntu 24.04.03
### Browser (if applicable)
-
### 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
Display the interface
### Actual Behavior
Crashes
### Steps to Reproduce
- Have an API endpoint not responding
- Cry
### Logs & Screenshots
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in __call__
with recv_stream, send_stream, collapse_excgroups():
File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
raise exc
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/backend/open_webui/main.py", line 1165, in check_url
response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
raise app_exc
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in __call__
with recv_stream, send_stream, collapse_excgroups():
File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
raise exc
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/backend/open_webui/main.py", line 1151, in commit_session_after_request
response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
raise app_exc
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in __call__
with recv_stream, send_stream, collapse_excgroups():
File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
raise exc
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/backend/open_webui/utils/security_headers.py", line 11, in dispatch
response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
raise app_exc
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 177, in __call__
with recv_stream, send_stream, collapse_excgroups():
File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
raise exc
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 179, in __call__
response = await self.dispatch_func(request, call_next)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/backend/open_webui/main.py", line 1137, in dispatch
response = await call_next(request)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 154, in call_next
raise app_exc
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "/usr/local/lib/python3.11/site-packages/starlette_compress/__init__.py", line 92, in __call__
return await self._zstd(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/starlette_compress/_zstd_legacy.py", line 100, in __call__
await self.app(scope, receive, wrapper)
File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/backend/open_webui/main.py", line 1319, in get_models
models.sort(
TypeError: '<' not supported between instances of 'NoneType' and 'str'
### Additional Information
_No response_
GiteaMirror
added the bug label 2026-04-19 23:51:19 -05:00
<!-- gh-comment-id:3181207573 -->
@QDUCHENNE commented on GitHub (Aug 12, 2025):
This would fix my issue : https://github.com/open-webui/open-webui/pull/16547
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 ;)
<!-- gh-comment-id:3183926193 -->
@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 ;)
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.
<!-- gh-comment-id:3183976264 -->
@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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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