Using OpenAI-API-compatible to connect to the privately deployed full-version DeepSeek model, saving failed with an error.(ReOpen) #586

Closed
opened 2026-02-16 10:19:49 -05:00 by yindo · 5 comments
Owner

Originally created by @JiesenSun on GitHub (Aug 25, 2025).

The project is using Dify version 1.7.1, and it does include these two configurations. However, when integrating with the privately deployed DeepSeek-671B model, it still can’t be saved. What adjustments need to be made to these two configurations?

PLUGIN_STORAGE_TYPE: ${PLUGIN_STORAGE_TYPE:-local}
PYTHON_ENV_INIT_TIMEOUT: ${PLUGIN_PYTHON_ENV_INIT_TIMEOUT:-120}

https://github.com/langgenius/dify/blob/75199442c16fb2ad1758d1f813b0c9249fc150e9/docker/docker-compose.yaml#L521
https://github.com/langgenius/dify/blob/75199442c16fb2ad1758d1f813b0c9249fc150e9/docker/docker-compose.yaml#L757

Originally posted by @crazywoola in #1542

Originally created by @JiesenSun on GitHub (Aug 25, 2025). The project is using Dify version 1.7.1, and it does include these two configurations. However, when integrating with the privately deployed DeepSeek-671B model, it still can’t be saved. What adjustments need to be made to these two configurations? ``` PLUGIN_STORAGE_TYPE: ${PLUGIN_STORAGE_TYPE:-local} PYTHON_ENV_INIT_TIMEOUT: ${PLUGIN_PYTHON_ENV_INIT_TIMEOUT:-120} ``` > https://github.com/langgenius/dify/blob/75199442c16fb2ad1758d1f813b0c9249fc150e9/docker/docker-compose.yaml#L521 > https://github.com/langgenius/dify/blob/75199442c16fb2ad1758d1f813b0c9249fc150e9/docker/docker-compose.yaml#L757 > > _Originally posted by @crazywoola in [#1542](https://github.com/langgenius/dify-official-plugins/issues/1542#issuecomment-3218589716)_
yindo added the bug label 2026-02-16 10:19:49 -05:00
yindo closed this issue 2026-02-16 10:19:49 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 25, 2025):

Adjusting PLUGIN_STORAGE_TYPE and PYTHON_ENV_INIT_TIMEOUT alone will not resolve the saving failure with DeepSeek-671B in Dify v1.7.1. The root cause is a plugin timeout that is not user-configurable in this version—if the DeepSeek model is slow to respond, the plugin daemon is killed by the default timeout. This is a known limitation introduced after v0.15.3, along with stricter credential validation, which causes issues with private large models like DeepSeek-671B. Users have reported that downgrading to v0.15.3 resolves these problems, but that's not ideal for most setups.

