[GH-ISSUE #18376] issue: fastapi.exceptions.HTTPException: 404: We could not find what you're looking for #57242

Closed
opened 2026-05-05 20:46:39 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @NCNeo on GitHub (Oct 16, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18376

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I am using the latest version of Open WebUI.

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

  • 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

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

  1. Make export data base from host A
  2. Import backup to Host B
  3. hit query in current knowledge base
  4. get error.

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.

Image Image Image

Additional Information

No response

Originally created by @NCNeo on GitHub (Oct 16, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/18376 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I am using the latest version of Open WebUI. ### 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 - [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 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 1. Make export data base from host A 2. Import backup to Host B 3. hit query in current knowledge base 4. get error. 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 "<frozen runpy>", line 198, in _run_module_as_main 2025-10-16 17:35:02.469 | File "<frozen runpy>", 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 <module> 2025-10-16 17:35:02.469 | uvicorn.main() 2025-10-16 17:35:02.469 | │ └ <Command main> 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 | └ <Command main> 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 | └ <Command main> 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 | │ │ └ <Command main> 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__.<locals>.call_next.<locals>.send_no_error at 0x7f5b1df31080> 2025-10-16 17:35:02.469 | │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.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__.<locals>.call_next.<locals>.send_no_error at 0x7f5b1df31080> 2025-10-16 17:35:02.469 | │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.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__.<locals>.wrapper at 0x7f5b1df309a0> 2025-10-16 17:35:02.469 | │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.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__.<locals>.wrapper at 0x7f5b1df309a0> 2025-10-16 17:35:02.469 | │ │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.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.<locals>.wrapped_app.<locals>.sender at 0x7f5b1df325c0> 2025-10-16 17:35:02.469 | │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.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.<locals>.wrapped_app.<locals>.sender at 0x7f5b1df325c0> 2025-10-16 17:35:02.469 | │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.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.<locals>.wrapped_app.<locals>.sender at 0x7f5b1df325c0> 2025-10-16 17:35:02.469 | │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.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.<locals>.wrapped_app.<locals>.sender at 0x7f5b1df325c0> 2025-10-16 17:35:02.469 | │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.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.<locals>.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.<locals>.wrapped_app.<locals>.sender at 0x7f5b1df325c0> 2025-10-16 17:35:02.469 | │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.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.<locals>.app.<locals>.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.<locals>.wrapped_app.<locals>.sender at 0x7f5b1df31800> 2025-10-16 17:35:02.469 | │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.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.<locals>.app.<locals>.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.<locals>.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. <img width="804" height="146" alt="Image" src="https://github.com/user-attachments/assets/3930a746-ee5d-4a13-af28-a4ecfd90fc64" /> <img width="1218" height="774" alt="Image" src="https://github.com/user-attachments/assets/9f506e7e-74f4-4299-92b5-17143ea46a29" /> <img width="858" height="657" alt="Image" src="https://github.com/user-attachments/assets/b7d7381a-206d-4df9-9187-11eb8fa8f043" /> ### Additional Information _No response_
GiteaMirror added the bug label 2026-05-05 20:46:39 -05:00
Author
Owner

@tjbck commented on GitHub (Oct 20, 2025):

Migration requires careful planning.

<!-- gh-comment-id:3423360232 --> @tjbck commented on GitHub (Oct 20, 2025): Migration requires careful planning.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#57242