[GH-ISSUE #9007] Failure (and crashes) upon uploading & deleting files in knowledge base #15352

Closed
opened 2026-04-19 21:35:27 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @sellerskyle on GitHub (Jan 27, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9007

I am unable to upload files greater than ~1.5 MB to open webui knowledge bases. These files upload successfully when uploading them directly with prompts. When uploading files, it prints what is contained in 1 and then crashes. When trying to delete uploaded files from the knowledge base, it used to crash with the error provided in 2, then just with Delete of nonexisting embedding ID, but now crashes without logging anything to the console.

I am running OWUI v0.5.4 on Windows Server 2022 Standard using the Python installation method. I have also changed config according to this (https://docs.openwebui.com/tutorials/tips/reduce-ram-usage/) in case that could matter.

I am able to edit the source code to log out any important information that would be useful to debug this issue.

1

WARNI [python_multipart.multipart] Skipping data after last boundary
INFO  [open_webui.routers.files] file.content_type: application/pdf
INFO:     10.103.38.41:64465 - "GET /api/v1/chats/3fdc3494-9d0d-4dbe-be73-53bf8d15810f HTTP/1.1" 200 OK
INFO:     10.103.38.41:64465 - "GET /api/v1/chats/3fdc3494-9d0d-4dbe-be73-53bf8d15810f HTTP/1.1" 200 OK
INFO:     10.103.38.41:64466 - "GET /api/v1/chats/3fdc3494-9d0d-4dbe-be73-53bf8d15810f HTTP/1.1" 200 OK
INFO  [open_webui.routers.retrieval] save_docs_to_vector_db: document Job 00009.pdf file-3b086eab-0c28-40d5-b406-e5b593139dde
Collection file-3b086eab-0c28-40d5-b406-e5b593139dde does not exist.
INFO  [open_webui.routers.retrieval] adding to collection file-3b086eab-0c28-40d5-b406-e5b593139dde
INFO:     10.103.38.41:64463 - "POST /api/v1/files/ HTTP/1.1" 200 OK
INFO  [open_webui.routers.retrieval] save_docs_to_vector_db: document Job 00009.pdf d0f618bd-ef2b-47b9-b516-353f1a2ee8bf
INFO  [open_webui.routers.retrieval] collection d0f618bd-ef2b-47b9-b516-353f1a2ee8bf already exists
INFO  [open_webui.routers.retrieval] adding to collection d0f618bd-ef2b-47b9-b516-353f1a2ee8bf
PS C:\Windows\system32>

2

 File "C:\Program Files\Python311\Lib\site-packages\starlette\middleware\base.py", line 165, in call_next
    raise app_exc
  File "C:\Program Files\Python311\Lib\site-packages\starlette\middleware\base.py", line 151, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
  File "C:\Program Files\Python311\Lib\site-packages\starlette\middleware\base.py", line 189, in __call__
    with collapse_excgroups():
  File "C:\Program Files\Python311\Lib\contextlib.py", line 158, in __exit__
    self.gen.throw(typ, value, traceback)
  File "C:\Program Files\Python311\Lib\site-packages\starlette\_utils.py", line 93, in collapse_excgroups
    raise exc
  File "C:\Program Files\Python311\Lib\site-packages\starlette\middleware\base.py", line 191, in __call__
    response = await self.dispatch_func(request, call_next)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Python311\Lib\site-packages\open_webui\main.py", line 1004, in check_url
    response = await call_next(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Python311\Lib\site-packages\starlette\middleware\base.py", line 166, in call_next
    raise RuntimeError("No response returned.")
RuntimeError: No response returned.
Originally created by @sellerskyle on GitHub (Jan 27, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/9007 I am unable to upload files greater than ~1.5 MB to open webui knowledge bases. These files upload successfully when uploading them directly with prompts. When uploading files, it prints what is contained in 1 and then crashes. When trying to delete uploaded files from the knowledge base, it used to crash with the error provided in 2, then just with Delete of nonexisting embedding ID, but now crashes without logging anything to the console. I am running OWUI v0.5.4 on Windows Server 2022 Standard using the Python installation method. I have also changed config according to this (https://docs.openwebui.com/tutorials/tips/reduce-ram-usage/) in case that could matter. I am able to edit the source code to log out any important information that would be useful to debug this issue. 1 ``` WARNI [python_multipart.multipart] Skipping data after last boundary INFO [open_webui.routers.files] file.content_type: application/pdf INFO: 10.103.38.41:64465 - "GET /api/v1/chats/3fdc3494-9d0d-4dbe-be73-53bf8d15810f HTTP/1.1" 200 OK INFO: 10.103.38.41:64465 - "GET /api/v1/chats/3fdc3494-9d0d-4dbe-be73-53bf8d15810f HTTP/1.1" 200 OK INFO: 10.103.38.41:64466 - "GET /api/v1/chats/3fdc3494-9d0d-4dbe-be73-53bf8d15810f HTTP/1.1" 200 OK INFO [open_webui.routers.retrieval] save_docs_to_vector_db: document Job 00009.pdf file-3b086eab-0c28-40d5-b406-e5b593139dde Collection file-3b086eab-0c28-40d5-b406-e5b593139dde does not exist. INFO [open_webui.routers.retrieval] adding to collection file-3b086eab-0c28-40d5-b406-e5b593139dde INFO: 10.103.38.41:64463 - "POST /api/v1/files/ HTTP/1.1" 200 OK INFO [open_webui.routers.retrieval] save_docs_to_vector_db: document Job 00009.pdf d0f618bd-ef2b-47b9-b516-353f1a2ee8bf INFO [open_webui.routers.retrieval] collection d0f618bd-ef2b-47b9-b516-353f1a2ee8bf already exists INFO [open_webui.routers.retrieval] adding to collection d0f618bd-ef2b-47b9-b516-353f1a2ee8bf PS C:\Windows\system32> ``` 2 ``` File "C:\Program Files\Python311\Lib\site-packages\starlette\middleware\base.py", line 165, in call_next raise app_exc File "C:\Program Files\Python311\Lib\site-packages\starlette\middleware\base.py", line 151, in coro await self.app(scope, receive_or_disconnect, send_no_error) File "C:\Program Files\Python311\Lib\site-packages\starlette\middleware\base.py", line 189, in __call__ with collapse_excgroups(): File "C:\Program Files\Python311\Lib\contextlib.py", line 158, in __exit__ self.gen.throw(typ, value, traceback) File "C:\Program Files\Python311\Lib\site-packages\starlette\_utils.py", line 93, in collapse_excgroups raise exc File "C:\Program Files\Python311\Lib\site-packages\starlette\middleware\base.py", line 191, in __call__ response = await self.dispatch_func(request, call_next) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\site-packages\open_webui\main.py", line 1004, in check_url response = await call_next(request) ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\site-packages\starlette\middleware\base.py", line 166, in call_next raise RuntimeError("No response returned.") RuntimeError: No response returned. ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#15352