mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 10:05:23 -04:00
Plugin updates frequently fail. #811
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Moiyu1998 on GitHub (Nov 18, 2025).
Self Checks
Dify version
1.9.0
Plugin version
0.2.7
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
We frequently encounter the following issues when updating plugins. Could you please advise on how to resolve this?
✔️ Error log
plugin_daemon-1 | 2025/11/18 08:15:50 full_duplex.go:65: [ERROR]init environment failed: failed to install dependencies: exit status 1, output: Resolved 44 packages in 20ms
plugin_daemon-1 | Downloading numpy (17.1MiB)
plugin_daemon-1 | × Failed to download
numpy==1.26.4plugin_daemon-1 | ├─▶ Failed to extract archive:
plugin_daemon-1 | │ numpy-1.26.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
plugin_daemon-1 | ├─▶ I/O operation failed during extraction
plugin_daemon-1 | ╰─▶ Failed to download distribution due to network timeout. Try increasing
plugin_daemon-1 | UV_HTTP_TIMEOUT (current value: 30s).
plugin_daemon-1 | , retrying
plugin_daemon-1 | 2025/11/18 08:15:50 full_duplex.go:59: [INFO]init environment for plugin langgenius/openai:0.2.7
@dosubot[bot] commented on GitHub (Nov 18, 2025):
Frequent plugin update failures during dependency installation (especially with numpy) in Dify self-hosted via Docker are usually caused by network timeouts or slow connectivity to PyPI. Here are the most effective solutions reported by other users and maintainers:
PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simpleto your plugin_daemon environment or.envfile. This is especially helpful if you are in mainland China or have slow access to pypi.org.PYTHON_ENV_INIT_TIMEOUT(e.g.,320or higher) in yourdocker-compose.yamlunder theplugin_daemonservice.UV_HTTP_TIMEOUTenvironment variable (try120sor more) to give pip more time to download large packages like numpy.{"mtu": 1450}to/etc/docker/daemon.jsonand set the network MTU in yourdocker-compose.yaml:network_mode: hostfor the plugin_daemon service in Docker to improve connectivity.These steps have resolved similar issues for other users (example 1, example 2). If you still encounter failures, check your Docker resource limits (CPU/memory), clean the pip cache, and verify your network/firewall settings.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@Moiyu1998 commented on GitHub (Nov 18, 2025):
Where can I find the UV_HTTP_TIMEOUT parameter? It doesn't appear to be in the environment variables.
@dosubot[bot] commented on GitHub (Nov 18, 2025):
UV_HTTP_TIMEOUT is not present by default in the environment variables for the plugin_daemon container—you need to add it manually. To do this, add a line like UV_HTTP_TIMEOUT=120s (or your preferred value) to the environment section of your plugin_daemon service in docker-compose.yaml, or to your .env file if you use one. Then restart the plugin_daemon container for the change to take effect. This variable controls the HTTP timeout for dependency downloads during plugin initialization and is referenced in error logs, but it won't appear unless you explicitly set it yourself. For reference, see the environment variable setup in the Dify docker-compose.yaml file and related discussions about increasing this timeout to resolve network issues during plugin updates (example).
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@nadazero commented on GitHub (Nov 20, 2025):
@Moiyu1998 别听AI在上面胡说,改timeout有屁用。
本质就是国内服务器连pip太慢了导致超时, .env文件中把这行放开(本质就是换国内源)就可以了
PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple
@dosubot[bot] commented on GitHub (Dec 6, 2025):
Hi, @Moiyu1998. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thank you for your understanding and contribution!