plugin #11034

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

Originally created by @otoTree on GitHub (Mar 14, 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 (Source)

Steps to reproduce

requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=5002): Max retries exceeded with url: /plugin/a973e716-15da-4be5-85c2-e6ffd29b143a/management/models?page=1&page_size=256 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000015CDF3316D0>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\project_python\dify\.venv\Lib\site-packages\flask\app.py", line 917, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\project_python\dify\.venv\Lib\site-packages\flask\app.py", line 902, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\project_python\dify\.venv\Lib\site-packages\flask_restful\__init__.py", line 489, in wrapper
    resp = resource(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\project_python\dify\.venv\Lib\site-packages\flask\views.py", line 110, in view
    return current_app.ensure_sync(self.dispatch_request)(**kwargs)  # type: ignore[no-any-return]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\project_python\dify\.venv\Lib\site-packages\flask_restful\__init__.py", line 604, in dispatch_request
    resp = meth(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "D:\project_python\dify\controllers\console\wraps.py", line 187, in decorated
    return view(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "D:\project_python\dify\libs\login.py", line 94, in decorated_view
    return current_app.ensure_sync(func)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\project_python\dify\controllers\console\wraps.py", line 30, in decorated
    return view(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "D:\project_python\dify\controllers\console\workspace\models.py", line 360, in get
    models = model_provider_service.get_models_by_model_type(tenant_id=tenant_id, model_type=model_type)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\project_python\dify\services\model_provider_service.py", line 271, in get_models_by_model_type
    provider_configurations = self.provider_manager.get_configurations(tenant_id)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\project_python\dify\core\provider_manager.py", line 123, in get_configurations
    provider_entities = model_provider_factory.get_providers()
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\project_python\dify\core\model_runtime\model_providers\model_provider_factory.py", line 59, in get_providers
    plugin_providers = self.get_plugin_model_providers()
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\project_python\dify\core\model_runtime\model_providers\model_provider_factory.py", line 95, in get_plugin_model_providers
    plugin_providers = self.plugin_model_manager.fetch_model_providers(self.tenant_id)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\project_python\dify\core\plugin\manager\model.py", line 29, in fetch_model_providers
    response = self._request_with_plugin_daemon_response(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\project_python\dify\core\plugin\manager\base.py", line 138, in _request_with_plugin_daemon_response
    response = self._request(method, path, headers, data, params, files)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\project_python\dify\core\plugin\manager\base.py", line 68, in _request
    raise PluginDaemonInnerError(code=-500, message="Request to Plugin Daemon Service failed")
core.plugin.entities.plugin_daemon.PluginDaemonInnerError

Follow the tutorial to deploy the local source code. Currently, all other functions are normal, but it seems that the plugin service will not start. Should developers write it themselves

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @otoTree on GitHub (Mar 14, 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 (Source) ### Steps to reproduce requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=5002): Max retries exceeded with url: /plugin/a973e716-15da-4be5-85c2-e6ffd29b143a/management/models?page=1&page_size=256 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000015CDF3316D0>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')) During handling of the above exception, another exception occurred: ``` Traceback (most recent call last): File "D:\project_python\dify\.venv\Lib\site-packages\flask\app.py", line 917, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "D:\project_python\dify\.venv\Lib\site-packages\flask\app.py", line 902, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\project_python\dify\.venv\Lib\site-packages\flask_restful\__init__.py", line 489, in wrapper resp = resource(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\project_python\dify\.venv\Lib\site-packages\flask\views.py", line 110, in view return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\project_python\dify\.venv\Lib\site-packages\flask_restful\__init__.py", line 604, in dispatch_request resp = meth(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "D:\project_python\dify\controllers\console\wraps.py", line 187, in decorated return view(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "D:\project_python\dify\libs\login.py", line 94, in decorated_view return current_app.ensure_sync(func)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\project_python\dify\controllers\console\wraps.py", line 30, in decorated return view(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "D:\project_python\dify\controllers\console\workspace\models.py", line 360, in get models = model_provider_service.get_models_by_model_type(tenant_id=tenant_id, model_type=model_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\project_python\dify\services\model_provider_service.py", line 271, in get_models_by_model_type provider_configurations = self.provider_manager.get_configurations(tenant_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\project_python\dify\core\provider_manager.py", line 123, in get_configurations provider_entities = model_provider_factory.get_providers() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\project_python\dify\core\model_runtime\model_providers\model_provider_factory.py", line 59, in get_providers plugin_providers = self.get_plugin_model_providers() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\project_python\dify\core\model_runtime\model_providers\model_provider_factory.py", line 95, in get_plugin_model_providers plugin_providers = self.plugin_model_manager.fetch_model_providers(self.tenant_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\project_python\dify\core\plugin\manager\model.py", line 29, in fetch_model_providers response = self._request_with_plugin_daemon_response( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\project_python\dify\core\plugin\manager\base.py", line 138, in _request_with_plugin_daemon_response response = self._request(method, path, headers, data, params, files) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\project_python\dify\core\plugin\manager\base.py", line 68, in _request raise PluginDaemonInnerError(code=-500, message="Request to Plugin Daemon Service failed") core.plugin.entities.plugin_daemon.PluginDaemonInnerError ``` Follow the tutorial to deploy the local source code. Currently, all other functions are normal, but it seems that the plugin service will not start. Should developers write it themselves ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-21 18:54:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#11034