An error occurs when accessing the plugin page #15466

Closed
opened 2026-02-21 19:21:53 -05:00 by yindo · 6 comments
Owner

Originally created by @stohny on GitHub (Jul 17, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.6。0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

进入插件页面报错,页面接口/console/api/workspaces/current/plugin/list?page=1&page_size=100
望官方或者社区大佬指点迷津
{
"code": "invalid_param",
"message": "Failed to parse response from plugin daemon to PluginDaemonBasicResponse [PluginListResponse], url: plugin/0fb485f2-f4cd-473c-b5c9-07a298891091/management/list",
"status": 400
}
Image

✔️ Expected Behavior

望官方或者社区大佬指点迷津

Actual Behavior

望官方或者社区大佬指点迷津

Originally created by @stohny on GitHub (Jul 17, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.6。0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 进入插件页面报错,页面接口/console/api/workspaces/current/plugin/list?page=1&page_size=100 望官方或者社区大佬指点迷津 { "code": "invalid_param", "message": "Failed to parse response from plugin daemon to PluginDaemonBasicResponse [PluginListResponse], url: plugin/0fb485f2-f4cd-473c-b5c9-07a298891091/management/list", "status": 400 } <img width="489" height="312" alt="Image" src="https://github.com/user-attachments/assets/3a48db4f-9822-4caa-a918-fe66eac7e7d9" /> ### ✔️ Expected Behavior 望官方或者社区大佬指点迷津 ### ❌ Actual Behavior 望官方或者社区大佬指点迷津
yindo added the 🐞 bug label 2026-02-21 19:21:53 -05:00
yindo closed this issue 2026-02-21 19:21:53 -05:00
Author
Owner

@SaithZhang commented on GitHub (Jul 17, 2025):

如果是最新的main分支,应该是端口号没对应上 api请求了错误的端口,看.env和compose.yml 里面的plugin_daemon端口 是不是5002,大概率是compose.yml 里面的端口错了。

Image
@SaithZhang commented on GitHub (Jul 17, 2025): 如果是最新的main分支,应该是端口号没对应上 api请求了错误的端口,看.env和compose.yml 里面的plugin_daemon端口 是不是5002,大概率是compose.yml 里面的端口错了。 <img width="1480" height="391" alt="Image" src="https://github.com/user-attachments/assets/5dfc4354-bc2e-462f-afb7-7a44e7d6f5bb" />
Author
Owner

@stohny commented on GitHub (Jul 17, 2025):

.env
Image

compose.yml
Image
两个配置文件对上了的

@stohny commented on GitHub (Jul 17, 2025): .env <img width="708" height="181" alt="Image" src="https://github.com/user-attachments/assets/79ff684a-eb60-46e5-aa68-7f4426e59a69" /> compose.yml <img width="985" height="458" alt="Image" src="https://github.com/user-attachments/assets/e57b7dd4-7dc6-4c29-a9ab-2de2841d71dd" /> 两个配置文件对上了的
Author
Owner

@SaithZhang commented on GitHub (Jul 17, 2025):

那就得看看报错日志了,我昨天和您这个问题一样。我把错误日志给ai,发现就是端口的问题。
然后我把git目录都删了,按照官网重新部署下就好了。main分支。
https://docs.dify.ai/zh-hans/getting-started/install-self-hosted/docker-compose

附上昨天的日志,进代码下面的dify/docker目录
docker compose logs plugin_daemon
Saith@Saith-4090 MINGW64 /d/work/github/dify/docker (main)
$ docker compose logs plugin_daemon
time="2025-07-17T17:42:26+08:00" level=warning msg="The "DB_USERNAME" variable is not set. Defaulting to a blank string."
time="2025-07-17T17:42:26+08:00" level=warning msg="The "DB_DATABASE" variable is not set. Defaulting to a blank string."
time="2025-07-17T17:42:26+08:00" level=warning msg="The "DB_PASSWORD" variable is not set. Defaulting to a blank string."
time="2025-07-17T17:42:26+08:00" level=warning msg="The "DB_PASSWORD" variable is not set. Defaulting to a blank string."
time="2025-07-17T17:42:26+08:00" level=warning msg="The "DB_DATABASE" variable is not set. Defaulting to a blank string."
time="2025-07-17T17:42:26+08:00" level=warning msg="The "DB_USERNAME" variable is not set. Defaulting to a blank string."
time="2025-07-17T17:42:26+08:00" level=warning msg="The "CERTBOT_EMAIL" variable is not set. Defaulting to a blank string."
time="2025-07-17T17:42:26+08:00" level=warning msg="The "CERTBOT_DOMAIN" variable is not set. Defaulting to a blank string."
time="2025-07-17T17:42:26+08:00" level=warning msg="The "DB_PASSWORD" variable is not set. Defaulting to a blank string."
time="2025-07-17T17:42:26+08:00" level=warning msg="The "DB_DATABASE" variable is not set. Defaulting to a blank string."
time="2025-07-17T17:42:26+08:00" level=warning msg="The "DB_USERNAME" variable is not set. Defaulting to a blank string."
time="2025-07-17T17:42:26+08:00" level=warning msg="The "DB_DATABASE" variable is not set. Defaulting to a blank string."
time="2025-07-17T17:42:26+08:00" level=warning msg="The "DB_USERNAME" variable is not set. Defaulting to a blank string."
time="2025-07-17T17:42:26+08:00" level=warning msg="The "DB_PASSWORD" variable is not set. Defaulting to a blank string."
plugin_daemon-1 | 2025/07/17 09:36:23 pool.go:32: [INFO]init routine pool, size: 10000
plugin_daemon-1 | 2025/07/17 09:36:24 init.go:103: [INFO]dify plugin db initialized
plugin_daemon-1 | 2025/07/17 09:36:24 manager.go:113: [INFO]start plugin manager daemon...
plugin_daemon-1 | 2025/07/17 09:36:24 init.go:20: [INFO]Persistence initialized
plugin_daemon-1 | 2025/07/17 09:36:24 watcher.go:16: [INFO]start to handle new plugins in path: plugin
plugin_daemon-1 | [gnet] 2025-07-17T09:36:24.452367142Z INFO logging/logger.go:256 Launching gnet with 8 event-loops, listening on: tcp://0.0.0.0:5003

API的
docker compose logs api
api-1 | Traceback (most recent call last):
api-1 | File "/app/api/core/plugin/impl/base.py", line 64, in _request
api-1 | response = requests.request(
api-1 | ^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/requests/api.py", line 59, in request
api-1 | return session.request(method=method, url=url, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
api-1 | resp = self.send(prep, **send_kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
api-1 | r = adapter.send(request, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/requests/adapters.py", line 700, in send
api-1 | raise ConnectionError(e, request=request)
api-1 | requests.exceptions.ConnectionError: HTTPConnectionPool(host='host.docker.internal', port=5002): Max retries exceeded with url: /plugin/dd1b4ae7-0b0a-4d46-918b-d79f43600961/management/install/tasks?page=1&page_size=100 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa593914890>: Failed to establish a new connection: [Errno 111] Connection refused'))

@SaithZhang commented on GitHub (Jul 17, 2025): 那就得看看报错日志了,我昨天和您这个问题一样。我把错误日志给ai,发现就是端口的问题。 然后我把git目录都删了,按照官网重新部署下就好了。main分支。 https://docs.dify.ai/zh-hans/getting-started/install-self-hosted/docker-compose 附上昨天的日志,进代码下面的dify/docker目录 `docker compose logs plugin_daemon` Saith@Saith-4090 MINGW64 /d/work/github/dify/docker (main) $ docker compose logs plugin_daemon time="2025-07-17T17:42:26+08:00" level=warning msg="The \"DB_USERNAME\" variable is not set. Defaulting to a blank string." time="2025-07-17T17:42:26+08:00" level=warning msg="The \"DB_DATABASE\" variable is not set. Defaulting to a blank string." time="2025-07-17T17:42:26+08:00" level=warning msg="The \"DB_PASSWORD\" variable is not set. Defaulting to a blank string." time="2025-07-17T17:42:26+08:00" level=warning msg="The \"DB_PASSWORD\" variable is not set. Defaulting to a blank string." time="2025-07-17T17:42:26+08:00" level=warning msg="The \"DB_DATABASE\" variable is not set. Defaulting to a blank string." time="2025-07-17T17:42:26+08:00" level=warning msg="The \"DB_USERNAME\" variable is not set. Defaulting to a blank string." time="2025-07-17T17:42:26+08:00" level=warning msg="The \"CERTBOT_EMAIL\" variable is not set. Defaulting to a blank string." time="2025-07-17T17:42:26+08:00" level=warning msg="The \"CERTBOT_DOMAIN\" variable is not set. Defaulting to a blank string." time="2025-07-17T17:42:26+08:00" level=warning msg="The \"DB_PASSWORD\" variable is not set. Defaulting to a blank string." time="2025-07-17T17:42:26+08:00" level=warning msg="The \"DB_DATABASE\" variable is not set. Defaulting to a blank string." time="2025-07-17T17:42:26+08:00" level=warning msg="The \"DB_USERNAME\" variable is not set. Defaulting to a blank string." time="2025-07-17T17:42:26+08:00" level=warning msg="The \"DB_DATABASE\" variable is not set. Defaulting to a blank string." time="2025-07-17T17:42:26+08:00" level=warning msg="The \"DB_USERNAME\" variable is not set. Defaulting to a blank string." time="2025-07-17T17:42:26+08:00" level=warning msg="The \"DB_PASSWORD\" variable is not set. Defaulting to a blank string." plugin_daemon-1 | 2025/07/17 09:36:23 pool.go:32: [INFO]init routine pool, size: 10000 plugin_daemon-1 | 2025/07/17 09:36:24 init.go:103: [INFO]dify plugin db initialized plugin_daemon-1 | 2025/07/17 09:36:24 manager.go:113: [INFO]start plugin manager daemon... plugin_daemon-1 | 2025/07/17 09:36:24 init.go:20: [INFO]Persistence initialized plugin_daemon-1 | 2025/07/17 09:36:24 watcher.go:16: [INFO]start to handle new plugins in path: plugin plugin_daemon-1 | [gnet] 2025-07-17T09:36:24.452367142Z INFO logging/logger.go:256 Launching gnet with 8 event-loops, listening on: tcp://0.0.0.0:5003 API的 `docker compose logs api` api-1 | Traceback (most recent call last): api-1 | File "/app/api/core/plugin/impl/base.py", line 64, in _request api-1 | response = requests.request( api-1 | ^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/requests/api.py", line 59, in request api-1 | return session.request(method=method, url=url, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/requests/sessions.py", line 589, in request api-1 | resp = self.send(prep, **send_kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/requests/sessions.py", line 703, in send api-1 | r = adapter.send(request, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/requests/adapters.py", line 700, in send api-1 | raise ConnectionError(e, request=request) api-1 | requests.exceptions.ConnectionError: HTTPConnectionPool(host='host.docker.internal', port=5002): Max retries exceeded with url: /plugin/dd1b4ae7-0b0a-4d46-918b-d79f43600961/management/install/tasks?page=1&page_size=100 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa593914890>: Failed to establish a new connection: [Errno 111] Connection refused'))
Author
Owner

@sheng-chen commented on GitHub (Jul 27, 2025):

I have the same promblem

@sheng-chen commented on GitHub (Jul 27, 2025): I have the same promblem
Author
Owner

@jf-jl commented on GitHub (Nov 3, 2025):

I have the same promblem

@jf-jl commented on GitHub (Nov 3, 2025): I have the same promblem
Author
Owner

@jf-jl commented on GitHub (Nov 3, 2025):

Image
@jf-jl commented on GitHub (Nov 3, 2025): <img width="395" height="143" alt="Image" src="https://github.com/user-attachments/assets/dbbdb42e-2d71-420b-b8df-25815e89d1eb" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#15466