You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ERROR]init environment failed: failed to install dependencies: signal: killed, output: init process exited due to no activity for 120 seconds, retry in 30s
#15288
Closed
5 tasks done
poechia opened this issue
Mar 8, 2025
· 2 comments
Hey @poechia! I'm here to help you out with any bugs, questions, or contributions you might have. Let's squash those bugs together!
To resolve the error "init environment failed: failed to install dependencies: signal: killed, output: init process exited due to no activity for 120 seconds" when installing the Xinference plugin in a Docker container, you can try the following solutions:
Extend the Timeout Period: Increase the timeout period for the Python environment initialization by adding the PYTHON_ENV_INIT_TIMEOUT environment variable to your docker-compose.yaml file under the plugin_daemon service configuration. Set it to a higher value, such as 320 seconds:
Optimize File System Usage on Windows: If you are using Docker on Windows, consider moving the dify/docker directory to the WSL filesystem instead of using Windows NTFS to improve performance.
Set Plugin Working Path: Add the following environment variable to your .env file to specify the plugin working path:
PLUGIN_WORKING_PATH=/app/cwd
Additionally, if you're using an internal network, consider setting the PIP_MIRROR_URL environment variable in plugin_daemon to use a mirror URL (e.g., https://pypi.tuna.tsinghua.edu.cn/simple) to potentially improve installation speed [1].
Self Checks
Dify version
Dify1.0 plugin daemon
Cloud or Self Hosted
Cloud
Steps to reproduce
✔️ Expected Behavior
Link to XInference Custom Models
❌ Actual Behavior
The Xinference plugin cannot be installed, so custom models cannot be linked
The text was updated successfully, but these errors were encountered: