dify源码启动的 5002 监听端口一直报错问题

在本地启动 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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

余生大大

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值