Plugin installation failed #247

Open
opened 2026-02-16 01:15:07 -05:00 by yindo · 1 comment
Owner

Originally created by @AlanChan1993 on GitHub (Feb 11, 2026).

Versions

  1. dify-plugin-daemon Version :0.4.1-local
  2. dify-api Version:1.10.1

Describe the bug
A clear and concise description of what the bug is.

The plugin installation failed. When checking the log, an error was reported below. The tool_installations table also exists.

plugin_daemon-1 | 2026/02/12 00:46:38 /app/internal/db/executor.go:259 record not found
plugin_daemon-1 | [1.514ms] [rows:0] SELECT * FROM "plugins" WHERE plugin_unique_identifier = 'langgenius/github:0.3.2@1cb2f90ea05bbc7987fd712aff0a07594073816269125603dc2fa5b4229eb122' ORDER BY "plugins"."id" LIMIT 1
plugin_daemon-1 | [GIN] 2026/02/12 - 00:46:38 | 200 | 9.972881ms | 172.19.0.10 | POST "/plugin/c4360858-f77c-4d87-b257-bfee6b99c8b9/management/install/identifiers"
plugin_daemon-1 | [GIN] 2026/02/12 - 00:46:39 | 200 | 1.05366ms | 172.19.0.10 | GET "/plugin/c4360858-f77c-4d87-b257-bfee6b99c8b9/management/install/tasks/c9e1d95c-7a2e-4da8-8f41-6f767b3a9e80"
plugin_daemon-1 | [GIN] 2026/02/12 - 00:46:39 | 200 | 1.121886ms | 172.19.0.10 | GET "/plugin/c4360858-f77c-4d87-b257-bfee6b99c8b9/management/install/tasks?page=1&page_size=100"
plugin_daemon-1 | 2026/02/12 00:46:39 full_duplex.go:27: [INFO]new plugin logged in: langgenius/github:0.3.2
plugin_daemon-1 | 2026/02/12 00:46:39 full_duplex.go:59: [INFO]init environment for plugin langgenius/github:0.3.2
plugin_daemon-1 | [GIN] 2026/02/12 - 00:46:44 | 200 | 1.540536ms | 172.19.0.10 | GET "/plugin/c4360858-f77c-4d87-b257-bfee6b99c8b9/management/install/tasks?page=1&page_size=100"
plugin_daemon-1 | 2026/02/12 00:46:46 full_duplex.go:65: [ERROR]init environment failed: failed to install dependencies: exit status 2, output: error: Failed to fetch: https://files.pythonhosted.org/packages/b2/65/044a4f7a98d3d3da07b88a19553026a2d40ad83bb6828e20a639e613db85/dify_plugin-0.6.0b10-py3-none-any.whl.metadata

Originally created by @AlanChan1993 on GitHub (Feb 11, 2026). **Versions** 1. dify-plugin-daemon Version :0.4.1-local 2. dify-api Version:1.10.1 **Describe the bug** A clear and concise description of what the bug is. The plugin installation failed. When checking the log, an error was reported below. The tool_installations table also exists. plugin_daemon-1 | 2026/02/12 00:46:38 /app/internal/db/executor.go:259 record not found plugin_daemon-1 | [1.514ms] [rows:0] SELECT * FROM "plugins" WHERE plugin_unique_identifier = 'langgenius/github:0.3.2@1cb2f90ea05bbc7987fd712aff0a07594073816269125603dc2fa5b4229eb122' ORDER BY "plugins"."id" LIMIT 1 plugin_daemon-1 | [GIN] 2026/02/12 - 00:46:38 | 200 | 9.972881ms | 172.19.0.10 | POST "/plugin/c4360858-f77c-4d87-b257-bfee6b99c8b9/management/install/identifiers" plugin_daemon-1 | [GIN] 2026/02/12 - 00:46:39 | 200 | 1.05366ms | 172.19.0.10 | GET "/plugin/c4360858-f77c-4d87-b257-bfee6b99c8b9/management/install/tasks/c9e1d95c-7a2e-4da8-8f41-6f767b3a9e80" plugin_daemon-1 | [GIN] 2026/02/12 - 00:46:39 | 200 | 1.121886ms | 172.19.0.10 | GET "/plugin/c4360858-f77c-4d87-b257-bfee6b99c8b9/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | 2026/02/12 00:46:39 full_duplex.go:27: [INFO]new plugin logged in: langgenius/github:0.3.2 plugin_daemon-1 | 2026/02/12 00:46:39 full_duplex.go:59: [INFO]init environment for plugin langgenius/github:0.3.2 plugin_daemon-1 | [GIN] 2026/02/12 - 00:46:44 | 200 | 1.540536ms | 172.19.0.10 | GET "/plugin/c4360858-f77c-4d87-b257-bfee6b99c8b9/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | 2026/02/12 00:46:46 full_duplex.go:65: [ERROR]init environment failed: failed to install dependencies: exit status 2, output: error: Failed to fetch: `https://files.pythonhosted.org/packages/b2/65/044a4f7a98d3d3da07b88a19553026a2d40ad83bb6828e20a639e613db85/dify_plugin-0.6.0b10-py3-none-any.whl.metadata`
yindo added the plugin-daemonbug labels 2026-02-16 01:15:07 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 11, 2026):

