dify icon indicating copy to clipboard operation
dify copied to clipboard

Model supplier unable to install

Open qkyy521314 opened this issue 9 months ago • 11 comments

Self Checks

  • [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [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] [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

Select model supplier, click install, error 400 will be reported later

✔️ Expected Behavior

The model supplier can install it normally

❌ Actual Behavior

error 400 will be reported later

qkyy521314 avatar Mar 05 '25 09:03 qkyy521314

@qkyy521314 Hello there! I'm here to help you with bugs, questions, or becoming a contributor. Just waiting for a human maintainer to assist you.

I found a similar issue related to a 400 error when trying to install a model supplier in Dify version 1.0.0 on a self-hosted Docker setup. The suggested solution involves the following steps:

  1. Download the .difypkg file of the desired plugin from the Dify marketplace.
  2. In the Dify web interface, use the local file installation option.
  3. Upload the downloaded .difypkg file.
  4. Wait for the installation to complete, as it may take some time.
  5. If the plugin doesn't appear in the installed plugins list, check the Docker container logs using docker logs container_name and try reinstalling if the logs show successful installation [1].

Additionally, ensure that your proxy settings are correctly configured, as proxy issues can also lead to connection errors [2].

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] avatar Mar 05 '25 09:03 dosubot[bot]

Error content { "code": "invalid_param", "message": "Reached maximum retries (3) for URL https://marketplace.dify.ai/api/v1/plugins/download?unique_identifier=langgenius/ollama:0.0.3@9ded90ac00e8510119a24be7396ba77191c9610d5e1e29f59d68fa1229822fc7", "status": 400 }

The actual marketplace URL path has been changed, but it cannot be configured

qkyy521314 avatar Mar 05 '25 09:03 qkyy521314

@dosu I have downloaded .difypkg file. Tring to install from local file,but failed。which log I should check。

I run the command:“docker logs docker-api-1 --tail 50” 2025-03-05 13:50:39.988 WARNING [Dummy-49] [version.py:37] - Check update version error: HTTPSConnectionPool(host='updates.dify.ai', port=443): Max retries exceeded with url: /?current_version=1.0.0 (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fc962e19ac0>: Failed to resolve 'updates.dify.ai' ([Errno -3] Temporary failure in name resolution)")). 2025-03-05 13:52:43.025 WARNING [Dummy-50] [version.py:37] - Check update version error: HTTPSConnectionPool(host='updates.dify.ai', port=443): Max retries exceeded with url: /?current_version=1.0.0 (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fc962d01a90>: Failed to resolve 'updates.dify.ai' ([Errno -3] Temporary failure in name resolution)")). 2025-03-05 13:55:58.891 WARNING [Dummy-51] [version.py:37] - Check update version error: HTTPSConnectionPool(host='updates.dify.ai', port=443): Max retries exceeded with url: /?current_version=1.0.0 (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fc967197ef0>: Failed to resolve 'updates.dify.ai' ([Errno -3] Temporary failure in name resolution)")). 2025-03-05 13:56:06.430 WARNING [Dummy-52] [version.py:37] - Check update version error: HTTPSConnectionPool(host='updates.dify.ai', port=443): Max retries exceeded with url: /?current_version=1.0.0 (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fc962bc0bf0>: Failed to resolve 'updates.dify.ai' ([Errno -3] Temporary failure in name resolution)")). 2025-03-05 13:59:57.176 WARNING [Dummy-53] [version.py:37] - Check update version error: HTTPSConnectionPool(host='updates.dify.ai', port=443): Max retries exceeded with url: /?current_version=1.0.0 (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fc962bcac30>: Failed to resolve 'updates.dify.ai' ([Errno -3] Temporary failure in name resolution)")). 2025-03-05 14:01:46.037 WARNING [Dummy-54] [version.py:37] - Check update version error: HTTPSConnectionPool(host='updates.dify.ai', port=443): Max retries exceeded with url: /?current_version=1.0.0 (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fc962bcbf20>: Failed to resolve 'updates.dify.ai' ([Errno -3] Temporary failure in name resolution)")). 2025-03-05 14:01:58.310 WARNING [Dummy-55] [version.py:37] - Check update version error: HTTPSConnectionPool(host='updates.dify.ai', port=443): Max retries exceeded with url: /?current_version=1.0.0 (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fc962bc2cf0>: Failed to resolve 'updates.dify.ai' ([Errno -3] Temporary failure in name resolution)")). 2025-03-05 14:02:37.943 WARNING [Dummy-56] [version.py:37] - Check update version error: HTTPSConnectionPool(host='updates.dify.ai', port=443): Max retries exceeded with url: /?current_version=1.0.0 (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fc962bc88f0>: Failed to resolve 'updates.dify.ai' ([Errno -3] Temporary failure in name resolution)")). 2025-03-05 14:07:11.405 WARNING [Dummy-57] [version.py:37] - Check update version error: HTTPSConnectionPool(host='updates.dify.ai', port=443): Max retries exceeded with url: /?current_version=1.0.0 (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fc962d21700>: Failed to resolve 'updates.dify.ai' ([Errno -3] Temporary failure in name resolution)")).

llllllllu avatar Mar 05 '25 14:03 llllllllu

The error message indicates that the maximum retries for downloading a plugin from the marketplace URL have been reached, resulting in a 400 error. This could be due to an incorrect marketplace URL configuration. To address this, ensure that the environment variables NEXT_PUBLIC_MARKETPLACE_API_PREFIX and NEXT_PUBLIC_MARKETPLACE_URL_PREFIX are correctly set. If these are not set, the application will attempt to retrieve the values from the HTML document's body attributes data-marketplace-api-prefix and data-marketplace-url-prefix. If neither is available, the default values will be empty strings, which might cause issues [1].

Regarding the logs, the repeated "NameResolutionError" suggests a DNS resolution issue within your Docker environment. This could be causing the failure to resolve the marketplace URL. You might want to check your Docker DNS settings or ensure that your Docker containers have access to the internet for proper DNS resolution.

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] avatar Mar 05 '25 14:03 dosubot[bot]

@dosu Dify version 1.0.0

Cloud or Self Hosted Self Hosted (Docker) ,I install from local file,Why docker containers has to access to the internet ?

llllllllu avatar Mar 05 '25 14:03 llllllllu

How to fix it? While install model or tool would occur this error...

leechenxiang avatar Mar 06 '25 13:03 leechenxiang

Same issue.

IncubatorShokuhou avatar Mar 07 '25 07:03 IncubatorShokuhou

same issue.

In the case of a local installation, is it possible to only install files without internet access?

kyou-sd avatar Mar 07 '25 11:03 kyou-sd

#15256 Hope this article can help you all.

Besides, Dify.AI is VULNERABLE to high concurrency.

So this article also gives you a path for operation fluently: Distribution System.

nakanojinharuka avatar Mar 08 '25 13:03 nakanojinharuka

解决了吗?我用1.1.0还是这个问题

breathll123 avatar Mar 19 '25 07:03 breathll123

解决了吗?我用1.1.0还是这个问题

Better for lower the version from 1.x to 0.15.3 最好还是降到0.15.3

nakanojinharuka avatar Mar 20 '25 05:03 nakanojinharuka