mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #18127] issue: Unable to create and edit model in workspace #34032
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 @honwei189 on GitHub (Oct 8, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18127
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.32, 0.6.33
Ollama Version (if applicable)
No response
Operating System
CentOS
Browser (if applicable)
Latest Chrome, Latest Edge, Latest Comet
Confirmation
README.md.Expected Behavior
When attempting to create a new model within the Workspace, specific information must be provided to input the model details.
When attempting to edit a model within the Workspace, the model information screen must appear and able to edit info.
Actual Behavior
Blank screen
Steps to Reproduce
Logs & Screenshots
/api/v1/tools/ 500 (Internal Server Error)
logs:
open-webui | During handling of the above exception, another exception occurred:
open-webui |
open-webui | Traceback (most recent call last):
open-webui | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi
open-webui | result = await app( # type: ignore[func-returns-value]
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in call
open-webui | return await self.app(scope, receive, send)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1133, in call
open-webui | await super().call(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 113, in call
open-webui | await self.middleware_stack(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in call
open-webui | raise exc
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in call
open-webui | await self.app(scope, receive, _send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/sessions.py", line 85, in call
open-webui | await self.app(scope, receive, send_wrapper)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 85, in call
open-webui | await self.app(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 182, in call
open-webui | with recv_stream, send_stream, collapse_excgroups():
open-webui | File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
open-webui | self.gen.throw(typ, value, traceback)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 85, in collapse_excgroups
open-webui | raise exc
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 184, in call
open-webui | response = await self.dispatch_func(request, call_next)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/app/backend/open_webui/main.py", line 1260, in inspect_websocket
open-webui | return await call_next(request)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 159, in call_next
open-webui | raise app_exc
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro
open-webui | await self.app(scope, receive_or_disconnect, send_no_error)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 182, in call
open-webui | with recv_stream, send_stream, collapse_excgroups():
open-webui | File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
open-webui | self.gen.throw(typ, value, traceback)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 85, in collapse_excgroups
open-webui | raise exc
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 184, in call
open-webui | response = await self.dispatch_func(request, call_next)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/app/backend/open_webui/main.py", line 1239, in check_url
open-webui | response = await call_next(request)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 159, in call_next
open-webui | raise app_exc
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro
open-webui | await self.app(scope, receive_or_disconnect, send_no_error)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 182, in call
open-webui | with recv_stream, send_stream, collapse_excgroups():
open-webui | File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
open-webui | self.gen.throw(typ, value, traceback)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 85, in collapse_excgroups
open-webui | raise exc
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 184, in call
open-webui | response = await self.dispatch_func(request, call_next)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/app/backend/open_webui/main.py", line 1225, in commit_session_after_request
open-webui | response = await call_next(request)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 159, in call_next
open-webui | raise app_exc
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro
open-webui | await self.app(scope, receive_or_disconnect, send_no_error)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 182, in call
open-webui | with recv_stream, send_stream, collapse_excgroups():
open-webui | File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
open-webui | self.gen.throw(typ, value, traceback)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 85, in collapse_excgroups
open-webui | raise exc
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 184, in call
open-webui | response = await self.dispatch_func(request, call_next)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/app/backend/open_webui/utils/security_headers.py", line 11, in dispatch
open-webui | response = await call_next(request)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 159, in call_next
open-webui | raise app_exc
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro
open-webui | await self.app(scope, receive_or_disconnect, send_no_error)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 182, in call
open-webui | with recv_stream, send_stream, collapse_excgroups():
open-webui | File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit
open-webui | self.gen.throw(typ, value, traceback)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 85, in collapse_excgroups
open-webui | raise exc
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 184, in call
open-webui | response = await self.dispatch_func(request, call_next)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/app/backend/open_webui/main.py", line 1211, in dispatch
open-webui | response = await call_next(request)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 159, in call_next
open-webui | raise app_exc
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 144, in coro
open-webui | await self.app(scope, receive_or_disconnect, send_no_error)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette_compress/init.py", line 92, in call
open-webui | return await self._zstd(scope, receive, send)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette_compress/_zstd_legacy.py", line 100, in call
open-webui | await self.app(scope, receive, wrapper)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 63, in call
open-webui | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
open-webui | raise exc
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
open-webui | await app(scope, receive, sender)
open-webui | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call
open-webui | await self.app(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 716, in call
open-webui | await self.middleware_stack(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 736, in app
open-webui | await route.handle(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 290, in handle
open-webui | await self.app(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 123, in app
open-webui | await wrap_app_handling_exceptions(app, request)(scope, receive, send)
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
open-webui | raise exc
open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
open-webui | await app(scope, receive, sender)
open-webui | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 109, in app
open-webui | response = await f(request)
open-webui | ^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 387, in app
open-webui | raw_response = await run_endpoint_function(
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 288, in run_endpoint_function
open-webui | return await dependant.call(**values)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/app/backend/open_webui/routers/tools.py", line 61, in get_tools
open-webui | tool_module = get_tool_module(request, tool.id)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/app/backend/open_webui/routers/tools.py", line 46, in get_tool_module
open-webui | tool_module, _ = get_tool_module_from_cache(request, tool_id, load_from_db)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/app/backend/open_webui/utils/plugin.py", line 192, in get_tool_module_from_cache
open-webui | tool_module, frontmatter = load_tool_module_by_id(tool_id, content)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/app/backend/open_webui/utils/plugin.py", line 113, in load_tool_module_by_id
open-webui | raise e
open-webui | File "/app/backend/open_webui/utils/plugin.py", line 101, in load_tool_module_by_id
open-webui | exec(content, module.dict)
open-webui | File "", line 51, in
open-webui | ModuleNotFoundError: No module named 'duckduckgo_search'
Additional Information
I sincerely hope that this bug report will not be transferred to the discussion section once more.
@rlederer-C136 commented on GitHub (Oct 8, 2025):
I am also having this exact same issue. Docker as well on ubuntu 24.04.
@tjbck commented on GitHub (Oct 8, 2025):
#18125
@silentoplayz commented on GitHub (Oct 8, 2025):
@tjbck I think this issue is inherently different than the issue(s) described in #18125.
@SpaaaarK commented on GitHub (Oct 9, 2025):
I had the same issue and it was caused because the cache in the webui.db had old tools with duckduckgo_search before the update to ddgs. For me deleting these old tools in the tool table on the webui.db solved the issue
@silentoplayz commented on GitHub (Oct 9, 2025):
The error you reported is due to some external tool trying to load a wrong/outdated library.
@honwei189 commented on GitHub (Oct 10, 2025):
Indeed, the problem was caused by "tools". After scanning and deleting the relevant tools that utilized the DuckDuckGo library, I am now able to create and edit the model.
Thank you for sharing this information.
@stweil commented on GitHub (Oct 10, 2025):
Sorry for posting to a closed issue, but I had the same problem with an outdated tool.
Maybe issues with old or otherwise buggy tools could be caught and reported instead of silently failing after an update of Open WebUI?