File upload hangs, unable to upload files. #3029

Closed
opened 2025-11-11 15:20:03 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @alexnederlof on GitHub (Dec 16, 2024).

Installation Method

Kubernetes through provided helm chart

Environment

  • Open WebUI Version: 0.4.8
  • Operating System: Linux
  • Browser (if applicable): Chrome

Running behind Istio load balancer.

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on 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 the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

Uploading any file by dragging it into a conversation works.

Actual Behavior:

  • Drag a file into the UI ( a simple hello.txt with contents "hello" for this example)
  • File upload starts, UI spinner is shown
  • I see POST api/v1/files/ happen
  • This hangs until the gateway times out.

During that period, on the kubernetes pod we see:

open-webui-0 open-webui WARNI [python_multipart.multipart] Skipping data after last boundary
open-webui-0 open-webui INFO  [open_webui.apps.webui.routers.files] file.content_type: text/plain
open-webui-0 open-webui INFO  [open_webui.apps.retrieval.main] save_docs_to_vector_db: document hello.txt file-3c8907c2-5b0e-412e-b25d-6fda724df2e0
open-webui-0 open-webui Collection file-3c8907c2-5b0e-412e-b25d-6fda724df2e0 does not exist.
open-webui-0 open-webui INFO  [open_webui.apps.retrieval.main] adding to collection file-3c8907c2-5b0e-412e
![Uploading Screenshot 2024-12-16 at 21.01.31.png…]()
-b25d-6fda724df2e0

Description

Bug Summary:
Seems like the server never responds, even though it correctly reads the file. If it's a PDF, I also see Tikka trigger and extract the contents correctly.

Reproduction Details

Steps to Reproduce:
[Outline the steps to reproduce the bug. Be as detailed as possible.]

Logs and Screenshots

Browser Console Logs:

MessageInput.svelte:224 DragEvent {isTrusted: true, dataTransfer: DataTransfer, screenX: 1353, screenY: 707, clientX: 1103, …}
MessageInput.svelte:229 [File]
MessageInput.svelte:164 File {name: 'hello.txt', lastModified: 1734379218778, lastModifiedDate: Mon Dec 16 2024 21:00:18 GMT+0100 (Central European Standard Time), webkitRelativePath: '', size: 6, …} 'txt'
MessageInput.svelte:97 File {name: 'hello.txt', lastModified: 1734379218778, lastModifiedDate: Mon Dec 16 2024 21:00:18 GMT+0100 (Central European Standard Time), webkitRelativePath: '', size: 6, …}
FileItemModal.svelte:21 {type: 'file', file: '', id: null, url: '', name: 'hello.txt', …}
MessageInput.svelte:619 format PDF with pages and content.
Chat.svelte:837 submitPrompt What’s in this file 
index.ts:8 
        
        
       POST https://my.domain/api/v1/files/ 504 (Gateway Timeout)
window.fetch @ fetcher.js:76
c @ index.ts:8
k @ MessageInput.svelte:139
(anonymous) @ MessageInput.svelte:195
B @ MessageInput.svelte:163
oe @ MessageInput.svelte:230
index.ts:22 SyntaxError: Unexpected token 'u', "upstream r"... is not valid JSON

Docker Container Logs:

open-webui-0 open-webui WARNI [python_multipart.multipart] Skipping data after last boundary
open-webui-0 open-webui INFO  [open_webui.apps.webui.routers.files] file.content_type: text/plain
open-webui-0 open-webui INFO  [open_webui.apps.retrieval.main] save_docs_to_vector_db: document hello.txt file-3c8907c2-5b0e-412e-b25d-6fda724df2e0
open-webui-0 open-webui Collection file-3c8907c2-5b0e-412e-b25d-6fda724df2e0 does not exist.
open-webui-0 open-webui INFO  [open_webui.apps.retrieval.main] adding to collection file-3c8907c2-5b0e-412e
![Uploading Screenshot 2024-12-16 at 21.01.31.png…]()
-b25d-6fda724df2e0

Screen shots
Screenshot 2024-12-16 at 21 09 20

