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 listed steps to reproduce the bug in detail.
Expected Behavior
I expected the uploaded PDF to be processed with Tika.
Actual Behavior
Yellow toast notification shows up telling me that 'TikaLoader' object has no attribute 'kwargs' and the docker logs indicate total failure to process the file.
May 05 11:49:43 x1c6 fish[199693]: 2025-05-05 11:49:43.701 | INFO | open_webui.routers.files:upload_file:91 - file.content_type: application/pdf - {}
May 05 11:49:43 x1c6 fish[199693]: 2025-05-05 11:49:43.715 | ERROR | open_webui.routers.retrieval:process_file:1187 - 'TikaLoader' object has no attribute 'kwargs' - {}
May 05 11:49:43 x1c6 fish[199693]: Traceback (most recent call last):
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/threading.py", line 1032, in _bootstrap
May 05 11:49:43 x1c6 fish[199693]: self._bootstrap_inner()
May 05 11:49:43 x1c6 fish[199693]: │ └ <function Thread._bootstrap_inner at 0x7a7c2133e840>
May 05 11:49:43 x1c6 fish[199693]: └ <WorkerThread(AnyIO worker thread, started 134668242360000)>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
May 05 11:49:43 x1c6 fish[199693]: self.run()
May 05 11:49:43 x1c6 fish[199693]: │ └ <function WorkerThread.run at 0x7a7af5cfae80>
May 05 11:49:43 x1c6 fish[199693]: └ <WorkerThread(AnyIO worker thread, started 134668242360000)>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 967, in run
May 05 11:49:43 x1c6 fish[199693]: result = context.run(func, *args)
May 05 11:49:43 x1c6 fish[199693]: │ │ │ └ ()
May 05 11:49:43 x1c6 fish[199693]: │ │ └ functools.partial(<function upload_file at 0x7a7b34c4a200>, user=UserModel(id='42424ade-46c6-4a6c-9a9a-1460d5ff7a52', name='U...
May 05 11:49:43 x1c6 fish[199693]: │ └ <method 'run' of '_contextvars.Context' objects>
May 05 11:49:43 x1c6 fish[199693]: └ <_contextvars.Context object at 0x7a7ae5222400>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/open_webui/routers/files.py", line 155, in upload_file
May 05 11:49:43 x1c6 fish[199693]: process_file(request, ProcessFileForm(file_id=id), user=user)
May 05 11:49:43 x1c6 fish[199693]: │ │ │ │ └ UserModel(id='42424ade-46c6-4a6c-9a9a-1460d5ff7a52', name='User', email='admin@localhost', role='admin', profile_image_url='/...
May 05 11:49:43 x1c6 fish[199693]: │ │ │ └ '99a1af8d-f6c9-4666-ab7f-934094b7674b'
May 05 11:49:43 x1c6 fish[199693]: │ │ └ <class 'open_webui.routers.retrieval.ProcessFileForm'>
May 05 11:49:43 x1c6 fish[199693]: │ └ <starlette.requests.Request object at 0x7a7af4422e70>
May 05 11:49:43 x1c6 fish[199693]: └ <function process_file at 0x7a7b310b6a20>
May 05 11:49:43 x1c6 fish[199693]: > File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/open_webui/routers/retrieval.py", line 1106, in process_file
May 05 11:49:43 x1c6 fish[199693]: docs = loader.load(
May 05 11:49:43 x1c6 fish[199693]: │ └ <function Loader.load at 0x7a7b31f900e0>
May 05 11:49:43 x1c6 fish[199693]: └ <open_webui.retrieval.loaders.main.Loader object at 0x7a7af447b140>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/open_webui/retrieval/loaders/main.py", line 191, in load
May 05 11:49:43 x1c6 fish[199693]: docs = loader.load()
May 05 11:49:43 x1c6 fish[199693]: │ └ <function TikaLoader.load at 0x7a7b31e376a0>
May 05 11:49:43 x1c6 fish[199693]: └ <open_webui.retrieval.loaders.main.TikaLoader object at 0x7a7af6136660>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/open_webui/retrieval/loaders/main.py", line 102, in load
May 05 11:49:43 x1c6 fish[199693]: if self.kwargs.get("PDF_EXTRACT_IMAGES") == True:
May 05 11:49:43 x1c6 fish[199693]: └ <open_webui.retrieval.loaders.main.TikaLoader object at 0x7a7af6136660>
May 05 11:49:43 x1c6 fish[199693]: AttributeError: 'TikaLoader' object has no attribute 'kwargs'
May 05 11:49:43 x1c6 fish[199693]: 2025-05-05 11:49:43.718 | ERROR | open_webui.routers.files:upload_file:159 - 400: 'TikaLoader' object has no attribute 'kwargs' - {}
May 05 11:49:43 x1c6 fish[199693]: Traceback (most recent call last):
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/open_webui/routers/retrieval.py", line 1106, in process_file
May 05 11:49:43 x1c6 fish[199693]: docs = loader.load(
May 05 11:49:43 x1c6 fish[199693]: │ └ <function Loader.load at 0x7a7b31f900e0>
May 05 11:49:43 x1c6 fish[199693]: └ <open_webui.retrieval.loaders.main.Loader object at 0x7a7af447b140>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/open_webui/retrieval/loaders/main.py", line 191, in load
May 05 11:49:43 x1c6 fish[199693]: docs = loader.load()
May 05 11:49:43 x1c6 fish[199693]: │ └ <function TikaLoader.load at 0x7a7b31e376a0>
May 05 11:49:43 x1c6 fish[199693]: └ <open_webui.retrieval.loaders.main.TikaLoader object at 0x7a7af6136660>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/open_webui/retrieval/loaders/main.py", line 102, in load
May 05 11:49:43 x1c6 fish[199693]: if self.kwargs.get("PDF_EXTRACT_IMAGES") == True:
May 05 11:49:43 x1c6 fish[199693]: └ <open_webui.retrieval.loaders.main.TikaLoader object at 0x7a7af6136660>
May 05 11:49:43 x1c6 fish[199693]: AttributeError: 'TikaLoader' object has no attribute 'kwargs'
May 05 11:49:43 x1c6 fish[199693]: During handling of the above exception, another exception occurred:
May 05 11:49:43 x1c6 fish[199693]: Traceback (most recent call last):
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/threading.py", line 1032, in _bootstrap
May 05 11:49:43 x1c6 fish[199693]: self._bootstrap_inner()
May 05 11:49:43 x1c6 fish[199693]: │ └ <function Thread._bootstrap_inner at 0x7a7c2133e840>
May 05 11:49:43 x1c6 fish[199693]: └ <WorkerThread(AnyIO worker thread, started 134668242360000)>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
May 05 11:49:43 x1c6 fish[199693]: self.run()
May 05 11:49:43 x1c6 fish[199693]: │ └ <function WorkerThread.run at 0x7a7af5cfae80>
May 05 11:49:43 x1c6 fish[199693]: └ <WorkerThread(AnyIO worker thread, started 134668242360000)>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 967, in run
May 05 11:49:43 x1c6 fish[199693]: result = context.run(func, *args)
May 05 11:49:43 x1c6 fish[199693]: │ │ │ └ ()
May 05 11:49:43 x1c6 fish[199693]: │ │ └ functools.partial(<function upload_file at 0x7a7b34c4a200>, user=UserModel(id='42424ade-46c6-4a6c-9a9a-1460d5ff7a52', name='U...
May 05 11:49:43 x1c6 fish[199693]: │ └ <method 'run' of '_contextvars.Context' objects>
May 05 11:49:43 x1c6 fish[199693]: └ <_contextvars.Context object at 0x7a7ae5222400>
May 05 11:49:43 x1c6 fish[199693]: > File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/open_webui/routers/files.py", line 155, in upload_file
May 05 11:49:43 x1c6 fish[199693]: process_file(request, ProcessFileForm(file_id=id), user=user)
May 05 11:49:43 x1c6 fish[199693]: │ │ │ │ └ UserModel(id='42424ade-46c6-4a6c-9a9a-1460d5ff7a52', name='User', email='admin@localhost', role='admin', profile_image_url='/...
May 05 11:49:43 x1c6 fish[199693]: │ │ │ └ '99a1af8d-f6c9-4666-ab7f-934094b7674b'
May 05 11:49:43 x1c6 fish[199693]: │ │ └ <class 'open_webui.routers.retrieval.ProcessFileForm'>
May 05 11:49:43 x1c6 fish[199693]: │ └ <starlette.requests.Request object at 0x7a7af4422e70>
May 05 11:49:43 x1c6 fish[199693]: └ <function process_file at 0x7a7b310b6a20>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/open_webui/routers/retrieval.py", line 1194, in process_file
May 05 11:49:43 x1c6 fish[199693]: raise HTTPException(
May 05 11:49:43 x1c6 fish[199693]: └ <class 'fastapi.exceptions.HTTPException'>
May 05 11:49:43 x1c6 fish[199693]: fastapi.exceptions.HTTPException: 400: 'TikaLoader' object has no attribute 'kwargs'
May 05 11:49:43 x1c6 fish[199693]: 2025-05-05 11:49:43.724 | ERROR | open_webui.routers.files:upload_file:160 - Error processing file: 99a1af8d-f6c9-4666-ab7f-934094b7674b - {}
May 05 11:49:43 x1c6 fish[199693]: 2025-05-05 11:49:43.727 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:34746 - "POST /api/v1/files/ HTTP/1.1" 200 - {}
May 05 11:52:19 x1c6 fish[199693]: 2025-05-05 11:52:19.103 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:48110 - "POST /api/v1/chats/new HTTP/1.1" 200 - {}
May 05 11:52:19 x1c6 fish[199693]: 2025-05-05 11:52:19.105 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:48112 - "GET /static/favicon.png HTTP/1.1" 304 - {}
May 05 11:52:19 x1c6 fish[199693]: 2025-05-05 11:52:19.214 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:48112 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 - {}
Additional Information
No response
Originally created by @nszceta on GitHub (May 5, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13519
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
- [x] I am using the latest version of Open WebUI.
### Installation Method
Pip Install
### Open WebUI Version
0.6.6
### Ollama Version (if applicable)
_No response_
### Operating System
Arch Linux
### Browser (if applicable)
136.0.7103.59 (Official Build, ungoogled-chromium) (64-bit)
### 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 listed steps to reproduce the bug in detail.
### Expected Behavior
I expected the uploaded PDF to be processed with Tika.
### Actual Behavior
Yellow toast notification shows up telling me that 'TikaLoader' object has no attribute 'kwargs' and the docker logs indicate total failure to process the file.
### Steps to Reproduce
1. Launch tika
2. Set tika as the content extraction engine
3. Upload any PDF file into a new chat.
### Logs & Screenshots
Browser logs:
```
Input files handler called with: [File]
MessageInput.svelte:228 Processing file: {name: 'WVPlat.pdf', type: 'application/pdf', size: 882689, extension: 'pdf'}extension: "pdf"name: "WVPlat.pdf"size: 882689type: "application/pdf"[[Prototype]]: Object
FileItemModal.svelte:36 {type: 'file', file: '', id: null, url: '', name: 'WVPlat.pdf', …}collection_name: undefinederror: ""file: {id: '0b0752d6-aaac-47b8-8a2d-108d442ed7f0', user_id: '42424ade-46c6-4a6c-9a9a-1460d5ff7a52', hash: null, filename: 'WVPlat.pdf', data: {…}, …}id: "0b0752d6-aaac-47b8-8a2d-108d442ed7f0"itemId: "ffab95d3-2c09-4152-b668-4c50e157ab34"name: "WVPlat.pdf"size: 882689status: "uploaded"type: "file"url: "/api/v1/files/0b0752d6-aaac-47b8-8a2d-108d442ed7f0"[[Prototype]]: Object
MessageInput.svelte:197 File upload completed: {id: '0b0752d6-aaac-47b8-8a2d-108d442ed7f0', name: 'WVPlat.pdf', collection: undefined}
MessageInput.svelte:204 File upload warning: 'TikaLoader' object has no attribute 'kwargs'
X @ MessageInput.svelte:204
await in X
(anonymous) @ MessageInput.svelte:281
Q @ MessageInput.svelte:227
Bt @ MessageInput.svelte:470
MessageInput.svelte:941 Enter pressed: false
```
Docker logs:
```
May 05 11:49:43 x1c6 fish[199693]: 2025-05-05 11:49:43.701 | INFO | open_webui.routers.files:upload_file:91 - file.content_type: application/pdf - {}
May 05 11:49:43 x1c6 fish[199693]: 2025-05-05 11:49:43.715 | ERROR | open_webui.routers.retrieval:process_file:1187 - 'TikaLoader' object has no attribute 'kwargs' - {}
May 05 11:49:43 x1c6 fish[199693]: Traceback (most recent call last):
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/threading.py", line 1032, in _bootstrap
May 05 11:49:43 x1c6 fish[199693]: self._bootstrap_inner()
May 05 11:49:43 x1c6 fish[199693]: │ └ <function Thread._bootstrap_inner at 0x7a7c2133e840>
May 05 11:49:43 x1c6 fish[199693]: └ <WorkerThread(AnyIO worker thread, started 134668242360000)>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
May 05 11:49:43 x1c6 fish[199693]: self.run()
May 05 11:49:43 x1c6 fish[199693]: │ └ <function WorkerThread.run at 0x7a7af5cfae80>
May 05 11:49:43 x1c6 fish[199693]: └ <WorkerThread(AnyIO worker thread, started 134668242360000)>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 967, in run
May 05 11:49:43 x1c6 fish[199693]: result = context.run(func, *args)
May 05 11:49:43 x1c6 fish[199693]: │ │ │ └ ()
May 05 11:49:43 x1c6 fish[199693]: │ │ └ functools.partial(<function upload_file at 0x7a7b34c4a200>, user=UserModel(id='42424ade-46c6-4a6c-9a9a-1460d5ff7a52', name='U...
May 05 11:49:43 x1c6 fish[199693]: │ └ <method 'run' of '_contextvars.Context' objects>
May 05 11:49:43 x1c6 fish[199693]: └ <_contextvars.Context object at 0x7a7ae5222400>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/open_webui/routers/files.py", line 155, in upload_file
May 05 11:49:43 x1c6 fish[199693]: process_file(request, ProcessFileForm(file_id=id), user=user)
May 05 11:49:43 x1c6 fish[199693]: │ │ │ │ └ UserModel(id='42424ade-46c6-4a6c-9a9a-1460d5ff7a52', name='User', email='admin@localhost', role='admin', profile_image_url='/...
May 05 11:49:43 x1c6 fish[199693]: │ │ │ └ '99a1af8d-f6c9-4666-ab7f-934094b7674b'
May 05 11:49:43 x1c6 fish[199693]: │ │ └ <class 'open_webui.routers.retrieval.ProcessFileForm'>
May 05 11:49:43 x1c6 fish[199693]: │ └ <starlette.requests.Request object at 0x7a7af4422e70>
May 05 11:49:43 x1c6 fish[199693]: └ <function process_file at 0x7a7b310b6a20>
May 05 11:49:43 x1c6 fish[199693]: > File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/open_webui/routers/retrieval.py", line 1106, in process_file
May 05 11:49:43 x1c6 fish[199693]: docs = loader.load(
May 05 11:49:43 x1c6 fish[199693]: │ └ <function Loader.load at 0x7a7b31f900e0>
May 05 11:49:43 x1c6 fish[199693]: └ <open_webui.retrieval.loaders.main.Loader object at 0x7a7af447b140>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/open_webui/retrieval/loaders/main.py", line 191, in load
May 05 11:49:43 x1c6 fish[199693]: docs = loader.load()
May 05 11:49:43 x1c6 fish[199693]: │ └ <function TikaLoader.load at 0x7a7b31e376a0>
May 05 11:49:43 x1c6 fish[199693]: └ <open_webui.retrieval.loaders.main.TikaLoader object at 0x7a7af6136660>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/open_webui/retrieval/loaders/main.py", line 102, in load
May 05 11:49:43 x1c6 fish[199693]: if self.kwargs.get("PDF_EXTRACT_IMAGES") == True:
May 05 11:49:43 x1c6 fish[199693]: └ <open_webui.retrieval.loaders.main.TikaLoader object at 0x7a7af6136660>
May 05 11:49:43 x1c6 fish[199693]: AttributeError: 'TikaLoader' object has no attribute 'kwargs'
May 05 11:49:43 x1c6 fish[199693]: 2025-05-05 11:49:43.718 | ERROR | open_webui.routers.files:upload_file:159 - 400: 'TikaLoader' object has no attribute 'kwargs' - {}
May 05 11:49:43 x1c6 fish[199693]: Traceback (most recent call last):
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/open_webui/routers/retrieval.py", line 1106, in process_file
May 05 11:49:43 x1c6 fish[199693]: docs = loader.load(
May 05 11:49:43 x1c6 fish[199693]: │ └ <function Loader.load at 0x7a7b31f900e0>
May 05 11:49:43 x1c6 fish[199693]: └ <open_webui.retrieval.loaders.main.Loader object at 0x7a7af447b140>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/open_webui/retrieval/loaders/main.py", line 191, in load
May 05 11:49:43 x1c6 fish[199693]: docs = loader.load()
May 05 11:49:43 x1c6 fish[199693]: │ └ <function TikaLoader.load at 0x7a7b31e376a0>
May 05 11:49:43 x1c6 fish[199693]: └ <open_webui.retrieval.loaders.main.TikaLoader object at 0x7a7af6136660>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/open_webui/retrieval/loaders/main.py", line 102, in load
May 05 11:49:43 x1c6 fish[199693]: if self.kwargs.get("PDF_EXTRACT_IMAGES") == True:
May 05 11:49:43 x1c6 fish[199693]: └ <open_webui.retrieval.loaders.main.TikaLoader object at 0x7a7af6136660>
May 05 11:49:43 x1c6 fish[199693]: AttributeError: 'TikaLoader' object has no attribute 'kwargs'
May 05 11:49:43 x1c6 fish[199693]: During handling of the above exception, another exception occurred:
May 05 11:49:43 x1c6 fish[199693]: Traceback (most recent call last):
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/threading.py", line 1032, in _bootstrap
May 05 11:49:43 x1c6 fish[199693]: self._bootstrap_inner()
May 05 11:49:43 x1c6 fish[199693]: │ └ <function Thread._bootstrap_inner at 0x7a7c2133e840>
May 05 11:49:43 x1c6 fish[199693]: └ <WorkerThread(AnyIO worker thread, started 134668242360000)>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
May 05 11:49:43 x1c6 fish[199693]: self.run()
May 05 11:49:43 x1c6 fish[199693]: │ └ <function WorkerThread.run at 0x7a7af5cfae80>
May 05 11:49:43 x1c6 fish[199693]: └ <WorkerThread(AnyIO worker thread, started 134668242360000)>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 967, in run
May 05 11:49:43 x1c6 fish[199693]: result = context.run(func, *args)
May 05 11:49:43 x1c6 fish[199693]: │ │ │ └ ()
May 05 11:49:43 x1c6 fish[199693]: │ │ └ functools.partial(<function upload_file at 0x7a7b34c4a200>, user=UserModel(id='42424ade-46c6-4a6c-9a9a-1460d5ff7a52', name='U...
May 05 11:49:43 x1c6 fish[199693]: │ └ <method 'run' of '_contextvars.Context' objects>
May 05 11:49:43 x1c6 fish[199693]: └ <_contextvars.Context object at 0x7a7ae5222400>
May 05 11:49:43 x1c6 fish[199693]: > File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/open_webui/routers/files.py", line 155, in upload_file
May 05 11:49:43 x1c6 fish[199693]: process_file(request, ProcessFileForm(file_id=id), user=user)
May 05 11:49:43 x1c6 fish[199693]: │ │ │ │ └ UserModel(id='42424ade-46c6-4a6c-9a9a-1460d5ff7a52', name='User', email='admin@localhost', role='admin', profile_image_url='/...
May 05 11:49:43 x1c6 fish[199693]: │ │ │ └ '99a1af8d-f6c9-4666-ab7f-934094b7674b'
May 05 11:49:43 x1c6 fish[199693]: │ │ └ <class 'open_webui.routers.retrieval.ProcessFileForm'>
May 05 11:49:43 x1c6 fish[199693]: │ └ <starlette.requests.Request object at 0x7a7af4422e70>
May 05 11:49:43 x1c6 fish[199693]: └ <function process_file at 0x7a7b310b6a20>
May 05 11:49:43 x1c6 fish[199693]: File "/home/adam/openwebui/.venv/lib/python3.12/site-packages/open_webui/routers/retrieval.py", line 1194, in process_file
May 05 11:49:43 x1c6 fish[199693]: raise HTTPException(
May 05 11:49:43 x1c6 fish[199693]: └ <class 'fastapi.exceptions.HTTPException'>
May 05 11:49:43 x1c6 fish[199693]: fastapi.exceptions.HTTPException: 400: 'TikaLoader' object has no attribute 'kwargs'
May 05 11:49:43 x1c6 fish[199693]: 2025-05-05 11:49:43.724 | ERROR | open_webui.routers.files:upload_file:160 - Error processing file: 99a1af8d-f6c9-4666-ab7f-934094b7674b - {}
May 05 11:49:43 x1c6 fish[199693]: 2025-05-05 11:49:43.727 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:34746 - "POST /api/v1/files/ HTTP/1.1" 200 - {}
May 05 11:52:19 x1c6 fish[199693]: 2025-05-05 11:52:19.103 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:48110 - "POST /api/v1/chats/new HTTP/1.1" 200 - {}
May 05 11:52:19 x1c6 fish[199693]: 2025-05-05 11:52:19.105 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:48112 - "GET /static/favicon.png HTTP/1.1" 304 - {}
May 05 11:52:19 x1c6 fish[199693]: 2025-05-05 11:52:19.214 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:48112 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 - {}
```
### Additional Information
_No response_
GiteaMirror
added the bug label 2026-04-19 22:44:54 -05:00
With that changed to self.extract_images, the issue is fixed.
<!-- gh-comment-id:2852214493 -->
@Ithanil commented on GitHub (May 5, 2025):
> Addressed with [27da31d](https://github.com/open-webui/open-webui/commit/27da31dc83cd971c6861b4d2b14880b094e0fd9c)
You got a typo in https://github.com/open-webui/open-webui/commit/27da31dc83cd971c6861b4d2b14880b094e0fd9c#diff-0b4b3ab68e30306025729397027258e03c072d2ae9866e909b5e4dc4dbc68492R93
`self.exextract_images`
With that changed to `self.extract_images`, the issue is fixed.
I just updated to version 0.6.6, but now whenever I try to upload an .MD file to the knowledge bases, I get an error. I tested it by switching between Tika and Docling, but the behavior remains the same. I tried uploading a .txt file and it works without any problem.
2025-05-05T20:07:09.873168069Z fastapi.exceptions.HTTPException: 400: 'TikaLoader' object has no attribute 'kwargs'
2025-05-05T20:12:01.286498752Z File "/app/backend/open_webui/routers/retrieval.py", line 1194, in process_file
2025-05-05T20:12:01.286508205Z raise HTTPException(
2025-05-05T20:12:01.286515055Z └ <class 'fastapi.exceptions.HTTPException'>
2025-05-05T20:12:01.286526702Z
2025-05-05T20:12:01.286531688Z fastapi.exceptions.HTTPException: 400: HTTPConnectionPool(host='localhost', port=5001): Max retries exceeded with url: /v1alpha/convert/file (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc36aba0e90>: Failed to establish a new connection: [Errno 111] Connection refused'))
TXT Working
2025-05-05T20:13:13.601838735Z 2025-05-05 20:13:13.396 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:885 - save_docs_to_vector_db: document n8n-docs.txt - {}
<!-- gh-comment-id:2853984022 -->
@jotaperez3 commented on GitHub (May 6, 2025):
I just updated to version 0.6.6, but now whenever I try to upload an .MD file to the knowledge bases, I get an error. I tested it by switching between Tika and Docling, but the behavior remains the same. I tried uploading a .txt file and it works without any problem.
2025-05-05T20:07:09.873168069Z fastapi.exceptions.HTTPException: 400: 'TikaLoader' object has no attribute 'kwargs'
2025-05-05T20:12:01.286498752Z File "/app/backend/open_webui/routers/retrieval.py", line 1194, in process_file
2025-05-05T20:12:01.286508205Z raise HTTPException(
2025-05-05T20:12:01.286515055Z └ <class 'fastapi.exceptions.HTTPException'>
2025-05-05T20:12:01.286526702Z
2025-05-05T20:12:01.286531688Z fastapi.exceptions.HTTPException: 400: HTTPConnectionPool(host='localhost', port=5001): Max retries exceeded with url: /v1alpha/convert/file (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc36aba0e90>: Failed to establish a new connection: [Errno 111] Connection refused'))
TXT Working
2025-05-05T20:13:13.601838735Z 2025-05-05 20:13:13.396 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:885 - save_docs_to_vector_db: document n8n-docs.txt - {}
@danialkhatib @galvanoid even on dev? Or are you still on 0.6.6.
0.6.7 will probably release soon. Test on dev if the issue is fixed for you there.
<!-- gh-comment-id:2855234318 -->
@Classic298 commented on GitHub (May 6, 2025):
@danialkhatib @galvanoid even on dev? Or are you still on 0.6.6.
0.6.7 will probably release soon. Test on dev if the issue is fixed for you there.
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 @nszceta on GitHub (May 5, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13519
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
0.6.6
Ollama Version (if applicable)
No response
Operating System
Arch Linux
Browser (if applicable)
136.0.7103.59 (Official Build, ungoogled-chromium) (64-bit)
Confirmation
README.md.Expected Behavior
I expected the uploaded PDF to be processed with Tika.
Actual Behavior
Yellow toast notification shows up telling me that 'TikaLoader' object has no attribute 'kwargs' and the docker logs indicate total failure to process the file.
Steps to Reproduce
Logs & Screenshots
Browser logs:
Docker logs:
Additional Information
No response
@Classic298 commented on GitHub (May 5, 2025):
Related? https://github.com/open-webui/open-webui/pull/13518
@tjbck commented on GitHub (May 5, 2025):
Addressed with
27da31dc83@Ithanil commented on GitHub (May 5, 2025):
You got a typo in https://github.com/open-webui/open-webui/commit/27da31dc83cd971c6861b4d2b14880b094e0fd9c#diff-0b4b3ab68e30306025729397027258e03c072d2ae9866e909b5e4dc4dbc68492R93
self.exextract_imagesWith that changed to
self.extract_images, the issue is fixed.@Classic298 commented on GitHub (May 5, 2025):
Good catch. I didn't even notice it
@jotaperez3 commented on GitHub (May 6, 2025):
I just updated to version 0.6.6, but now whenever I try to upload an .MD file to the knowledge bases, I get an error. I tested it by switching between Tika and Docling, but the behavior remains the same. I tried uploading a .txt file and it works without any problem.
2025-05-05T20:07:09.873168069Z fastapi.exceptions.HTTPException: 400: 'TikaLoader' object has no attribute 'kwargs'
2025-05-05T20:12:01.286498752Z File "/app/backend/open_webui/routers/retrieval.py", line 1194, in process_file
2025-05-05T20:12:01.286508205Z raise HTTPException(
2025-05-05T20:12:01.286515055Z └ <class 'fastapi.exceptions.HTTPException'>
2025-05-05T20:12:01.286526702Z
2025-05-05T20:12:01.286531688Z fastapi.exceptions.HTTPException: 400: HTTPConnectionPool(host='localhost', port=5001): Max retries exceeded with url: /v1alpha/convert/file (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc36aba0e90>: Failed to establish a new connection: [Errno 111] Connection refused'))
TXT Working
2025-05-05T20:13:13.601838735Z 2025-05-05 20:13:13.396 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:885 - save_docs_to_vector_db: document n8n-docs.txt - {}
@Classic298 commented on GitHub (May 6, 2025):
@jotaperez3 fixed in dev
So it will be fixed in the next 0.6.7
@danialkhatib commented on GitHub (May 6, 2025):
i have the same issue :)))
@galvanoid commented on GitHub (May 6, 2025):
Same issue here.
@Classic298 commented on GitHub (May 6, 2025):
@danialkhatib @galvanoid even on dev? Or are you still on 0.6.6.
0.6.7 will probably release soon. Test on dev if the issue is fixed for you there.