ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: download failed after attempts=1: toomanyrequests: too many requests

Open lhsaq2009 opened this issue 5 months ago • 4 comments

Self Checks

  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (Language Policy).
  • [x] Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • [x] Please do not modify this template :) and fill in all the required fields.

Describe your problem

download failed after attempts=1: toomanyrequests: too many requests

lhsaq2009 avatar Aug 04 '25 15:08 lhsaq2009

The "toomanyrequests: too many requests" error means you've hit a rate limit on an external service during a download. If this happened while pulling Docker images, it's likely due to Docker Hub rate limiting—try using alternative registries like Huawei Cloud or Alibaba Cloud, or add registry mirrors in your Docker daemon.json and restart Docker. Waiting a while and retrying can also help, as rate limits reset after some time (details).

If the error occurs when downloading models (e.g., from Hugging Face) or during document parsing/embedding, it's usually because too many requests are sent in parallel. Lowering concurrency by setting environment variables like MAX_CONCURRENT_CHATS and MAX_CONCURRENT_TASKS to 2 or 4, or processing one document at a time, can help avoid rate limits (details). The nightly Docker image of RAGFlow also has lower concurrency limits built in.

For LLM API requests, RAGFlow uses exponential backoff and retry logic, configurable with LLM_MAX_RETRIES and LLM_BASE_DELAY environment variables (details). If you keep seeing this error, try lowering concurrency further and monitor logs for quota or permission issues, especially if the error happens during file upload or parsing.

If you can share more about which operation triggered the error, I can help with more specific troubleshooting.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

dosubot[bot] avatar Aug 04 '25 15:08 dosubot[bot]

请问解决了吗?我也出现了同样的问题。

haomiemie avatar Oct 20 '25 08:10 haomiemie

同样问题+1

Hakstar avatar Nov 25 '25 02:11 Hakstar

  1. try vpn
  2. try to put the code below in docker engine
{
  "builder": {
    "gc": {
      "defaultKeepStorage": "20GB",
      "enabled": true
    }
  },
  "experimental": false,
  "registry-mirrors": [
    "https://image.cloudlayer.icu",
    "https://docker.1ms.run"
  ],
  "runtimes": {
    "runsc": {
      "path": "/usr/bin/runsc"
    }
  }
}

Magicbook1108 avatar Nov 27 '25 02:11 Magicbook1108