[GH-ISSUE #6642] 524 Error from Cloudflare while loading big file for embedding. #14432

Closed
opened 2026-04-19 20:47:40 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @alesha-pro on GitHub (Nov 1, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/6642

Bug Report

I am trying to upload a 340 page pdf file (book) to the knowledge base, about 14mb. I am using ollama to build embeddings. The process is going on, I can see in the logs that the chunks are vectorized, but the connection is open in the browser. That is, the request has gone and is waiting for a response until the whole file is successfully vectorized and a confirmation is sent to the frontend. Now the connection fails with 524 error, but the embedding process continues on the backend.

Installation Method

Helm Chart installation

Environment

  • Open WebUI Version: v0.3.35

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:

The file is successfully uploaded to the knowledge base.

Actual Behavior:

I'm getting error 524 from Cloudflare because a timeout has passed and the connection is still open.

Reproduction Details

Steps to Reproduce:
I use DNS from Cloudflare try uploading a large file to the knowledge base.

Additional Information

In my opinion the problem is pretty clear. You could use some web hack to notify the frontend that a file has been successfully uploaded to the vector storage, or something like that. Lots of ways.

Screenshot

image

Originally created by @alesha-pro on GitHub (Nov 1, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/6642 # Bug Report I am trying to upload a 340 page pdf file (book) to the knowledge base, about 14mb. I am using ollama to build embeddings. The process is going on, I can see in the logs that the chunks are vectorized, but the connection is open in the browser. That is, the request has gone and is waiting for a response until the whole file is successfully vectorized and a confirmation is sent to the frontend. Now the connection fails with 524 error, but the embedding process continues on the backend. ## Installation Method Helm Chart installation ## Environment - **Open WebUI Version:** v0.3.35 **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. - [] I have included the browser console logs. - [ ] 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: The file is successfully uploaded to the knowledge base. ## Actual Behavior: I'm getting error 524 from Cloudflare because a timeout has passed and the connection is still open. ## Reproduction Details **Steps to Reproduce:** I use DNS from Cloudflare try uploading a large file to the knowledge base. ## Additional Information In my opinion the problem is pretty clear. You could use some web hack to notify the frontend that a file has been successfully uploaded to the vector storage, or something like that. Lots of ways. ## Screenshot ![image](https://github.com/user-attachments/assets/6a998789-a423-4527-b1d4-d5d35b5668ec)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#14432