What should I do if plugin installation exceeds 120 seconds and causes the installation to fail? #34961
Replies: 4 comments 7 replies
-
|
This is a commonly reported issue where the plugin daemon's dependency download takes too long and hits the 120-second inactivity timeout. Here are the fixes, in order of effectiveness: 1. Increase the timeout and configure a PyPI mirror — add these environment variables to the plugin_daemon:
environment:
PYTHON_ENV_INIT_TIMEOUT: 320
UV_HTTP_TIMEOUT: 120s
UV_INDEX_URL: https://pypi.tuna.tsinghua.edu.cn/simple
UV_DEFAULT_INDEX: https://pypi.tuna.tsinghua.edu.cn/simpleThe paddleocr plugin has large dependencies (numpy, gevent, tiktoken, pydantic-core, etc.), so a faster mirror and a longer timeout are essential. If you're not in China, you can omit the mirror URLs or use another nearby mirror. 2. Downgrade the plugin daemon to version 0.5.3 — if increasing the timeout doesn't help, try changing the image in plugin_daemon:
image: langgenius/dify-plugin-daemon:0.5.3-local3. Retry the installation — sometimes the first failed attempt populates the After making changes, fully recreate the containers: docker compose down && docker compose up -dTo reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
[root@iZ2zegazbd8dtdsyqt8k0mZ docker]# docker inspect $(docker ps -q --filter name=plugin_daemon) --format='{{.State.OOMKilled}}' but the error still occurs. The output above is what I got after the failure. I used curl -I https://pypi.org/simple/ and curl -I https://files.pythonhosted.org/ to verify network connectivity. What else should I do?@dosu. |
Beta Was this translation helpful? Give feedback.
-
|
he previous answer by dosubot: increase timeout and configure a PyPI mirror. Provide environment variables. Actually Dify uses plugin daemon with uv; there is a setting: PLUGIN_INSTALL_TIMEOUT? |
Beta Was this translation helpful? Give feedback.
-
|
When I use the iteration node in a Dify workflow, it runs normally if I choose serial mode. However, when I use parallel mode, it returns error: timeout error: sohnal: killed, and neither the input nor the output is displayed.@dosu. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
What should I do if plugin installation exceeds 120 seconds and causes the installation to fail? failed to launch plugin: failed to install dependencies: failed to install dependencies: signal: killed, output: DEBUG uv 0.9.26 DEBUG Acquired shared lock for
/root/.cache/uvDEBUG Found project root:/app/storage/cwd/langgenius/paddleocr-0.2.2@99a900292e7992904bd419ccf10ca8578771b0b1d669cef38b4c7fb21bfe9af1DEBUG No workspace root found, using project root DEBUG Acquired exclusive lock for/app/storage/cwd/langgenius/paddleocr-0.2.2@99a900292e7992904bd419ccf10ca8578771b0b1d669cef38b4c7fb21bfe9af1DE...85a572e4806dc58bf1ddf651108ae8b97d5f3ebe1a244/tiktoken-0.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl DEBUG Sending fresh GET request for: https://files.pythonhosted.org/packages/26/32/e0e3a859136e95c85a572e4806dc58bf1ddf651108ae8b97d5f3ebe1a244/tiktoken-0.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Downloading gevent (2.0MiB) Downloading pydantic-core (2.0MiB) Downloading tiktoken (1.1MiB) init process exited due to no activity for 120 seconds failed to init environment2. Additional context or comments
No response
Beta Was this translation helpful? Give feedback.
All reactions