The Error:a value is required for '--index-url <INDEX_URL>' but none was supplied #13481

Closed
opened 2026-02-21 19:12:20 -05:00 by yindo · 2 comments
Owner

Originally created by @dx19500 on GitHub (Apr 28, 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.3.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

After upgrading to version 1.3.1, I encountered an error while installing a plugin:
[ERROR] init environment failed: failed to install dependencies: exit status 2, output: error: a value is required for '--index-url <INDEX_URL>' but none was supplied

Image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @dx19500 on GitHub (Apr 28, 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.3.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce After upgrading to version 1.3.1, I encountered an error while installing a plugin: [ERROR] init environment failed: failed to install dependencies: exit status 2, output: error: a value is required for '--index-url <INDEX_URL>' but none was supplied ![Image](https://github.com/user-attachments/assets/8f15cc45-aa08-4b75-bfa2-158849bcd051) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 19:12:20 -05:00
yindo closed this issue 2026-02-21 19:12:20 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 28, 2025):

Hello @dx19500! I'm Dosu, here to help you with bugs, questions, and becoming a contributor while you wait for a human maintainer. Let's tackle this issue together!

To resolve the error "a value is required for '--index-url <INDEX_URL>' but none was supplied" when installing a plugin after upgrading to Dify version 1.3.1 on a self-hosted Docker environment, you need to provide a value for the PIP_MIRROR_URL environment variable in your Docker Compose configuration.

In the plugin_daemon service section of your docker-compose-template.yaml, set the PIP_MIRROR_URL environment variable to a valid index URL. For example:

plugin_daemon:
  image: langgenius/dify-plugin-daemon:0.0.9-local
  restart: always
  environment:
    # Other environment variables...
    PIP_MIRROR_URL: https://pypi.org/simple
  # Other configurations...

This should resolve the error by supplying the required index URL for the plugin installation process [1].

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 (Apr 28, 2025): <!-- Greeting --> Hello @dx19500! I'm [Dosu](https://dosu.dev), here to help you with bugs, questions, and becoming a contributor while you wait for a human maintainer. Let's tackle this issue together! <!-- Answer --> To resolve the error "a value is required for '--index-url <INDEX_URL>' but none was supplied" when installing a plugin after upgrading to Dify version 1.3.1 on a self-hosted Docker environment, you need to provide a value for the `PIP_MIRROR_URL` environment variable in your Docker Compose configuration. In the `plugin_daemon` service section of your `docker-compose-template.yaml`, set the `PIP_MIRROR_URL` environment variable to a valid index URL. For example: ```yaml plugin_daemon: image: langgenius/dify-plugin-daemon:0.0.9-local restart: always environment: # Other environment variables... PIP_MIRROR_URL: https://pypi.org/simple # Other configurations... ``` This should resolve the error by supplying the required index URL for the plugin installation process <sup>[[1]](https://github.com/langgenius/dify/blob/main/docker/docker-compose-template.yaml)</sup>. <!-- 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/c910f870-8dae-4cee-8aa1-a35a543dc9ea?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/c910f870-8dae-4cee-8aa1-a35a543dc9ea?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/c910f870-8dae-4cee-8aa1-a35a543dc9ea?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/c910f870-8dae-4cee-8aa1-a35a543dc9ea?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c910f870-8dae-4cee-8aa1-a35a543dc9ea?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/c910f870-8dae-4cee-8aa1-a35a543dc9ea?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c910f870-8dae-4cee-8aa1-a35a543dc9ea?feedback_type=other)</sup>
Author
Owner

@dx19500 commented on GitHub (Apr 28, 2025):

ok,thanks

@dx19500 commented on GitHub (Apr 28, 2025): ok,thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13481