The volcengine_maas plugin version cannot be downgraded. Downgrading will cause Dify to freeze/crash. #864

Closed
opened 2026-02-16 10:20:46 -05:00 by yindo · 7 comments
Owner

Originally created by @bilibilipala on GitHub (Dec 10, 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 Dify issues & Dify Official Plugins, 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.10.1

Plugin version

0.0.37

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

The version of Dify I am using is 1.10.1. I want to downgrade the Volcengine plugin to version 0.0.25, because the latest version of the plugin always causes the Doubao large model to experience hallucinations. However, after installing the 0.0.25 plugin, Dify becomes unresponsive/frozen.

✔️ Error log

2025/12/11 02:38:02 run.go:147: [INFO]plugin langgenius/volcengine_maas:0.0.25 started
2025/12/11 02:38:03 run.go:135: [ERROR]plugin langgenius/volcengine_maas:0.0.25 exited with error: exit status 1
age/cwd/langgenius/volcengine_maas-0.0.25@69d479387c274399cdf967854fa2eab8b2ece3c1b28c702724402913639dcc24/.venv/lib/python3.12/site-packages/volcenginesdkarkruntime/_client.py", line 15, in

from ._models import BaseModel

File "/app/storage/cwd/langgenius/volcengine_maas-0.0.25@69d479387c274399cdf967854fa2eab8b2ece3c1b28c702724402913639dcc24/.venv/lib/python3.12/site-packages/volcenginesdkarkruntime/_models.py", line 31, in

from ._utils import (

File "/app/storage/cwd/langgenius/volcengine_maas-0.0.25@69d479387c274399cdf967854fa2eab8b2ece3c1b28c702724402913639dcc24/.venv/lib/python3.12/site-packages/volcenginesdkarkruntime/_utils/__init__.py", line 1, in

from ._utils import (

File "/app/storage/cwd/langgenius/volcengine_maas-0.0.25@69d479387c274399cdf967854fa2eab8b2ece3c1b28c702724402913639dcc24/.venv/lib/python3.12/site-packages/volcenginesdkarkruntime/_utils/_utils.py", line 23, in

import sniffio

ModuleNotFoundError: No module named 'sniffio'

2025/12/11 02:38:03 run.go:185: [INFO]plugin langgenius/volcengine_maas:0.0.25 stopped

Originally created by @bilibilipala on GitHub (Dec 10, 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 [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/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.10.1 ### Plugin version 0.0.37 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce The version of Dify I am using is 1.10.1. I want to downgrade the Volcengine plugin to version 0.0.25, because the latest version of the plugin always causes the Doubao large model to experience hallucinations. However, after installing the 0.0.25 plugin, Dify becomes unresponsive/frozen. ### ✔️ Error log 2025/12/11 02:38:02 run.go:147: [INFO]plugin langgenius/volcengine_maas:0.0.25 started 2025/12/11 02:38:03 run.go:135: [ERROR]plugin langgenius/volcengine_maas:0.0.25 exited with error: exit status 1 age/cwd/langgenius/volcengine_maas-0.0.25@69d479387c274399cdf967854fa2eab8b2ece3c1b28c702724402913639dcc24/.venv/lib/python3.12/site-packages/volcenginesdkarkruntime/_client.py", line 15, in <module> from ._models import BaseModel File "/app/storage/cwd/langgenius/volcengine_maas-0.0.25@69d479387c274399cdf967854fa2eab8b2ece3c1b28c702724402913639dcc24/.venv/lib/python3.12/site-packages/volcenginesdkarkruntime/_models.py", line 31, in <module> from ._utils import ( File "/app/storage/cwd/langgenius/volcengine_maas-0.0.25@69d479387c274399cdf967854fa2eab8b2ece3c1b28c702724402913639dcc24/.venv/lib/python3.12/site-packages/volcenginesdkarkruntime/_utils/__init__.py", line 1, in <module> from ._utils import ( File "/app/storage/cwd/langgenius/volcengine_maas-0.0.25@69d479387c274399cdf967854fa2eab8b2ece3c1b28c702724402913639dcc24/.venv/lib/python3.12/site-packages/volcenginesdkarkruntime/_utils/_utils.py", line 23, in <module> import sniffio ModuleNotFoundError: No module named 'sniffio' 2025/12/11 02:38:03 run.go:185: [INFO]plugin langgenius/volcengine_maas:0.0.25 stopped
yindo added the bug label 2026-02-16 10:20:46 -05:00
yindo closed this issue 2026-02-16 10:20:46 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Dec 10, 2025):

Hi @bilibilipala! I'm Dosu and I’m helping the dify-official-plugins team.

Downgrading the volcengine_maas plugin to version 0.0.25 on Dify 1.10.1 causes a crash because the plugin's Python environment is missing the required sniffio dependency. This happens even though sniffio is listed in the plugin's requirements, because each plugin runs in its own isolated virtual environment inside Docker, and dependencies sometimes aren't installed as expected during downgrades or manual installs. Installing sniffio globally in the container won't help—each plugin needs it inside its own .venv environment.

Workaround:

  1. Enter the plugin daemon container:
    docker exec -it docker-plugin_daemon-1 bash
    
  2. Find the plugin's .venv directory:
    VENV=$(find /app/storage -maxdepth 5 -type d -name '.venv' | head -n1)
    echo "$VENV"
    
  3. If pip is missing, install it:
    "$VENV/bin/python" -m ensurepip --upgrade || (curl -fsSL https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && "$VENV/bin/python" /tmp/get-pip.py)
    
  4. Install the missing dependencies:
    "$VENV/bin/python" -m pip install -U sniffio anyio httpx
    
  5. Restart the plugin daemon container:
    exit
    docker restart docker-plugin_daemon-1
    

This should resolve the missing module error and unfreeze Dify.
Reference 1 | Reference 2 | Reference 3

Permanent fix:
Add sniffio (and any other missing dependencies) to the plugin's requirements.txt, then rebuild or restart the plugin so dependencies are installed automatically in the future.
Reference

This issue is specific to Dify 1.10.1 and does not appear in earlier versions like 1.9.2, likely due to changes in how dependencies are handled in newer Dify/plugin daemon versions. Keep an eye on plugin updates and changelogs for a more robust fix upstream.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Dec 10, 2025): <!-- Greeting --> Hi @bilibilipala! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify-official-plugins team. <!-- Answer --> Downgrading the volcengine_maas plugin to version 0.0.25 on Dify 1.10.1 causes a crash because the plugin's Python environment is missing the required `sniffio` dependency. This happens even though `sniffio` is listed in the plugin's requirements, because each plugin runs in its own isolated virtual environment inside Docker, and dependencies sometimes aren't installed as expected during downgrades or manual installs. Installing `sniffio` globally in the container won't help—each plugin needs it inside its own `.venv` environment. **Workaround:** 1. Enter the plugin daemon container: ```sh docker exec -it docker-plugin_daemon-1 bash ``` 2. Find the plugin's `.venv` directory: ```sh VENV=$(find /app/storage -maxdepth 5 -type d -name '.venv' | head -n1) echo "$VENV" ``` 3. If `pip` is missing, install it: ```sh "$VENV/bin/python" -m ensurepip --upgrade || (curl -fsSL https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && "$VENV/bin/python" /tmp/get-pip.py) ``` 4. Install the missing dependencies: ```sh "$VENV/bin/python" -m pip install -U sniffio anyio httpx ``` 5. Restart the plugin daemon container: ```sh exit docker restart docker-plugin_daemon-1 ``` This should resolve the missing module error and unfreeze Dify. [Reference 1](https://github.com/langgenius/dify-official-plugins/issues/2153) | [Reference 2](https://github.com/langgenius/dify-official-plugins/issues/2169) | [Reference 3](https://github.com/langgenius/dify/issues/29043) **Permanent fix:** Add `sniffio` (and any other missing dependencies) to the plugin's `requirements.txt`, then rebuild or restart the plugin so dependencies are installed automatically in the future. [Reference](https://github.com/langgenius/dify-official-plugins/issues/2155) This issue is specific to Dify 1.10.1 and does not appear in earlier versions like 1.9.2, likely due to changes in how dependencies are handled in newer Dify/plugin daemon versions. Keep an eye on plugin updates and changelogs for a more robust fix upstream. <!-- 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/3e21f7b6-4c8e-4cd4-9ac2-3359845be7ba?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/3e21f7b6-4c8e-4cd4-9ac2-3359845be7ba?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/3e21f7b6-4c8e-4cd4-9ac2-3359845be7ba?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/3e21f7b6-4c8e-4cd4-9ac2-3359845be7ba?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/3e21f7b6-4c8e-4cd4-9ac2-3359845be7ba?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/3e21f7b6-4c8e-4cd4-9ac2-3359845be7ba?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/3e21f7b6-4c8e-4cd4-9ac2-3359845be7ba?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Downgrading%20the%20volcengine_maas%20plugin%20to%20version%200.0.25%20on%20Dify%201.10.1%20causes%20a%20crash%20because%20the%20plugin%27s%20Python%20environment%20is%20missing%20the%20required%20%60sniffio%60%20dependency.%20This%20happens%20even%20though%20%60sniffio%60%20is%20listed%20in%20the%20plugin%27s%20requirements%2C%20because%20each%20plugin%20runs%20in%20its%20own%20isolated%20virtual%20environment%20inside%20Docker%2C%20and%20dependencies%20sometimes%20aren%27t%20installed%20as%20expected%20during%20downgrades%20or%20manual%20installs.%20Installing%20%60sniffio%60%20globally%20in%20the%20container%20won%27t%20help%E2%80%94each%20plugin%20needs%20it%20inside%20its%20own%20%60.venv%60%20environment.%20%0A%0A%2A%2AWorkaround%3A%2A%2A%20%20%0A1.%20Enter%20the%20plugin%20daemon%20container%3A%0A%20%20%20%60%60%60sh%0A%20%20%20docker%20exec%20-it%20docker-plugin_daemon-1%20bash%0A%20%20%20%60%60%60%0A2.%20Find%20the%20plugin%27s%20%60.venv%60%20directory%3A%0A%20%20%20%60%60%60sh%0A%20%20%20VENV%3D%24%28find%20/app/storage%20-maxdepth%205%20-type%20d%20-name%20%27.venv%27%20%7C%20head%20-n1%29%0A%20%20%20echo%20%22%24VENV%22%0A%20%20%20%60%60%60%0A3.%20If%20%60pip%60%20is%20missing%2C%20install%20it%3A%0A%20%20%20%60%60%60sh%0A%20%20%20%22%24VENV/bin/python%22%20-m%20ensurepip%20--upgrade%20%7C%7C%20%28curl%20-fsSL%20https%3A//bootstrap.pypa.io/get-pip.py%20-o%20/tmp/get-pip.py%20%26%26%20%22%24VENV/bin/python%22%20/tmp/get-pip.py%29%0A%20%20%20%60%60%60%0A4.%20Install%20the%20missing%20dependencies%3A%0A%20%20%20%60%60%60sh%0A%20%20%20%22%24VENV/bin/python%22%20-m%20pip%20install%20-U%20sniffio%20anyio%20httpx%0A%20%20%20%60%60%60%0A5.%20Restart%20the%20plugin%20daemon%20container%3A%0A%20%20%20%60%60%60sh%0A%20%20%20exit%0A%20%20%20docker%20restart%20docker-plugin_daemon-1%0A%20%20%20%60%60%60%0AThis%20should%20resolve%20the%20missing%20module%20error%20and%20unfreeze%20Dify.%20%20%0A%5BReference%201%5D%28https%3A//github.com/langgenius/dify-official-plugins/issues/2153%29%20%7C%20%5BReference%202%5D%28https%3A//github.com/langgenius/dify-official-plugins/issues/2169%29%20%7C%20%5BReference%203%5D%28https%3A//github.com/langgenius/dify/issues/29043%29%0A%0A%2A%2APermanent%20fix%3A%2A%2A%20%20%0AAdd%20%60sniffio%60%20%28and%20any%20other%20missing%20dependencies%29%20to%20the%20plugin%27s%20%60requirements.txt%60%2C%20then%20rebuild%20or%20restart%20the%20plugin%20so%20dependencies%20are%20installed%20automatically%20in%20the%20future.%20%20%0A%5BReference%5D%28https%3A//github.com/langgenius/dify-official-plugins/issues/2155%29%0A%0AThis%20issue%20is%20specific%20to%20Dify%201.10.1%20and%20does%20not%20appear%20in%20earlier%20versions%20like%201.9.2%2C%20likely%20due%20to%20changes%20in%20how%20dependencies%20are%20handled%20in%20newer%20Dify/plugin%20daemon%20versions.%20Keep%20an%20eye%20on%20plugin%20updates%20and%20changelogs%20for%20a%20more%20robust%20fix%20upstream.)&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/2233)
Author
Owner

@nadazero commented on GitHub (Dec 11, 2025):

新版本解决了缺少库的bug ModuleNotFoundError: No module named 'sniffio', 你这一降级等于又把问题重新复现了。需要手动在虚拟环境安装库了。

@nadazero commented on GitHub (Dec 11, 2025): 新版本解决了缺少库的bug ModuleNotFoundError: No module named 'sniffio', 你这一降级等于又把问题重新复现了。需要手动在虚拟环境安装库了。
Author
Owner

@nadazero commented on GitHub (Dec 11, 2025):

另外大模型幻觉和插件版本有关系?不知道这个结论是怎么得出的

@nadazero commented on GitHub (Dec 11, 2025): 另外大模型幻觉和插件版本有关系?不知道这个结论是怎么得出的
Author
Owner

@bilibilipala commented on GitHub (Dec 11, 2025):

另外大模型幻觉和插件版本有关系?不知道这个结论是怎么得出的

出于某些原因,我们正在测试从dify 1.4.0 升级至1.10.0,我们的AI应用在0.0.25的火山引擎插件上工作一切正常,但升级到0.0.37之后一切都变了,在同样的输出参数下,豆包模型几乎每次都会重复已输出的段落很多次,这极大影响了模型输出效率,我试着调整存在惩罚和频率惩罚参数,但这并未奏效,最终我只好降级到现有可以使用的稳定版本,所以我就遇到的这个问题,我也很想知道为什么大模型幻觉会与插件版本有关系,但我降级完成后,一切又都正常了

@bilibilipala commented on GitHub (Dec 11, 2025): > 另外大模型幻觉和插件版本有关系?不知道这个结论是怎么得出的 出于某些原因,我们正在测试从dify 1.4.0 升级至1.10.0,我们的AI应用在0.0.25的火山引擎插件上工作一切正常,但升级到0.0.37之后一切都变了,在同样的输出参数下,豆包模型几乎每次都会重复已输出的段落很多次,这极大影响了模型输出效率,我试着调整存在惩罚和频率惩罚参数,但这并未奏效,最终我只好降级到现有可以使用的稳定版本,所以我就遇到的这个问题,我也很想知道为什么大模型幻觉会与插件版本有关系,但我降级完成后,一切又都正常了
Author
Owner

@nadazero commented on GitHub (Dec 11, 2025):

应该是插件版本变更中代码影响某些参数的变化导致输出发生了变化,但具体太细节了的确不好排查。
先降级应付着吧。
或者换个思路,重复已输出的段落很多次这种问题以前也遇到过,本质也和模型能力有关,换个更强大的模型试试。

@nadazero commented on GitHub (Dec 11, 2025): 应该是插件版本变更中代码影响某些参数的变化导致输出发生了变化,但具体太细节了的确不好排查。 先降级应付着吧。 或者换个思路,重复已输出的段落很多次这种问题以前也遇到过,本质也和模型能力有关,换个更强大的模型试试。
Author
Owner

@bilibilipala commented on GitHub (Dec 11, 2025):

应该是插件版本变更中代码影响某些参数的变化导致输出发生了变化,但具体太细节了的确不好排查。 先降级应付着吧。 或者换个思路,重复已输出的段落很多次这种问题以前也遇到过,本质也和模型能力有关,换个更强大的模型试试。

感谢您的回复,由于更强大的模型也会导致更慢的响应速率,我们的应用对速率有一定的要求,所以暂时没办法更换,但今天我们也测试了千问的高速率大模型,测试效果不错,后期考虑也接入进来做下冗余

@bilibilipala commented on GitHub (Dec 11, 2025): > 应该是插件版本变更中代码影响某些参数的变化导致输出发生了变化,但具体太细节了的确不好排查。 先降级应付着吧。 或者换个思路,重复已输出的段落很多次这种问题以前也遇到过,本质也和模型能力有关,换个更强大的模型试试。 感谢您的回复,由于更强大的模型也会导致更慢的响应速率,我们的应用对速率有一定的要求,所以暂时没办法更换,但今天我们也测试了千问的高速率大模型,测试效果不错,后期考虑也接入进来做下冗余
Author
Owner

@dosubot[bot] commented on GitHub (Dec 27, 2025):

Hi, @bilibilipala. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported that downgrading the volcengine_maas plugin from 0.0.37 to 0.0.25 on Dify 1.10.1 caused freezes or crashes due to missing dependencies like the Python module 'sniffio'.
  • The root cause was identified as dependencies not being properly installed during plugin downgrades in Docker environments.
  • A manual workaround involved installing missing packages inside the plugin’s isolated virtual environment.
  • Discussion highlighted that plugin code changes affected output parameters and model performance, with slower response times on stronger models.
  • The permanent fix was updating the plugin’s requirements.txt to ensure all dependencies are installed automatically.

Next Steps:

  • Please confirm if this issue is still relevant with the latest version of the dify-official-plugins repository.
  • If it is, feel free to keep the discussion open by commenting here; otherwise, I will automatically close this issue in 5 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Dec 27, 2025): Hi, @bilibilipala. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported that downgrading the volcengine_maas plugin from 0.0.37 to 0.0.25 on Dify 1.10.1 caused freezes or crashes due to missing dependencies like the Python module 'sniffio'. - The root cause was identified as dependencies not being properly installed during plugin downgrades in Docker environments. - A manual workaround involved installing missing packages inside the plugin’s isolated virtual environment. - Discussion highlighted that plugin code changes affected output parameters and model performance, with slower response times on stronger models. - The permanent fix was updating the plugin’s requirements.txt to ensure all dependencies are installed automatically. **Next Steps:** - Please confirm if this issue is still relevant with the latest version of the dify-official-plugins repository. - If it is, feel free to keep the discussion open by commenting here; otherwise, I will automatically close this issue in 5 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#864