dify 升级1.7.1 插件无法下载依赖
dify 升级1.7.1 插件无法下载依赖
1. 安装通义千问插件,各种报错;
使用下面命令查看docker 镜像日志
docker logs -f --tail=100 docker-plugin_daemon-1
2025/08/01 07:42:21 full_duplex.go:59: [INFO]init environment for plugin langgenius/tongyi:0.0.35
2025/08/01 07:44:40 full_duplex.go:65: [ERROR]init environment failed: failed to install dependencies: exit status 1, output: Resolved 52 packages in 1m 28s
Downloading aiohttp (1.6MiB)
Downloading numpy (13.4MiB)
Downloading dashscope (1.2MiB)× Failed to download `tqdm==4.67.1`├─▶ Failed to extract archive: tqdm-4.67.1-py3-none-any.whl├─▶ I/O operation failed during extraction╰─▶ Failed to download distribution due to network timeout. Try increasingUV_HTTP_TIMEOUT (current value: 30s).help: `tqdm` (v4.67.1) was included because `openai` (v1.70.0) depends on`tqdm`
, retrying
问题主要是plugin 插件服务无法下载python依赖,只要配置从国内镜像源下载即可;
修改.env
, 放开pip 镜像配置,问题修复
PLUGIN_PYTHON_ENV_INIT_TIMEOUT=120
PLUGIN_MAX_EXECUTION_TIMEOUT=600
PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple
#PIP_MIRROR_URL=
2. 部署问题
1、添加权限
# cd /iflytek/server/dify/docker/volumes
# chmod -R 777 *2、推测是容器权限不够,准备在docker-compose.yaml中添加特权运行配置内容。需要将docker_api_1 、docker_worker_1 docker_sandbox_1 都添加特权运行。api:image: langgenius/dify-api:1.4.1restart: alwaysprivileged: true
参考:
Dify 部署问题处理