docker run dify add RAGflow KB api error #11953

Closed
opened 2026-02-21 19:04:56 -05:00 by yindo · 6 comments
Owner

Originally created by @sevck on GitHub (Mar 21, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. in datasets my hitTesting, is work:

Image

bug ,in agent:
Image

has error,"tool invoke error: Reached maximum retries (3) for URL http://10.11.6.50:9380/api/v1/dify/retrieval"

✔️ Expected Behavior

You should go to remote datasets

Actual Behavior

"tool invoke error: Reached maximum retries (3) for URL http://10.11.6.50:9380/api/v1/dify/retrieval"

Originally created by @sevck on GitHub (Mar 21, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1. in datasets my hitTesting, is work: ![Image](https://github.com/user-attachments/assets/81f4dd11-9eca-4f09-b420-f3f4b84a08b2) bug ,in agent: ![Image](https://github.com/user-attachments/assets/3b2374a3-732d-430a-b3db-71d65fc00bc5) has error,"tool invoke error: Reached maximum retries (3) for URL http://10.11.6.50:9380/api/v1/dify/retrieval" ### ✔️ Expected Behavior You should go to remote datasets ### ❌ Actual Behavior "tool invoke error: Reached maximum retries (3) for URL http://10.11.6.50:9380/api/v1/dify/retrieval"
yindo closed this issue 2026-02-21 19:04:56 -05:00
Author
Owner

@crazywoola commented on GitHub (Mar 21, 2025):

You should set ACL for this host in this file https://github.com/langgenius/dify/blob/69746f2f0bbc6316b9475192b5bada7cc152d35c/docker/ssrf_proxy/squid.conf.template

@crazywoola commented on GitHub (Mar 21, 2025): You should set ACL for this host in this file https://github.com/langgenius/dify/blob/69746f2f0bbc6316b9475192b5bada7cc152d35c/docker/ssrf_proxy/squid.conf.template
Author
Owner

@sevck commented on GitHub (Mar 21, 2025):

@crazywoola I have add squid, but is done't work
10.11.6.50 is private ip and I have add rule: acl Safe_ports port 9380
Image

Image
@sevck commented on GitHub (Mar 21, 2025): @crazywoola I have add squid, but is done't work 10.11.6.50 is private ip and I have add rule: acl Safe_ports port 9380 ![Image](https://github.com/user-attachments/assets/45345e35-1dc1-4f79-a1e5-be0b3acba96f) <img width="987" alt="Image" src="https://github.com/user-attachments/assets/14d1cbde-f243-4e69-9fa6-ada490f5db14" />
Author
Owner

@sevck commented on GitHub (Mar 21, 2025):

I also added the knowledge base remotely, and recall testing was also available in this remote database

Image

Image

@sevck commented on GitHub (Mar 21, 2025): I also added the knowledge base remotely, and recall testing was also available in this remote database ![Image](https://github.com/user-attachments/assets/8c29a477-47b6-4fc0-b728-69f5d23eed11) ![Image](https://github.com/user-attachments/assets/0343ca58-1df6-4e57-97a7-4ce2224531c3)
Author
Owner

@Yue-Lyu123 commented on GitHub (Apr 10, 2025):

@sevck you can adjust SSRF_DEFAULT_READ_TIME_OUT SSRF_DEFAULT_TIME_OUT in dify_config to 30s 60s, it works for me.

@Yue-Lyu123 commented on GitHub (Apr 10, 2025): @sevck you can adjust `SSRF_DEFAULT_READ_TIME_OUT` `SSRF_DEFAULT_TIME_OUT` in dify_config to 30s 60s, it works for me.
Author
Owner

@Rucongzhang commented on GitHub (Apr 14, 2025):

@Yue-Lyu123 i config this, when chat with only one bot, it is effective. But when chat with two bots, the retrieval api is very slow, and error with retrieval time out. Are you meet this problem? Thanks!

@Rucongzhang commented on GitHub (Apr 14, 2025): @Yue-Lyu123 i config this, when chat with only one bot, it is effective. But when chat with two bots, the retrieval api is very slow, and error with retrieval time out. Are you meet this problem? Thanks!
Author
Owner

@Yue-Lyu123 commented on GitHub (Apr 14, 2025):

@Rucongzhang During my testing with my own knowledge base, I found that each query takes approximately 24 seconds to retrieve results. If possible, you could try splitting the knowledge base and performing searches in parallel.

@Yue-Lyu123 commented on GitHub (Apr 14, 2025): @Rucongzhang During my testing with my own knowledge base, I found that each query takes approximately 24 seconds to retrieve results. If possible, you could try splitting the knowledge base and performing searches in parallel.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#11953