The error Failed to fetch: https://files.pythonhosted.org/... indicates a network connectivity issue when the plugin daemon tries to download Python dependencies. This is a commonly reported issue.

Most likely causes and solutions:

  1. Proxy/Network misconfiguration - If you're using a proxy, add this to your .env:

    no_proxy=localhost,127.0.0.1,db,redis,plugin_daemon,api
    
  2. SSL/TLS issues (especially behind corporate proxies) - Add this environment variable:

    PIP_EXTRA_ARGS="--native-tls"
    
  3. Use a PyPI mirror - If files.pythonhosted.org is blocked or slow in your region, try:

    PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple
    

Quick debugging steps:

  • Test if you can reach files.pythonhosted.org from inside the plugin_daemon container
  • Enable verbose logging with PIP_VERBOSE=1 to see more details

Can you confirm whether you're behind a corporate proxy or if there are any network restrictions in your environment?

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Feb 11, 2026): <!-- Answer --> The error `Failed to fetch: https://files.pythonhosted.org/...` indicates a **network connectivity issue** when the plugin daemon tries to download Python dependencies. This is a [commonly reported issue](https://github.com/langgenius/dify-plugin-daemon/issues/373#issuecomment-3047313625). **Most likely causes and solutions:** 1. **Proxy/Network misconfiguration** - If you're using a proxy, add this to your `.env`: ``` no_proxy=localhost,127.0.0.1,db,redis,plugin_daemon,api ``` 2. **SSL/TLS issues** (especially behind corporate proxies) - Add this environment variable: ``` PIP_EXTRA_ARGS="--native-tls" ``` 3. **Use a PyPI mirror** - If `files.pythonhosted.org` is blocked or slow in your region, try: ``` PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple ``` **Quick debugging steps:** - Test if you can reach `files.pythonhosted.org` from inside the plugin_daemon container - Enable verbose logging with `PIP_VERBOSE=1` to see more details Can you confirm whether you're behind a corporate proxy or if there are any network restrictions in your environment? <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/c2d628b7-bba6-4082-89a5-1a0b786e28d7?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/c2d628b7-bba6-4082-89a5-1a0b786e28d7?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/c2d628b7-bba6-4082-89a5-1a0b786e28d7?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/c2d628b7-bba6-4082-89a5-1a0b786e28d7?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c2d628b7-bba6-4082-89a5-1a0b786e28d7?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/c2d628b7-bba6-4082-89a5-1a0b786e28d7?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c2d628b7-bba6-4082-89a5-1a0b786e28d7?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20error%20%60Failed%20to%20fetch%3A%20https%3A//files.pythonhosted.org/...%60%20indicates%20a%20%2A%2Anetwork%20connectivity%20issue%2A%2A%20when%20the%20plugin%20daemon%20tries%20to%20download%20Python%20dependencies.%20This%20is%20a%20%5Bcommonly%20reported%20issue%5D%28https%3A//github.com/langgenius/dify-plugin-daemon/issues/373%23issuecomment-3047313625%29.%0A%0A%2A%2AMost%20likely%20causes%20and%20solutions%3A%2A%2A%0A%0A1.%20%2A%2AProxy/Network%20misconfiguration%2A%2A%20-%20If%20you%27re%20using%20a%20proxy%2C%20add%20this%20to%20your%20%60.env%60%3A%0A%20%20%20%60%60%60%0A%20%20%20no_proxy%3Dlocalhost%2C127.0.0.1%2Cdb%2Credis%2Cplugin_daemon%2Capi%0A%20%20%20%60%60%60%0A%0A2.%20%2A%2ASSL/TLS%20issues%2A%2A%20%28especially%20behind%20corporate%20proxies%29%20-%20Add%20this%20environment%20variable%3A%0A%20%20%20%60%60%60%0A%20%20%20PIP_EXTRA_ARGS%3D%22--native-tls%22%0A%20%20%20%60%60%60%0A%0A3.%20%2A%2AUse%20a%20PyPI%20mirror%2A%2A%20-%20If%20%60files.pythonhosted.org%60%20is%20blocked%20or%20slow%20in%20your%20region%2C%20try%3A%0A%20%20%20%60%60%60%0A%20%20%20PIP_MIRROR_URL%3Dhttps%3A//pypi.tuna.tsinghua.edu.cn/simple%0A%20%20%20%60%60%60%0A%0A%2A%2AQuick%20debugging%20steps%3A%2A%2A%0A-%20Test%20if%20you%20can%20reach%20%60files.pythonhosted.org%60%20from%20inside%20the%20plugin_daemon%20container%0A-%20Enable%20verbose%20logging%20with%20%60PIP_VERBOSE%3D1%60%20to%20see%20more%20details%0A%0ACan%20you%20confirm%20whether%20you%27re%20behind%20a%20corporate%20proxy%20or%20if%20there%20are%20any%20network%20restrictions%20in%20your%20environment%3F)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-plugin-daemon/issues/607)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#247