Other common causes include Docker network misconfiguration (make sure to use host.docker.internal or your host's LAN IP for the endpoint, and set SANDBOX_ENABLE_NETWORK=true), and credential validation errors (double-check model name, endpoint, and API key) [source 1][source 2].

Newer Dify versions (after 1.7.1) add timeout controls for plugins and MCP tools, which directly address this issue [source]. If possible, consider upgrading to a newer version for more granular timeout and buffer settings.

In summary: no adjustment to these two configs will fix the saving failure in v1.7.1; the issue is with hardcoded timeouts and stricter validation in this version. Workarounds are to upgrade Dify, patch the plugin code, or (as a last resort) downgrade to v0.15.3.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

@dosubot[bot] commented on GitHub (Aug 25, 2025): <!-- Answer --> Adjusting `PLUGIN_STORAGE_TYPE` and `PYTHON_ENV_INIT_TIMEOUT` alone will not resolve the saving failure with DeepSeek-671B in Dify v1.7.1. The root cause is a plugin timeout that is not user-configurable in this version—if the DeepSeek model is slow to respond, the plugin daemon is killed by the default timeout. This is a known limitation introduced after v0.15.3, along with stricter credential validation, which causes issues with private large models like DeepSeek-671B. Users have reported that downgrading to v0.15.3 resolves these problems, but that's not ideal for most setups. Other common causes include Docker network misconfiguration (make sure to use `host.docker.internal` or your host's LAN IP for the endpoint, and set `SANDBOX_ENABLE_NETWORK=true`), and credential validation errors (double-check model name, endpoint, and API key) [[source 1](https://github.com/langgenius/dify-official-plugins/issues/1542#issuecomment-3209124887)][[source 2](https://github.com/langgenius/dify-official-plugins/issues/1542#issuecomment-3219412204)]. Newer Dify versions (after 1.7.1) add timeout controls for plugins and MCP tools, which directly address this issue [[source](https://github.com/langgenius/dify/pull/23605)]. If possible, consider upgrading to a newer version for more granular timeout and buffer settings. In summary: no adjustment to these two configs will fix the saving failure in v1.7.1; the issue is with hardcoded timeouts and stricter validation in this version. Workarounds are to upgrade Dify, patch the plugin code, or (as a last resort) downgrade to v0.15.3. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/9276ccb0-3f1e-4965-a7f5-ec51d3d9b4ca?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/9276ccb0-3f1e-4965-a7f5-ec51d3d9b4ca?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/9276ccb0-3f1e-4965-a7f5-ec51d3d9b4ca?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/9276ccb0-3f1e-4965-a7f5-ec51d3d9b4ca?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/9276ccb0-3f1e-4965-a7f5-ec51d3d9b4ca?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/9276ccb0-3f1e-4965-a7f5-ec51d3d9b4ca?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/9276ccb0-3f1e-4965-a7f5-ec51d3d9b4ca?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/1580)
Author
Owner

@crazywoola commented on GitHub (Aug 25, 2025):

You can make it bigger PLUGIN_PYTHON_ENV_INIT_TIMEOUT .

If you are in mainland China, please switch to https://mirrors.tuna.tsinghua.edu.cn/help/pypi/ instead.

@crazywoola commented on GitHub (Aug 25, 2025): You can make it bigger `PLUGIN_PYTHON_ENV_INIT_TIMEOUT `. If you are in mainland China, please switch to https://mirrors.tuna.tsinghua.edu.cn/help/pypi/ instead.
Author
Owner

@shihuimin1012 commented on GitHub (Sep 1, 2025):

You can make it bigger PLUGIN_PYTHON_ENV_INIT_TIMEOUT .

If you are in mainland China, please switch to https://mirrors.tuna.tsinghua.edu.cn/help/pypi/ instead.

已经做大了,但是依旧无法保存或超时5分钟就会被kil

@shihuimin1012 commented on GitHub (Sep 1, 2025): > You can make it bigger `PLUGIN_PYTHON_ENV_INIT_TIMEOUT `. > > If you are in mainland China, please switch to https://mirrors.tuna.tsinghua.edu.cn/help/pypi/ instead. 已经做大了,但是依旧无法保存或超时5分钟就会被kil
Author
Owner

@shihuimin1012 commented on GitHub (Sep 1, 2025):

@JiesenSun 请问你解决了吗?
我遇到类似得问题,但是不是保存时候,是调用模型时,超时就会被killed by timeout;更改参数都无效

@shihuimin1012 commented on GitHub (Sep 1, 2025): @JiesenSun 请问你解决了吗? 我遇到类似得问题,但是不是保存时候,是调用模型时,超时就会被killed by timeout;更改参数都无效
Author
Owner

@JiesenSun commented on GitHub (Sep 2, 2025):

@JiesenSun 请问你解决了吗? 我遇到类似得问题,但是不是保存时候,是调用模型时,超时就会被killed by timeout;更改参数都无效

Only downgrading to version 0.15.3 works; I’ve tried all other versions but none of them work. It seems that the Dify team hasn’t paid much attention to this issue. Increasing PLUGIN_PYTHON_ENV_INIT_TIMEOUT didn’t help, and Nginx reported a 599 error.

@JiesenSun commented on GitHub (Sep 2, 2025): > [@JiesenSun](https://github.com/JiesenSun) 请问你解决了吗? 我遇到类似得问题,但是不是保存时候,是调用模型时,超时就会被killed by timeout;更改参数都无效 Only downgrading to version 0.15.3 works; I’ve tried all other versions but none of them work. It seems that the Dify team hasn’t paid much attention to this issue. Increasing PLUGIN_PYTHON_ENV_INIT_TIMEOUT didn’t help, and Nginx reported a 599 error.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#586