Installation of plugin failed #8917

Closed
opened 2026-02-21 18:28:37 -05:00 by yindo · 5 comments
Owner

Originally created by @futureroy on GitHub (Mar 3, 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.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Installation of plugin failed

{
"code": "invalid_param",
"message": "Reached maximum retries (3) for URL https://marketplace.dify.ai/api/v1/plugins/download?unique_identifier=langgenius/xinference:0.0.2@04dee9c8396689421df7537f73ebb4b26efbcb7e0b9c32b7f09236e84bb97b3c",
"status": 400
}

✔️ Expected Behavior

Normal download

Actual Behavior

I encountered this issue after upgrading from 0.15.3 to 1.0.0

Originally created by @futureroy on GitHub (Mar 3, 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.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Installation of plugin failed { "code": "invalid_param", "message": "Reached maximum retries (3) for URL https://marketplace.dify.ai/api/v1/plugins/download?unique_identifier=langgenius/xinference:0.0.2@04dee9c8396689421df7537f73ebb4b26efbcb7e0b9c32b7f09236e84bb97b3c", "status": 400 } ### ✔️ Expected Behavior Normal download ### ❌ Actual Behavior I encountered this issue after upgrading from 0.15.3 to 1.0.0
yindo added the 🐞 bug label 2026-02-21 18:28:37 -05:00
yindo closed this issue 2026-02-21 18:28:37 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 3, 2025):

Hello @futureroy! I'm here to help you with any bugs, questions, or contributions. Let's tackle this issue together while we wait for a human maintainer.

There are similar threads regarding plugin installation failures in Dify v1.0.0. One open discussion suggests adding PLUGIN_WORKING_PATH=/app/cwd to the /dify/docker/.env file and then restarting Docker Compose to resolve the issue [1]. Another closed issue recommends placing the entire dify/docker directory on the filesystem in the WSL if you're using Docker on Windows, or adding the same PLUGIN_WORKING_PATH to your .env file to address performance issues related to file access on NTFS volumes [2].

These steps might help resolve the "Reached maximum retries" error you're encountering.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Mar 3, 2025): <!-- Greeting --> Hello @futureroy! I'm here to help you with any bugs, questions, or contributions. Let's tackle this issue together while we wait for a human maintainer. <!-- Answer --> There are similar threads regarding plugin installation failures in Dify v1.0.0. One open discussion suggests adding `PLUGIN_WORKING_PATH=/app/cwd` to the `/dify/docker/.env` file and then restarting Docker Compose to resolve the issue <sup>[[1]](https://github.com/langgenius/dify/discussions/12825)</sup>. Another closed issue recommends placing the entire `dify/docker` directory on the filesystem in the WSL if you're using Docker on Windows, or adding the same `PLUGIN_WORKING_PATH` to your `.env` file to address performance issues related to file access on NTFS volumes <sup>[[2]](https://github.com/langgenius/dify/issues/12635)</sup>. These steps might help resolve the "Reached maximum retries" error you're encountering. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/4a4d8b6b-f21d-4560-b402-d68e5b6fa1b8?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/4a4d8b6b-f21d-4560-b402-d68e5b6fa1b8?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/4a4d8b6b-f21d-4560-b402-d68e5b6fa1b8?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/4a4d8b6b-f21d-4560-b402-d68e5b6fa1b8?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4a4d8b6b-f21d-4560-b402-d68e5b6fa1b8?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/4a4d8b6b-f21d-4560-b402-d68e5b6fa1b8?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/4a4d8b6b-f21d-4560-b402-d68e5b6fa1b8?feedback_type=other)</sup>
Author
Owner

@Sakura4036 commented on GitHub (Mar 3, 2025):

+1

Self Hosted (Source)

The source code runs the api and celery worker, the rest is deployed via docker.

first issue: can not install plugins from marketplace in dify web.

Image

Image

Image

Second: Can not install plugins by command

> poetry run flask install-plugins --workers=2

2025-03-03 09:40:27.076 DEBUG [Thread-93 (process_request_thread)] [_trace.py:47] - connect_tcp.started host='ssrf_proxy' port=3128 local_address=None timeout=5.0 socket_options=None
2025-03-03 09:40:27.077 DEBUG [Thread-93 (process_request_thread)] [_trace.py:47] - connect_tcp.failed exception=ConnectError(gaierror(-2, 'Name or service not known'))
2025-03-03 09:40:27.078 WARNING [Thread-93 (process_request_thread)] [ssrf_proxy.py:61] - Request to URL https://marketplace.dify.ai/api/v1/plugins/download?unique_identifier=langgenius/tongyi:0.0.4@925a003ff416de88ca7d3624b53ea1307cf1b4bf8315924d37c7eb704230ed28 failed on attempt 4: [Errno -2] Name or service not known
...

plugins.jsonl content as followed:

{"tenant_id": "84213dd4-f5f6-46ea-baec-c02c75dbefd8", "plugins": ["langgenius/duckduckgo", "langgenius/deepseek", "langgenius/zhipuai", "langgenius/dalle", "langgenius/ollama", "langgenius/crossref", "langgenius/serper", "langgenius/wenxin", "langgenius/yahoo", "langgenius/wos", "langgenius/tongyi", "langgenius/uniprot", "langgenius/google", "langgenius/volcengine_maas", "langgenius/ncbi", "langgenius/aws", "langgenius/podcast_generator", "langgenius/searxng", "langgenius/literature", "langgenius/zhihuiya", "langgenius/tavily", "langgenius/openai_api_compatible", "langgenius/semantic", "langgenius/moonshot", "langgenius/searxng_origin", "langgenius/jina_tool", "langgenius/firecrawl", "langgenius/xinference", "langgenius/chrome_downloader", "langgenius/pdb"]}

only installed successfully with local file

Image

@Sakura4036 commented on GitHub (Mar 3, 2025): +1 ### Self Hosted (Source) The source code runs the api and celery worker, the rest is deployed via docker. ### first issue: can not install plugins from marketplace in dify web. ![Image](https://github.com/user-attachments/assets/6655543c-ca1c-441a-9886-a3c876c3e8f6) ![Image](https://github.com/user-attachments/assets/3074c4e1-cad9-4277-a0eb-33a961169e17) ![Image](https://github.com/user-attachments/assets/55034137-7fef-4216-9a3f-8e48bbfa3ef0) ### Second: Can not install plugins by command ``` > poetry run flask install-plugins --workers=2 2025-03-03 09:40:27.076 DEBUG [Thread-93 (process_request_thread)] [_trace.py:47] - connect_tcp.started host='ssrf_proxy' port=3128 local_address=None timeout=5.0 socket_options=None 2025-03-03 09:40:27.077 DEBUG [Thread-93 (process_request_thread)] [_trace.py:47] - connect_tcp.failed exception=ConnectError(gaierror(-2, 'Name or service not known')) 2025-03-03 09:40:27.078 WARNING [Thread-93 (process_request_thread)] [ssrf_proxy.py:61] - Request to URL https://marketplace.dify.ai/api/v1/plugins/download?unique_identifier=langgenius/tongyi:0.0.4@925a003ff416de88ca7d3624b53ea1307cf1b4bf8315924d37c7eb704230ed28 failed on attempt 4: [Errno -2] Name or service not known ... ``` `plugins.jsonl` content as followed: ```jsonl {"tenant_id": "84213dd4-f5f6-46ea-baec-c02c75dbefd8", "plugins": ["langgenius/duckduckgo", "langgenius/deepseek", "langgenius/zhipuai", "langgenius/dalle", "langgenius/ollama", "langgenius/crossref", "langgenius/serper", "langgenius/wenxin", "langgenius/yahoo", "langgenius/wos", "langgenius/tongyi", "langgenius/uniprot", "langgenius/google", "langgenius/volcengine_maas", "langgenius/ncbi", "langgenius/aws", "langgenius/podcast_generator", "langgenius/searxng", "langgenius/literature", "langgenius/zhihuiya", "langgenius/tavily", "langgenius/openai_api_compatible", "langgenius/semantic", "langgenius/moonshot", "langgenius/searxng_origin", "langgenius/jina_tool", "langgenius/firecrawl", "langgenius/xinference", "langgenius/chrome_downloader", "langgenius/pdb"]} ``` ### only installed successfully with local file ![Image](https://github.com/user-attachments/assets/803bb92d-440d-41f1-9763-773811d5bf65)
Author
Owner

@MarkHe735 commented on GitHub (Mar 4, 2025):

How to install the plugins with local file?, I downloaded the .difypkg and download.zip, how to install them into docker continer service

@MarkHe735 commented on GitHub (Mar 4, 2025): How to install the plugins with local file?, I downloaded the .difypkg and download.zip, how to install them into docker continer service
Author
Owner

@Sakura4036 commented on GitHub (Mar 4, 2025):

How to install the plugins with local file?, I downloaded the .difypkg and download.zip, how to install them into docker continer service

You can install plugins with local files on the dify website, as shown here, and upload the. difypkg file of the plugin you downloaded from the dify marketplace. Then wait for the installation to complete (which may take a while).

If you cannot see the plugin in the already installed plugins, you can use commands such as docker logs container_name to view the plugin's Docker container logs. If the logs show that the plugin was successfully installed, you can use the above method to reinstall the plugin again, and then you should be able to see the plugin on the dify plugin page

Image

@Sakura4036 commented on GitHub (Mar 4, 2025): > How to install the plugins with local file?, I downloaded the .difypkg and download.zip, how to install them into docker continer service You can install plugins with local files on the dify website, as shown here, and upload the. difypkg file of the plugin you downloaded from the dify marketplace. Then wait for the installation to complete (which may take a while). If you cannot see the plugin in the already installed plugins, you can use commands such as `docker logs container_name` to view the plugin's Docker container logs. If the logs show that the plugin was successfully installed, you can use the above method to reinstall the plugin again, and then you should be able to see the plugin on the dify plugin page ![Image](https://github.com/user-attachments/assets/8d21aa9e-3dd6-443b-81d4-a710bbab858f)
Author
Owner

@MarkHe735 commented on GitHub (Mar 4, 2025):

It works, Thanks a lot!^_^

@MarkHe735 commented on GitHub (Mar 4, 2025): It works, Thanks a lot!^_^
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8917