PIP设置了国内镜像也没用,因为插件容器时uv进行包安装的。错误内容:
dify failed to launch plugin: failed to install dependencies: failed to install dependencies: signal: killed, output: DEBUG Found workspace root:
/app/storage/cwd/langgenius/openai-0.4.2@21195ee1321849e0a7d4b3f6b2fd8c2be23ea6c7182e1b444ecc4c1711b52468DEBUG Adding root workspace member:/app/storage/cwd/langgenius/openai-0.4.2@21195ee1321849e0a7d4b3f6b2fd8c2be23ea6c7182e1b444ecc4c1711b52468DEBUG Skippingpyproject.tomlin `/app/storage/cwd/langgenius/openai-0.4.2@21195ee1321849e0a7d4b3f6b2fd8c2be23ea6c718....6-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl, retrying: error sending request for url (https://files.pythonhosted.org/packages/99/60/14115e6364fa676c5397c2ad3004e527e9aa487abf5d0706ec81bbd08529/numpy-2.4.6-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl) Caused by: client error (Connect) Caused by: tcp connect error Caused by: Network is unreachable (os error 101) Downloading numpy (15.9MiB) init process exited due to no activity for 320 seconds failed to init environment
- 1、.env 设置国内镜像
PIP_MIRROR_URL=https://mirrors.aliyun.com/pypi/simple/

- 2、配置插件容器的uv国内镜像源,environment下面设置:
UV_INDEX_URL: https://mirrors.aliyun.com/pypi/simple/
PLUGIN_IGNORE_UV_LOCK: true

- 3、重启容器
docker compose down
docker compose up -d
- 重新安装插件即可