mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-05 18:38:17 -05:00
[GH-ISSUE #18376] issue: fastapi.exceptions.HTTPException: 404: We could not find what you're looking for #18576
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 @NCNeo on GitHub (Oct 16, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18376
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
6.30
Ollama Version (if applicable)
No response
Operating System
macOS Sonoma / Ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
hit a query call a knowledge base and get result of query documents. current consulto for a simple kwoledge base.
Actual Behavior
Team good day, I did a import backup follow the steps https://docs.openwebui.com/tutorials/database#exporting-database, when a I get the webui.db from Mac Sonoma and restart in Ubuntu Server, all the GUI works perfectly except the Knowledge bases, this onces was recreate, but when you hit a query call the knowledge you get error.
I capture the log into the container attached in this issue and screenshot of the error UI.
Steps to Reproduce
see attached evidence of issues.
Logs & Screenshots
2025-10-16 17:34:57.004 | 2025-10-16 22:34:57.004 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 191.104.173.174:0 - "GET /audio/notification.mp3 HTTP/1.1" 304 2025-10-16 17:34:57.147 | 2025-10-16 22:34:57.147 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 191.104.173.174:0 - "GET /static/apple-touch-icon.png HTTP/1.1" 200 2025-10-16 17:34:58.039 | 2025-10-16 22:34:58.039 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 186.119.139.184:0 - "GET /_app/version.json HTTP/1.1" 304 2025-10-16 17:34:59.743 | 2025-10-16 22:34:59.743 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 186.119.139.184:0 - "GET /_app/version.json HTTP/1.1" 304 2025-10-16 17:35:02.469 | 2025-10-16 22:35:02.458 | ERROR | open_webui.routers.files:get_file_content_by_id:580 - 404: We could not find what you're looking for :/ 2025-10-16 17:35:02.469 | Traceback (most recent call last): 2025-10-16 17:35:02.469 | 2025-10-16 17:35:02.469 | File "", line 198, in _run_module_as_main 2025-10-16 17:35:02.469 | File "", line 88, in _run_code 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 4, in 2025-10-16 17:35:02.469 | uvicorn.main() 2025-10-16 17:35:02.469 | │ └ 2025-10-16 17:35:02.469 | └ <module 'uvicorn' from '/usr/local/lib/python3.11/site-packages/uvicorn/init.py'> 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1442, in call 2025-10-16 17:35:02.469 | return self.main(args, **kwargs) 2025-10-16 17:35:02.469 | │ │ │ └ {} 2025-10-16 17:35:02.469 | │ │ └ () 2025-10-16 17:35:02.469 | │ └ <function Command.main at 0x7f5bfb106b60> 2025-10-16 17:35:02.469 | └ 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1363, in main 2025-10-16 17:35:02.469 | rv = self.invoke(ctx) 2025-10-16 17:35:02.469 | │ │ └ <click.core.Context object at 0x7f5bfbe4c690> 2025-10-16 17:35:02.469 | │ └ <function Command.invoke at 0x7f5bfb106840> 2025-10-16 17:35:02.469 | └ 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1226, in invoke 2025-10-16 17:35:02.469 | return ctx.invoke(self.callback, **ctx.params) 2025-10-16 17:35:02.469 | │ │ │ │ │ └ {'host': '0.0.0.0', 'port': 8080, 'forwarded_allow_ips': '', 'workers': 1, 'app': 'open_webui.main:app', 'uds': None, 'fd': ... 2025-10-16 17:35:02.469 | │ │ │ │ └ <click.core.Context object at 0x7f5bfbe4c690> 2025-10-16 17:35:02.469 | │ │ │ └ <function main at 0x7f5bfaf25c60> 2025-10-16 17:35:02.469 | │ │ └ 2025-10-16 17:35:02.469 | │ └ <function Context.invoke at 0x7f5bfb105a80> 2025-10-16 17:35:02.469 | └ <click.core.Context object at 0x7f5bfbe4c690> 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 794, in invoke 2025-10-16 17:35:02.469 | return callback(args, **kwargs) 2025-10-16 17:35:02.469 | │ │ └ {'host': '0.0.0.0', 'port': 8080, 'forwarded_allow_ips': '', 'workers': 1, 'app': 'open_webui.main:app', 'uds': None, 'fd': ... 2025-10-16 17:35:02.469 | │ └ () 2025-10-16 17:35:02.469 | └ <function main at 0x7f5bfaf25c60> 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 413, in main 2025-10-16 17:35:02.469 | run( 2025-10-16 17:35:02.469 | └ <function run at 0x7f5bfb10bd80> 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 580, in run 2025-10-16 17:35:02.469 | server.run() 2025-10-16 17:35:02.469 | │ └ <function Server.run at 0x7f5bfafa11c0> 2025-10-16 17:35:02.469 | └ <uvicorn.server.Server object at 0x7f5bfbb6d950> 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 67, in run 2025-10-16 17:35:02.469 | return asyncio.run(self.serve(sockets=sockets)) 2025-10-16 17:35:02.469 | │ │ │ │ └ None 2025-10-16 17:35:02.469 | │ │ │ └ <function Server.serve at 0x7f5bfafa1260> 2025-10-16 17:35:02.469 | │ │ └ <uvicorn.server.Server object at 0x7f5bfbb6d950> 2025-10-16 17:35:02.469 | │ └ <function run at 0x7f5bfb9853a0> 2025-10-16 17:35:02.469 | └ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/init.py'> 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run 2025-10-16 17:35:02.469 | return runner.run(main) 2025-10-16 17:35:02.469 | │ │ └ <coroutine object Server.serve at 0x7f5bfaec2890> 2025-10-16 17:35:02.469 | │ └ <function Runner.run at 0x7f5bfb334f40> 2025-10-16 17:35:02.469 | └ <asyncio.runners.Runner object at 0x7f5bfaf2b390> 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run 2025-10-16 17:35:02.469 | return self._loop.run_until_complete(task) 2025-10-16 17:35:02.469 | │ │ │ └ <Task pending name='Task-1' coro=<Server.serve() running at /usr/local/lib/python3.11/site-packages/uvicorn/server.py:71> wai... 2025-10-16 17:35:02.469 | │ │ └ <cyfunction Loop.run_until_complete at 0x7f5bfaa982b0> 2025-10-16 17:35:02.469 | │ └ <uvloop.Loop running=True closed=False debug=False> 2025-10-16 17:35:02.469 | └ <asyncio.runners.Runner object at 0x7f5bfaf2b390> 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 141, in coro 2025-10-16 17:35:02.469 | await self.app(scope, receive_or_disconnect, send_no_error) 2025-10-16 17:35:02.469 | │ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..send_no_error at 0x7f5b1df31080> 2025-10-16 17:35:02.469 | │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f5b1df33240> 2025-10-16 17:35:02.469 | │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c... 2025-10-16 17:35:02.469 | │ └ <starlette_compress.CompressMiddleware object at 0x7f5bfa7c9b20> 2025-10-16 17:35:02.469 | └ <open_webui.main.RedirectMiddleware object at 0x7f5b40b77b90> 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/site-packages/starlette_compress/init.py", line 94, in call 2025-10-16 17:35:02.469 | return await self._brotli(scope, receive, send) 2025-10-16 17:35:02.469 | │ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..send_no_error at 0x7f5b1df31080> 2025-10-16 17:35:02.469 | │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f5b1df33240> 2025-10-16 17:35:02.469 | │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c... 2025-10-16 17:35:02.469 | │ └ <member '_brotli' of 'CompressMiddleware' objects> 2025-10-16 17:35:02.469 | └ <starlette_compress.CompressMiddleware object at 0x7f5bfa7c9b20> 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/site-packages/starlette_compress/_brotli.py", line 106, in call 2025-10-16 17:35:02.469 | await self.app(scope, receive, wrapper) 2025-10-16 17:35:02.469 | │ │ │ │ └ <function BrotliResponder.call..wrapper at 0x7f5b1df309a0> 2025-10-16 17:35:02.469 | │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f5b1df33240> 2025-10-16 17:35:02.469 | │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c... 2025-10-16 17:35:02.469 | │ └ <member 'app' of 'BrotliResponder' objects> 2025-10-16 17:35:02.469 | └ <starlette_compress._brotli.BrotliResponder object at 0x7f5b31f90d00> 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in call 2025-10-16 17:35:02.469 | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2025-10-16 17:35:02.469 | │ │ │ │ │ │ └ <function BrotliResponder.call..wrapper at 0x7f5b1df309a0> 2025-10-16 17:35:02.469 | │ │ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f5b1df33240> 2025-10-16 17:35:02.469 | │ │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c... 2025-10-16 17:35:02.469 | │ │ │ └ <starlette.requests.Request object at 0x7f5b240ff910> 2025-10-16 17:35:02.469 | │ │ └ <fastapi.routing.APIRouter object at 0x7f5b89777b90> 2025-10-16 17:35:02.469 | │ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x7f5b31f9b9d0> 2025-10-16 17:35:02.469 | └ <function wrap_app_handling_exceptions at 0x7f5bf8727ba0> 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app 2025-10-16 17:35:02.469 | await app(scope, receive, sender) 2025-10-16 17:35:02.469 | │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7f5b1df325c0> 2025-10-16 17:35:02.469 | │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f5b1df33240> 2025-10-16 17:35:02.469 | │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c... 2025-10-16 17:35:02.469 | └ <fastapi.routing.APIRouter object at 0x7f5b89777b90> 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 715, in call 2025-10-16 17:35:02.469 | await self.middleware_stack(scope, receive, send) 2025-10-16 17:35:02.469 | │ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7f5b1df325c0> 2025-10-16 17:35:02.469 | │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f5b1df33240> 2025-10-16 17:35:02.469 | │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c... 2025-10-16 17:35:02.469 | │ └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x7f5b89777b90>> 2025-10-16 17:35:02.469 | └ <fastapi.routing.APIRouter object at 0x7f5b89777b90> 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 735, in app 2025-10-16 17:35:02.469 | await route.handle(scope, receive, send) 2025-10-16 17:35:02.469 | │ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7f5b1df325c0> 2025-10-16 17:35:02.469 | │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f5b1df33240> 2025-10-16 17:35:02.469 | │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c... 2025-10-16 17:35:02.469 | │ └ <function Route.handle at 0x7f5bf87651c0> 2025-10-16 17:35:02.469 | └ APIRoute(path='/api/v1/files/{id}/content', name='get_file_content_by_id', methods=['GET']) 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle 2025-10-16 17:35:02.469 | await self.app(scope, receive, send) 2025-10-16 17:35:02.469 | │ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7f5b1df325c0> 2025-10-16 17:35:02.469 | │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f5b1df33240> 2025-10-16 17:35:02.469 | │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c... 2025-10-16 17:35:02.469 | │ └ <function request_response..app at 0x7f5acb9f6ca0> 2025-10-16 17:35:02.469 | └ APIRoute(path='/api/v1/files/{id}/content', name='get_file_content_by_id', methods=['GET']) 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 76, in app 2025-10-16 17:35:02.469 | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2025-10-16 17:35:02.469 | │ │ │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7f5b1df325c0> 2025-10-16 17:35:02.469 | │ │ │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f5b1df33240> 2025-10-16 17:35:02.469 | │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c... 2025-10-16 17:35:02.469 | │ │ └ <starlette.requests.Request object at 0x7f5b240ffed0> 2025-10-16 17:35:02.469 | │ └ <function request_response..app..app at 0x7f5b1df31260> 2025-10-16 17:35:02.469 | └ <function wrap_app_handling_exceptions at 0x7f5bf8727ba0> 2025-10-16 17:35:02.469 | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app 2025-10-16 17:35:02.469 | await app(scope, receive, sender) 2025-10-16 17:35:02.469 | │ │ │ └ <function wrap_app_handling_exceptions..wrapped_app..sender at 0x7f5b1df31800> 2025-10-16 17:35:02.469 | │ │ └ <function BaseHTTPMiddleware.call..call_next..receive_or_disconnect at 0x7f5b1df33240> 2025-10-16 17:35:02.469 | │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('172.17.0.2', 8080), 'c... 2025-10-16 17:35:02.470 | └ <function request_response..app..app at 0x7f5b1df31260> 2025-10-16 17:35:02.470 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app 2025-10-16 17:35:02.470 | response = await f(request) 2025-10-16 17:35:02.470 | │ └ <starlette.requests.Request object at 0x7f5b240ffed0> 2025-10-16 17:35:02.470 | └ <function get_request_handler..app at 0x7f5acb9f6b60> 2025-10-16 17:35:02.470 | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app 2025-10-16 17:35:02.470 | raw_response = await run_endpoint_function( 2025-10-16 17:35:02.470 | └ <function run_endpoint_function at 0x7f5bf8766fc0> 2025-10-16 17:35:02.470 | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function 2025-10-16 17:35:02.470 | return await dependant.call(**values) 2025-10-16 17:35:02.470 | │ │ └ {'user': UserModel(id='68dab2ff-fcbe-40f4-b596-57e22caa1a09', name='Jose Castro', email='jose.castro@indtech.io', username=No... 2025-10-16 17:35:02.470 | │ └ <function get_file_content_by_id at 0x7f5b923fdda0> 2025-10-16 17:35:02.470 | └ Dependant(path_params=[ModelField(field_info=Path(PydanticUndefined), name='id', mode='validation')], query_params=[ModelFiel... 2025-10-16 17:35:02.470 | 2025-10-16 17:35:02.470 | > File "/app/backend/open_webui/routers/files.py", line 575, in get_file_content_by_id 2025-10-16 17:35:02.470 | raise HTTPException( 2025-10-16 17:35:02.470 | └ <class 'fastapi.exceptions.HTTPException'> 2025-10-16 17:35:02.470 | 2025-10-16 17:35:02.470 | fastapi.exceptions.HTTPException: 404: We could not find what you're looking for :/ 2025-10-16 17:35:02.470 | 2025-10-16 22:35:02.468 | ERROR | open_webui.routers.files:get_file_content_by_id:581 - Error getting file content 2025-10-16 17:35:02.470 | 2025-10-16 22:35:02.470 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 191.104.173.174:0 - "GET /api/v1/files/8c323ca3-3546-4389-9d4c-beaa2febdf34/content HTTP/1.1" 400.
Additional Information
No response
@tjbck commented on GitHub (Oct 20, 2025):
Migration requires careful planning.