mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #6642] 524 Error from Cloudflare while loading big file for embedding. #14432
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Confirmation:
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