Originally created by @alexnederlof on GitHub (Dec 16, 2024). ## Installation Method Kubernetes through provided helm chart ## Environment - **Open WebUI Version:** 0.4.8 - **Operating System:** Linux - **Browser (if applicable):** Chrome Running behind Istio load balancer. **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on 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 the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: Uploading any file by dragging it into a conversation works. ## Actual Behavior: - Drag a file into the UI ( a simple hello.txt with contents "hello" for this example) - File upload starts, UI spinner is shown - I see `POST api/v1/files/` happen - This hangs until the gateway times out. During that period, on the kubernetes pod we see: ``` open-webui-0 open-webui WARNI [python_multipart.multipart] Skipping data after last boundary open-webui-0 open-webui INFO [open_webui.apps.webui.routers.files] file.content_type: text/plain open-webui-0 open-webui INFO [open_webui.apps.retrieval.main] save_docs_to_vector_db: document hello.txt file-3c8907c2-5b0e-412e-b25d-6fda724df2e0 open-webui-0 open-webui Collection file-3c8907c2-5b0e-412e-b25d-6fda724df2e0 does not exist. open-webui-0 open-webui INFO [open_webui.apps.retrieval.main] adding to collection file-3c8907c2-5b0e-412e ![Uploading Screenshot 2024-12-16 at 21.01.31.png…]() -b25d-6fda724df2e0 ``` ## Description **Bug Summary:** Seems like the server never responds, even though it correctly reads the file. If it's a PDF, I also see Tikka trigger and extract the contents correctly. ## Reproduction Details **Steps to Reproduce:** [Outline the steps to reproduce the bug. Be as detailed as possible.] ## Logs and Screenshots **Browser Console Logs:** ``` MessageInput.svelte:224 DragEvent {isTrusted: true, dataTransfer: DataTransfer, screenX: 1353, screenY: 707, clientX: 1103, …} MessageInput.svelte:229 [File] MessageInput.svelte:164 File {name: 'hello.txt', lastModified: 1734379218778, lastModifiedDate: Mon Dec 16 2024 21:00:18 GMT+0100 (Central European Standard Time), webkitRelativePath: '', size: 6, …} 'txt' MessageInput.svelte:97 File {name: 'hello.txt', lastModified: 1734379218778, lastModifiedDate: Mon Dec 16 2024 21:00:18 GMT+0100 (Central European Standard Time), webkitRelativePath: '', size: 6, …} FileItemModal.svelte:21 {type: 'file', file: '', id: null, url: '', name: 'hello.txt', …} MessageInput.svelte:619 format PDF with pages and content. Chat.svelte:837 submitPrompt What’s in this file index.ts:8 POST https://my.domain/api/v1/files/ 504 (Gateway Timeout) window.fetch @ fetcher.js:76 c @ index.ts:8 k @ MessageInput.svelte:139 (anonymous) @ MessageInput.svelte:195 B @ MessageInput.svelte:163 oe @ MessageInput.svelte:230 index.ts:22 SyntaxError: Unexpected token 'u', "upstream r"... is not valid JSON ``` **Docker Container Logs:** ``` open-webui-0 open-webui WARNI [python_multipart.multipart] Skipping data after last boundary open-webui-0 open-webui INFO [open_webui.apps.webui.routers.files] file.content_type: text/plain open-webui-0 open-webui INFO [open_webui.apps.retrieval.main] save_docs_to_vector_db: document hello.txt file-3c8907c2-5b0e-412e-b25d-6fda724df2e0 open-webui-0 open-webui Collection file-3c8907c2-5b0e-412e-b25d-6fda724df2e0 does not exist. open-webui-0 open-webui INFO [open_webui.apps.retrieval.main] adding to collection file-3c8907c2-5b0e-412e ![Uploading Screenshot 2024-12-16 at 21.01.31.png…]() -b25d-6fda724df2e0 ``` **Screen shots** <img width="816" alt="Screenshot 2024-12-16 at 21 09 20" src="https://github.com/user-attachments/assets/45c68afd-7733-4bb0-9dc8-751a3e256c96" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#3029