core.plugin.manager.exc.PluginInvokeError:Connection reset by peer #10679

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

Originally created by @adamwoo on GitHub (Mar 12, 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.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

After Upgrade to v1.0.1 all model worked before dont't work right now ,the error messge as below.
It seems like some network issue or proxy,I check all that stuff and use docker exec into container check model api works fine.

docker-api-1            |   File "/app/api/core/model_manager.py", line 195, in get_llm_num_tokens
docker-api-1            |     self._round_robin_invoke(
docker-api-1            |   File "/app/api/core/model_manager.py", line 370, in _round_robin_invoke
docker-api-1            |     return function(*args, **kwargs)
docker-api-1            |            ^^^^^^^^^^^^^^^^^^^^^^^^^
docker-api-1            |   File "/app/api/core/model_runtime/model_providers/__base/large_language_model.py", line 299,,in get_num_tokens
docker-api-1            |     return plugin_model_manager.get_llm_num_tokens(
docker-api-1            |   File "/app/api/core/plugin/manager/model.py", line 231, in get_llm_num_tokens
docker-api-1            |     for resp in response:
docker-api-1            |                 ^^^^^^^^
docker-api-1            |   File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream
docker-api-1            |     self._handle_plugin_daemon_error(error.error_type, error.message)
docker-api-1            |   File "/app/api/core/plugin/manager/base.py", line 221, in _handle_plugin_daemon_error
docker-api-1            |     raise PluginInvokeError(description=message)
docker-api-1            | core.plugin.manager.exc.PluginInvokeError: PluginInvokeError: {"args":{},"error_type":"ConnectionError","message":"('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))"}
docker-api-1            | 2025-03-12 14:26:04.581 ERROR [Dummy-3] [base_app_generate_response_converter.py:123] - {"args":{},"error_type":"ConnectionError","message":"('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))"}

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @adamwoo on GitHub (Mar 12, 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.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce After Upgrade to v1.0.1 all model worked before dont't work right now ,the error messge as below. It seems like some network issue or proxy,I check all that stuff and use docker exec into container check model api works fine. ``` docker-api-1 | File "/app/api/core/model_manager.py", line 195, in get_llm_num_tokens docker-api-1 | self._round_robin_invoke( docker-api-1 | File "/app/api/core/model_manager.py", line 370, in _round_robin_invoke docker-api-1 | return function(*args, **kwargs) docker-api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^ docker-api-1 | File "/app/api/core/model_runtime/model_providers/__base/large_language_model.py", line 299,,in get_num_tokens docker-api-1 | return plugin_model_manager.get_llm_num_tokens( docker-api-1 | File "/app/api/core/plugin/manager/model.py", line 231, in get_llm_num_tokens docker-api-1 | for resp in response: docker-api-1 | ^^^^^^^^ docker-api-1 | File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream docker-api-1 | self._handle_plugin_daemon_error(error.error_type, error.message) docker-api-1 | File "/app/api/core/plugin/manager/base.py", line 221, in _handle_plugin_daemon_error docker-api-1 | raise PluginInvokeError(description=message) docker-api-1 | core.plugin.manager.exc.PluginInvokeError: PluginInvokeError: {"args":{},"error_type":"ConnectionError","message":"('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))"} docker-api-1 | 2025-03-12 14:26:04.581 ERROR [Dummy-3] [base_app_generate_response_converter.py:123] - {"args":{},"error_type":"ConnectionError","message":"('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))"} ``` ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:49:52 -05:00
yindo closed this issue 2026-02-21 18:49:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#10679