[ERROR] Failed to start remote plugin server: bind: address already in use #96

Open
opened 2026-02-16 00:19:45 -05:00 by yindo · 1 comment
Owner

Originally created by @berg-wang on GitHub (Apr 21, 2025).

I deployed dify-plugin-daemon in k8s cluster, using aws_s3 as my storage type. When I started the deployment, there were some error messages in the startup log。
image version: langgenius/dify-plugin-daemon:0.0.7-local
the main error info:
[ERROR]start remote plugin server failed: bind: address already in use
[ERROR]failed to get the version of the plugin sdk: failed to find the version of the plugin sdk

2025/04/22 10:02:38 pool.go:32: [INFO]init routine pool, size: 10000
2025/04/22 10:02:48 init.go:93: [INFO]dify plugin db initialized
2025/04/22 10:02:48 manager.go:159: [INFO]start plugin manager daemon...
2025/04/22 10:02:48 init.go:19: [INFO]Persistence initialized
2025/04/22 10:02:48 watcher.go:16: [INFO]start to handle new plugins in path: plugin
[GIN] 2025/04/22 - 10:02:48 | 200 |     124.116µs |  172.190.167.54 | GET      "/health/check"
2025/04/22 10:02:48 watcher.go:39: [ERROR]start remote plugin server failed: bind: address already in use
[GIN] 2025/04/22 - 10:02:48 | 200 |      38.009µs |  172.190.167.54 | GET      "/health/check"
2025/04/22 10:02:48 runtime_lifetime.go:48: [INFO]new plugin logged in: szit/szunicom_models:0.0.13
2025/04/22 10:02:48 runtime_lifetime.go:80: [INFO]init environment for plugin szit/szunicom_models:0.0.13
[GIN] 2025/04/22 - 10:02:48 | 200 |      34.401µs |  172.190.167.54 | GET      "/health/check"
[GIN] 2025/04/22 - 10:02:48 | 200 |      24.872µs |  172.190.167.54 | GET      "/health/check"
[GIN] 2025/04/22 - 10:02:48 | 200 |      31.381µs |  172.190.167.54 | GET      "/health/check"
2025/04/22 10:02:53 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Listing '.'......
2025/04/22 10:02:53 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/click/_compat.py'......
2025/04/22 10:02:53 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/dify_plugin/interfaces/model/ai_model.py'......
2025/04/22 10:02:53 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/dpkt/pim.py'......
2025/04/22 10:02:53 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/gevent/monkey/_main.py'......
2025/04/22 10:02:54 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/gevent/tests/test__environ.py'......
2025/04/22 10:02:54 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/gevent/tests/test__threading_fork_from_dummy.py'......
2025/04/22 10:02:54 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/httpcore/_sync/http2.py'......
2025/04/22 10:02:54 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/openai/_models.py'......
2025/04/22 10:02:54 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/openai/resources/chat/completions/completions.py'......
2025/04/22 10:02:54 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/openai/types/beta/realtime/conversation_item_delete_event_param.py'......
2025/04/22 10:02:54 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/openai/types/beta/threads/image_url_content_block_param.py'......
2025/04/22 10:02:55 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/openai/types/chat/chat_completion_tool_choice_option_param.py'......
2025/04/22 10:02:55 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/openai/types/responses/response_computer_tool_call_output_screenshot.py'......
2025/04/22 10:02:55 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/openai/types/responses/tool_param.py'......
2025/04/22 10:02:55 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Listing './.venv/lib/python3.12/site-packages/pydantic'......
2025/04/22 10:02:55 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/pydantic/v1/typing.py'......
2025/04/22 10:02:55 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py'......
2025/04/22 10:02:56 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/setuptools/_distutils/util.py'......
2025/04/22 10:02:56 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/setuptools/_vendor/packaging/specifiers.py'......
2025/04/22 10:02:56 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/setuptools/command/build.py'......
2025/04/22 10:02:56 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/setuptools/tests/test_dist.py'......
2025/04/22 10:02:56 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/urllib3/_base_connection.py'......
2025/04/22 10:02:57 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/yaml/cyaml.py'......
2025/04/22 10:02:57 environment_python.go:320: [INFO]pre-loaded the plugin szit/szunicom_models:0.0.13
2025/04/22 10:02:58 environment_python.go:350: [ERROR]failed to get the version of the plugin sdk: failed to find the version of the plugin sdk
2025/04/22 10:02:58 run.go:143: [INFO]plugin szit/szunicom_models:0.0.13 started
2025/04/22 10:02:59 stdio_handle.go:128: [INFO]plugin szit/szunicom_models:0.0.13: Installed model: szunicom_models
[GIN] 2025/04/22 - 10:03:18 | 200 |      48.544µs |  172.190.167.54 | GET      "/health/check"
[GIN] 2025/04/22 - 10:03:18 | 200 |      38.265µs |  172.190.167.54 | GET      "/health/check"
[GIN] 2025/04/22 - 10:03:48 | 200 |      44.134µs |  172.190.167.54 | GET      "/health/check"
[GIN] 2025/04/22 - 10:03:48 | 200 |      42.604µs |  172.190.167.54 | GET      "/health/check"
[GIN] 2025/04/22 - 10:03:48 | 200 |      44.126µs |  172.190.167.54 | GET      "/health/check"
[GIN] 2025/04/22 - 10:03:48 | 200 |      25.218µs |  172.190.167.54 | GET      "/health/check"
[GIN] 2025/04/22 - 10:03:48 | 200 |      33.278µs |  172.190.167.54 | GET      "/health/check"
2025/04/22 10:04:03 stdio_handle.go:207: [WARN]plugin szit/szunicom_models:0.0.13 is not active for 64.082397 seconds, it may be dead
2025/04/22 10:04:08 stdio_handle.go:207: [WARN]plugin szit/szunicom_models:0.0.13 is not active for 69.081902 seconds, it may be dead
2025/04/22 10:04:13 stdio_handle.go:207: [WARN]plugin szit/szunicom_models:0.0.13 is not active for 74.081936 seconds, it may be dead
2025/04/22 10:04:18 stdio_handle.go:207: [WARN]plugin szit/szunicom_models:0.0.13 is not active for 79.082640 seconds, it may be dead```

Originally created by @berg-wang on GitHub (Apr 21, 2025). I deployed dify-plugin-daemon in k8s cluster, using aws_s3 as my storage type. When I started the deployment, there were some error messages in the startup log。 image version: langgenius/dify-plugin-daemon:0.0.7-local the main error info: **[ERROR]start remote plugin server failed: bind: address already in use** **[ERROR]failed to get the version of the plugin sdk: failed to find the version of the plugin sdk** ``` 2025/04/22 10:02:38 pool.go:32: [INFO]init routine pool, size: 10000 2025/04/22 10:02:48 init.go:93: [INFO]dify plugin db initialized 2025/04/22 10:02:48 manager.go:159: [INFO]start plugin manager daemon... 2025/04/22 10:02:48 init.go:19: [INFO]Persistence initialized 2025/04/22 10:02:48 watcher.go:16: [INFO]start to handle new plugins in path: plugin [GIN] 2025/04/22 - 10:02:48 | 200 | 124.116µs | 172.190.167.54 | GET "/health/check" 2025/04/22 10:02:48 watcher.go:39: [ERROR]start remote plugin server failed: bind: address already in use [GIN] 2025/04/22 - 10:02:48 | 200 | 38.009µs | 172.190.167.54 | GET "/health/check" 2025/04/22 10:02:48 runtime_lifetime.go:48: [INFO]new plugin logged in: szit/szunicom_models:0.0.13 2025/04/22 10:02:48 runtime_lifetime.go:80: [INFO]init environment for plugin szit/szunicom_models:0.0.13 [GIN] 2025/04/22 - 10:02:48 | 200 | 34.401µs | 172.190.167.54 | GET "/health/check" [GIN] 2025/04/22 - 10:02:48 | 200 | 24.872µs | 172.190.167.54 | GET "/health/check" [GIN] 2025/04/22 - 10:02:48 | 200 | 31.381µs | 172.190.167.54 | GET "/health/check" 2025/04/22 10:02:53 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Listing '.'...... 2025/04/22 10:02:53 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/click/_compat.py'...... 2025/04/22 10:02:53 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/dify_plugin/interfaces/model/ai_model.py'...... 2025/04/22 10:02:53 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/dpkt/pim.py'...... 2025/04/22 10:02:53 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/gevent/monkey/_main.py'...... 2025/04/22 10:02:54 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/gevent/tests/test__environ.py'...... 2025/04/22 10:02:54 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/gevent/tests/test__threading_fork_from_dummy.py'...... 2025/04/22 10:02:54 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/httpcore/_sync/http2.py'...... 2025/04/22 10:02:54 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/openai/_models.py'...... 2025/04/22 10:02:54 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/openai/resources/chat/completions/completions.py'...... 2025/04/22 10:02:54 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/openai/types/beta/realtime/conversation_item_delete_event_param.py'...... 2025/04/22 10:02:54 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/openai/types/beta/threads/image_url_content_block_param.py'...... 2025/04/22 10:02:55 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/openai/types/chat/chat_completion_tool_choice_option_param.py'...... 2025/04/22 10:02:55 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/openai/types/responses/response_computer_tool_call_output_screenshot.py'...... 2025/04/22 10:02:55 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/openai/types/responses/tool_param.py'...... 2025/04/22 10:02:55 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Listing './.venv/lib/python3.12/site-packages/pydantic'...... 2025/04/22 10:02:55 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/pydantic/v1/typing.py'...... 2025/04/22 10:02:55 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py'...... 2025/04/22 10:02:56 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/setuptools/_distutils/util.py'...... 2025/04/22 10:02:56 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/setuptools/_vendor/packaging/specifiers.py'...... 2025/04/22 10:02:56 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/setuptools/command/build.py'...... 2025/04/22 10:02:56 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/setuptools/tests/test_dist.py'...... 2025/04/22 10:02:56 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/urllib3/_base_connection.py'...... 2025/04/22 10:02:57 environment_python.go:287: [INFO]pre-compiling szit/szunicom_models:0.0.13 - Compiling './.venv/lib/python3.12/site-packages/yaml/cyaml.py'...... 2025/04/22 10:02:57 environment_python.go:320: [INFO]pre-loaded the plugin szit/szunicom_models:0.0.13 2025/04/22 10:02:58 environment_python.go:350: [ERROR]failed to get the version of the plugin sdk: failed to find the version of the plugin sdk 2025/04/22 10:02:58 run.go:143: [INFO]plugin szit/szunicom_models:0.0.13 started 2025/04/22 10:02:59 stdio_handle.go:128: [INFO]plugin szit/szunicom_models:0.0.13: Installed model: szunicom_models [GIN] 2025/04/22 - 10:03:18 | 200 | 48.544µs | 172.190.167.54 | GET "/health/check" [GIN] 2025/04/22 - 10:03:18 | 200 | 38.265µs | 172.190.167.54 | GET "/health/check" [GIN] 2025/04/22 - 10:03:48 | 200 | 44.134µs | 172.190.167.54 | GET "/health/check" [GIN] 2025/04/22 - 10:03:48 | 200 | 42.604µs | 172.190.167.54 | GET "/health/check" [GIN] 2025/04/22 - 10:03:48 | 200 | 44.126µs | 172.190.167.54 | GET "/health/check" [GIN] 2025/04/22 - 10:03:48 | 200 | 25.218µs | 172.190.167.54 | GET "/health/check" [GIN] 2025/04/22 - 10:03:48 | 200 | 33.278µs | 172.190.167.54 | GET "/health/check" 2025/04/22 10:04:03 stdio_handle.go:207: [WARN]plugin szit/szunicom_models:0.0.13 is not active for 64.082397 seconds, it may be dead 2025/04/22 10:04:08 stdio_handle.go:207: [WARN]plugin szit/szunicom_models:0.0.13 is not active for 69.081902 seconds, it may be dead 2025/04/22 10:04:13 stdio_handle.go:207: [WARN]plugin szit/szunicom_models:0.0.13 is not active for 74.081936 seconds, it may be dead 2025/04/22 10:04:18 stdio_handle.go:207: [WARN]plugin szit/szunicom_models:0.0.13 is not active for 79.082640 seconds, it may be dead```
yindo added the plugin-daemon label 2026-02-16 00:19:45 -05:00
Author
Owner

@41tair commented on GitHub (Jun 11, 2025):

Does this issue still occur with the latest version of the daemon? If the problem persists, could you also provide the list of environment variables used by the daemon?

@41tair commented on GitHub (Jun 11, 2025): Does this issue still occur with the latest version of the daemon? If the problem persists, could you also provide the list of environment variables used by the daemon?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#96