当前位置: 首页 > news >正文

dify 升级1.7.1 插件无法下载依赖

dify 升级1.7.1 插件无法下载依赖

1. 安装通义千问插件,各种报错;

dify-flow

使用下面命令查看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 部署问题处理

http://www.lryc.cn/news/607586.html

相关文章:

  • [VL|RIS] ReferSAM
  • 11.Layout-Pinia优化重复请求
  • 使用 whisper, 音频分割, 初步尝试,切割为小块,效果还不错 1
  • [ Leetcode ]---快乐数
  • [lvgl_player] 用户界面(LVGL) | 播放器核心设计
  • 8.1每日一题
  • Vue 3 入门教程 8 - 路由管理 Vue Router
  • 使用GPU和NPU视频生成的优劣对比
  • Windows系统优化命令-记录
  • 面向对象学习(一)
  • 【Linux我做主】细说环境变量
  • Vue2 项目实现 Gzip 压缩全攻略:从配置到部署避坑指南
  • IIS 让asp.net core 项目一直运行
  • TwinCAT3编程入门2
  • 第k小整数(快排)
  • 如何理解卷积,和自注意力机制的局限与优势(个人理解)
  • 倒计时!2025国自然放榜时间锁定
  • 使用Nginx部署前端项目
  • 【Linux】磁盘存储+文件系统简介
  • 开箱即用的Next.js SSR企业级开发模板
  • Java Ai 数组:day(09)
  • 【Nginx反向代理】通过Nginx反向代理将多个后端server统一到同一个端口上的方法
  • 算法题——数组
  • Implement recovery based on PITR using dump file and binlog
  • Deep Height Decoupling for Precise Vision-based 3D Occupancy Prediction
  • 【JAVA面试】基础篇
  • 代码随想录算法训练营三十三天|动态规划part06
  • GenieWizard: Multimodal App Feature Discovery with LargeLanguage Models
  • 直播平台中的美白滤镜实现:美颜SDK的核心架构与性能优化指南
  • Java 22 新特性解析与代码示例