在本地启动 dify的 api后,一直输出以下报错内容,看 github 的问题反馈,是 v1.0.0版本中新增的这个 5002 本地监听,但是源码和官方没有写这个文档所以本地下下来代码👍。
github问题:PluginDaemon 必须启动。代码启动错误 #14577
处理方案:docker下载PluginDaemon依赖
docker源:docker.io/langgenius/dify-plugin-daemon:0.0.3-local
执行以下方法。
下载镜像:
docker pull docker.io/langgenius/dify-plugin-daemon:0.0.3-local
启动镜像:
docker run -d \
--name dify-plugin-daemon \
-p 5002:5002 \
langgenius/dify-plugin-daemon:0.0.3-local
报错内容:
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=5002): Max retries exceeded with url: /plugin/5c725aee-8c61-4c7c-b8ae-734d824999b7/management/install/tasks?page=1&page_size=100 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x16b8c50a0>: Failed to establish a new connection: [Errno 61] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/An/Desktop/AI/dify/dify-main/api/core/plugin/manager/base.py", line 63, in _request
response = requests.request(
^^^^^^^^^^^^^^^^^
File "/Users/An/Desktop/AI/dify/dify-main/my_env/lib/python3.12/site-packages/requests/api.py", line 59, in request