Replies: 1 comment
-
Hi @gui0923! I'm Dosu and I’m helping the dify team. The installation failures are happening because Dify tries to fetch plugin dependencies from the internet during initialization, which often fails in mainland China due to network restrictions and instability. To use the openai_api_compatible plugin in a restricted or offline environment, you need to create a fully self-contained offline package that includes all dependencies. Here’s how you can do it:
This method ensures all dependencies are available locally and avoids network timeouts during installation. If you still encounter issues, try clearing stuck plugin installation tasks via the admin dashboard or API, increase the Dify does not currently support specifying custom Python mirrors for plugin dependency installation, so the offline bundle approach is the recommended solution for mainland China source. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
I deployed Dify on Alibaba Cloud using Docker. The online installation of openai_api_compatible failed, and the offline installation after downloading also failed.Please tell me how to use this plugin within mainland China.
2025/09/28 09:32:41 full_duplex.go:27: [INFO]new plugin logged in: langgenius/openai_api_compatible:0.0.22
2025/09/28 09:32:41 full_duplex.go:59: [INFO]init environment for plugin langgenius/openai_api_compatible:0.0.22
2025/09/28 09:33:12 full_duplex.go:65: [ERROR]init environment failed: failed to install dependencies: exit status 2, output: error: Failed to fetch:
https://files.pythonhosted.org/packages/e8/fb/df274ca10698ee77b07bff952f302ea627cc12dac6b85289485dd77db6de/openai-1.99.9-py3-none-any.whl.metadata
Caused by: request or response body error
Caused by: operation timed out
, retrying
2025/09/28 09:33:12 full_duplex.go:59: [INFO]init environment for plugin langgenius/openai_api_compatible:0.0.22
[GIN] 2025/09/28 - 09:49:37 | 200 | 66.017µs | 172.28.0.8 | GET "/plugin/0c6f111e-5d74-4eb9-8e5c-69409afca3f3/asset/be79872104e9386bb41aa6a9597f664a69088f6780529481dd48198f9a6006c8.svg"
2025/09/28 09:51:55 full_duplex.go:65: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: Resolved 46 packages in 18.59s
init process exited due to no activity for 120 seconds, retrying
2025/09/28 09:51:55 full_duplex.go:59: [INFO]init environment for plugin langgenius/openai_api_compatible:0.0.22
2025/09/28 09:53:00 full_duplex.go:65: [ERROR]init environment failed: failed to install dependencies: exit status 1, output: Resolved 46 packages in 712ms
× Failed to download
jiter==0.10.0
├─▶ Failed to extract archive:
│ jiter-0.10.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
├─▶ I/O operation failed during extraction
╰─▶ Failed to download distribution due to network timeout. Try increasing
UV_HTTP_TIMEOUT (current value: 30s).
, retrying
2025/09/28 09:53:00 full_duplex.go:59: [INFO]init environment for plugin langgenius/openai_api_compatible:0.0.22
2025/09/28 09:54:43 full_duplex.go:65: [ERROR]init environment failed: failed to install dependencies: exit status 1, output: Resolved 46 packages in 31ms
× Failed to download
cffi==1.17.1
├─▶ Failed to extract archive:
│ cffi-1.17.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
├─▶ I/O operation failed during extraction
╰─▶ Failed to download distribution due to network timeout. Try increasing
UV_HTTP_TIMEOUT (current value: 30s).
, retrying
2025/09/28 09:54:43 full_duplex.go:59: [INFO]init environment for plugin langgenius/openai_api_compatible:0.0.22
2025/09/28 09:56:37 full_duplex.go:65: [ERROR]init environment failed: failed to install dependencies: exit status 1, output: Resolved 46 packages in 628ms
× Failed to download
openai==1.99.9
├─▶ Failed to extract archive: openai-1.99.9-py3-none-any.whl
├─▶ I/O operation failed during extraction
╰─▶ Failed to download distribution due to network timeout. Try increasing
UV_HTTP_TIMEOUT (current value: 30s).
, retrying
2025/09/28 09:56:37 full_duplex.go:29: [INFO]plugin langgenius/openai_api_compatible:0.0.22 has exited
2025/09/28 09:56:37 watcher.go:110: [ERROR]plugin launch error: init environment for plugin langgenius/openai_api_compatible:0.0.22 failed too many times, you should consider the package is corrupted or your network is unstable
2025/09/28 09:56:37 full_duplex.go:27: [INFO]new plugin logged in: langgenius/openai_api_compatible:0.0.22
2025/09/28 09:56:37 full_duplex.go:59: [INFO]init environment for plugin langgenius/openai_api_compatible:0.0.22
2025/09/28 09:57:16 full_duplex.go:65: [ERROR]init environment failed: failed to install dependencies: exit status 1, output: Resolved 46 packages in 1.78s
× Failed to download
multidict==6.6.4
├─▶ Failed to extract archive:
│ multidict-6.6.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
├─▶ I/O operation failed during extraction
╰─▶ Failed to download distribution due to network timeout. Try increasing
UV_HTTP_TIMEOUT (current value: 30s).
, retrying
2025/09/28 09:57:16 full_duplex.go:59: [INFO]init environment for plugin langgenius/openai_api_compatible:0.0.22
2025/09/28 09:58:26 full_duplex.go:65: [ERROR]init environment failed: failed to install dependencies: exit status 1, output: Resolved 46 packages in 31ms
× Failed to download
multidict==6.6.4
├─▶ Failed to extract archive:
│ multidict-6.6.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
├─▶ I/O operation failed during extraction
╰─▶ Failed to download distribution due to network timeout. Try increasing
UV_HTTP_TIMEOUT (current value: 30s).
, retrying
2025/09/28 09:58:26 full_duplex.go:59: [INFO]init environment for plugin langgenius/openai_api_compatible:0.0.22
2025/09/28 09:59:48 full_duplex.go:65: [ERROR]init environment failed: failed to install dependencies: exit status 1, output: Resolved 46 packages in 31ms
× Failed to download
openai==1.99.9
├─▶ Failed to extract archive: openai-1.99.9-py3-none-any.whl
├─▶ I/O operation failed during extraction
╰─▶ Failed to download distribution due to network timeout. Try increasing
UV_HTTP_TIMEOUT (current value: 30s).
, retrying
2025/09/28 09:59:48 full_duplex.go:59: [INFO]init environment for plugin langgenius/openai_api_compatible:0.0.22
2025/09/28 10:00:36 full_duplex.go:65: [ERROR]init environment failed: failed to install dependencies: exit status 1, output: Resolved 46 packages in 730ms
× Failed to download
jiter==0.10.0
├─▶ Failed to extract archive:
│ jiter-0.10.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
├─▶ I/O operation failed during extraction
╰─▶ Failed to download distribution due to network timeout. Try increasing
UV_HTTP_TIMEOUT (current value: 30s).
, retrying
2025/09/28 10:00:36 full_duplex.go:29: [INFO]plugin langgenius/openai_api_compatible:0.0.22 has exited
2025/09/28 10:00:36 watcher.go:110: [ERROR]plugin launch error: init environment for plugin langgenius/openai_api_compatible:0.0.22 failed too many times, you should consider the package is corrupted or your network is unstable
Beta Was this translation helpful? Give feedback.
All reactions