init environment failed: failed to install dependencies #9019

Closed
opened 2026-02-21 18:29:35 -05:00 by yindo · 0 comments
Owner

Originally created by @lomelee on GitHub (Mar 4, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

An error occurred when using version 1.0.0 in the plugin_daemon service. The issue seems to be related to timeouts or failures when downloading Python dependency packages in China. Please support configuring the pip settings to use a mirror source.

The following is the log and error message:

2025-03-04 14:39:19 2025/03/04 06:39:19 environment_python.go:150: [INFO]installing langgenius/wecom:0.0.2 - Collecting regex>=2022.1.18 (from tiktoken~=0.8.0->dify_plugin==0.0.1b65->-r requirements.txt (line 1))
2025-03-04 14:39:19
2025-03-04 14:39:19 2025/03/04 06:39:19 environment_python.go:150: [INFO]installing langgenius/wecom:0.0.2 - Using cached regex-2024.11.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (40 kB)
2025-03-04 14:39:19
2025-03-04 14:39:21 2025/03/04 06:39:21 environment_python.go:150: [INFO]installing langgenius/wecom:0.0.2 - Collecting MarkupSafe>=2.1.1 (from Werkzeug~=3.0.3->dify_plugin==0.0.1b65->-r requirements.txt (line 1))
2025-03-04 14:39:21
2025-03-04 14:39:21 2025/03/04 06:39:21 environment_python.go:150: [INFO]installing langgenius/wecom:0.0.2 - Using cached MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.0 kB)
2025-03-04 14:39:21
2025-03-04 14:39:21 2025/03/04 06:39:21 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: init process exited due to no activity for 120 seconds, retry in 30s

✔️ Expected Behavior

An error occurred when using version 1.0.0 in the plugin_daemon service. The issue seems to be related to timeouts or failures when downloading Python dependency packages in China. Please support configuring the pip settings to use a mirror source.

init fail ......

Actual Behavior

The following is the log and error message:

2025-03-04 14:39:19 2025/03/04 06:39:19 environment_python.go:150: [INFO]installing langgenius/wecom:0.0.2 - Collecting regex>=2022.1.18 (from tiktoken~=0.8.0->dify_plugin==0.0.1b65->-r requirements.txt (line 1))
2025-03-04 14:39:19
2025-03-04 14:39:19 2025/03/04 06:39:19 environment_python.go:150: [INFO]installing langgenius/wecom:0.0.2 - Using cached regex-2024.11.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (40 kB)
2025-03-04 14:39:19
2025-03-04 14:39:21 2025/03/04 06:39:21 environment_python.go:150: [INFO]installing langgenius/wecom:0.0.2 - Collecting MarkupSafe>=2.1.1 (from Werkzeug~=3.0.3->dify_plugin==0.0.1b65->-r requirements.txt (line 1))
2025-03-04 14:39:21
2025-03-04 14:39:21 2025/03/04 06:39:21 environment_python.go:150: [INFO]installing langgenius/wecom:0.0.2 - Using cached MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.0 kB)
2025-03-04 14:39:21
2025-03-04 14:39:21 2025/03/04 06:39:21 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: init process exited due to no activity for 120 seconds, retry in 30s

Originally created by @lomelee on GitHub (Mar 4, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce An error occurred when using version 1.0.0 in the plugin_daemon service. The issue seems to be related to timeouts or failures when downloading Python dependency packages in China. Please support configuring the pip settings to use a mirror source. The following is the log and error message: 2025-03-04 14:39:19 2025/03/04 06:39:19 environment_python.go:150: [INFO]installing langgenius/wecom:0.0.2 - Collecting regex>=2022.1.18 (from tiktoken~=0.8.0->dify_plugin==0.0.1b65->-r requirements.txt (line 1)) 2025-03-04 14:39:19 2025-03-04 14:39:19 2025/03/04 06:39:19 environment_python.go:150: [INFO]installing langgenius/wecom:0.0.2 - Using cached regex-2024.11.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (40 kB) 2025-03-04 14:39:19 2025-03-04 14:39:21 2025/03/04 06:39:21 environment_python.go:150: [INFO]installing langgenius/wecom:0.0.2 - Collecting MarkupSafe>=2.1.1 (from Werkzeug~=3.0.3->dify_plugin==0.0.1b65->-r requirements.txt (line 1)) 2025-03-04 14:39:21 2025-03-04 14:39:21 2025/03/04 06:39:21 environment_python.go:150: [INFO]installing langgenius/wecom:0.0.2 - Using cached MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.0 kB) 2025-03-04 14:39:21 2025-03-04 14:39:21 2025/03/04 06:39:21 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: init process exited due to no activity for 120 seconds, retry in 30s ### ✔️ Expected Behavior An error occurred when using version 1.0.0 in the plugin_daemon service. The issue seems to be related to timeouts or failures when downloading Python dependency packages in China. Please support configuring the pip settings to use a mirror source. init fail ...... ### ❌ Actual Behavior The following is the log and error message: 2025-03-04 14:39:19 2025/03/04 06:39:19 environment_python.go:150: [INFO]installing langgenius/wecom:0.0.2 - Collecting regex>=2022.1.18 (from tiktoken~=0.8.0->dify_plugin==0.0.1b65->-r requirements.txt (line 1)) 2025-03-04 14:39:19 2025-03-04 14:39:19 2025/03/04 06:39:19 environment_python.go:150: [INFO]installing langgenius/wecom:0.0.2 - Using cached regex-2024.11.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (40 kB) 2025-03-04 14:39:19 2025-03-04 14:39:21 2025/03/04 06:39:21 environment_python.go:150: [INFO]installing langgenius/wecom:0.0.2 - Collecting MarkupSafe>=2.1.1 (from Werkzeug~=3.0.3->dify_plugin==0.0.1b65->-r requirements.txt (line 1)) 2025-03-04 14:39:21 2025-03-04 14:39:21 2025/03/04 06:39:21 environment_python.go:150: [INFO]installing langgenius/wecom:0.0.2 - Using cached MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.0 kB) 2025-03-04 14:39:21 2025-03-04 14:39:21 2025/03/04 06:39:21 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: init process exited due to no activity for 120 seconds, retry in 30s
yindo closed this issue 2026-02-21 18:29:35 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#9019