langgenius/openai:0.2.7 is not active #840

Closed
opened 2026-02-16 10:20:40 -05:00 by yindo · 1 comment
Owner

Originally created by @mbotsu on GitHub (Nov 28, 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 Dify issues & Dify Official Plugins, 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.10.1

Plugin version

langgenius/openai:0.2.7

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When running parallel from API, plugin langgenius/openai:0.2.7 is not active.
This did not happen in 1.8.0.
The result is the same after deleting and installing the plugin.
This is done via FunctionCalling on AI Agents.

.env

PLUGIN_STORAGE_TYPE=local
PLUGIN_PYTHON_ENV_INIT_TIMEOUT=300
PLUGIN_MAX_EXECUTION_TIMEOUT=600

docker-compose.yaml

  plugin_daemon:
    image: langgenius/dify-plugin-daemon:0.4.1-local
    restart: always
    environment:
      MAX_REQUEST_TIMEOUT: 600
      MAX_INVOCATION_TIMEOUT: 600

✔️ Error log

[GIN] 2025/11/28 - 08:10:26 | 200 | 854.75µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256"
[GIN] 2025/11/28 - 08:10:27 | 200 | 7.753834ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged"
[GIN] 2025/11/28 - 08:10:27 | 200 | 13.316805381s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/llm/invoke"
[GIN] 2025/11/28 - 08:10:27 | 200 | 872.833µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256"
[GIN] 2025/11/28 - 08:10:27 | 200 | 7.177792ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged"
[GIN] 2025/11/28 - 08:10:27 | 200 | 871.292µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256"
[GIN] 2025/11/28 - 08:10:27 | 200 | 5.444667ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/models?page=1&page_size=256"
[GIN] 2025/11/28 - 08:10:27 | 200 | 48.812083ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged"
[GIN] 2025/11/28 - 08:10:27 | 200 | 7.79025ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged"
[GIN] 2025/11/28 - 08:10:27 | 200 | 773.375µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256"
[GIN] 2025/11/28 - 08:10:27 | 200 | 13.82880359s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/llm/invoke"
[GIN] 2025/11/28 - 08:10:27 | 200 | 7.319292ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged"
[GIN] 2025/11/28 - 08:10:27 | 200 | 7.270959ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged"
[GIN] 2025/11/28 - 08:10:27 | 200 | 826.708µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256"
[GIN] 2025/11/28 - 08:10:27 | 200 | 981.125µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256"
[GIN] 2025/11/28 - 08:10:27 | 200 | 820.875µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256"
[GIN] 2025/11/28 - 08:10:27 | 200 | 7.657917ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged"
[GIN] 2025/11/28 - 08:10:27 | 200 | 875.75µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256"
[GIN] 2025/11/28 - 08:10:27 | 200 | 7.676708ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged"
[GIN] 2025/11/28 - 08:10:27 | 200 | 6.267375ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/models?page=1&page_size=256"
[GIN] 2025/11/28 - 08:10:27 | 200 | 930.209µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256"
[GIN] 2025/11/28 - 08:10:27 | 200 | 7.29425ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged"
[GIN] 2025/11/28 - 08:10:27 | 200 | 4.424875ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/models?page=1&page_size=256"
[GIN] 2025/11/28 - 08:10:28 | 200 | 7.519ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged"
[GIN] 2025/11/28 - 08:10:28 | 200 | 774.375µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256"
[GIN] 2025/11/28 - 08:10:28 | 200 | 27.160374554s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/llm/invoke"
[GIN] 2025/11/28 - 08:10:28 | 200 | 13.200152756s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/llm/invoke"
[GIN] 2025/11/28 - 08:10:30 | 200 | 15.110107549s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/llm/invoke"
[GIN] 2025/11/28 - 08:10:34 | 200 | 13.989894715s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/llm/invoke"
2025/11/28 08:12:00 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 62.340835 seconds, it may be dead
2025/11/28 08:12:05 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 67.341485 seconds, it may be dead
2025/11/28 08:12:10 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 72.347286 seconds, it may be dead
2025/11/28 08:12:15 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 77.341477 seconds, it may be dead
2025/11/28 08:12:20 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 82.341480 seconds, it may be dead
2025/11/28 08:12:25 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 87.341608 seconds, it may be dead
2025/11/28 08:12:30 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 92.343441 seconds, it may be dead
2025/11/28 08:12:35 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 97.342648 seconds, it may be dead
2025/11/28 08:12:40 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 102.341051 seconds, it may be dead
2025/11/28 08:12:45 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 107.341464 seconds, it may be dead
2025/11/28 08:12:50 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 112.340453 seconds, it may be dead
2025/11/28 08:12:55 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 117.342538 seconds, it may be dead
2025/11/28 08:13:00 stdio.go:248: [ERROR]plugin langgenius/openai:0.2.7 is not active for 122.344611 seconds, it may be dead, killing and restarting it
2025/11/28 08:13:00 run.go:135: [ERROR]plugin langgenius/openai:0.2.7 exited with error: signal: killed
2025/11/28 08:13:00 run.go:185: [INFO]plugin langgenius/openai:0.2.7 stopped
2025/11/28 08:13:05 run.go:147: [INFO]plugin langgenius/openai:0.2.7 started
2025/11/28 08:13:07 stdio.go:173: [INFO]plugin langgenius/openai:0.2.7: Installed model: openai
[GIN] 2025/11/28 - 08:14:11 | 200 | 4m10s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke"
[GIN] 2025/11/28 - 08:14:26 | 200 | 4m25s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke"
[GIN] 2025/11/28 - 08:14:26 | 200 | 4m26s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke"
[GIN] 2025/11/28 - 08:14:27 | 200 | 4m26s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke"
[GIN] 2025/11/28 - 08:14:31 | 200 | 4m30s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke"
[GIN] 2025/11/28 - 08:14:33 | 200 | 4m32s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke"
[GIN] 2025/11/28 - 08:14:37 | 200 | 4m36s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke"
[GIN] 2025/11/28 - 08:14:38 | 200 | 4m37s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke"
[GIN] 2025/11/28 - 08:14:38 | 200 | 4m37s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke"
[GIN] 2025/11/28 - 08:14:38 | 200 | 4m38s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke"

2025/11/28 08:20:16 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout
goroutine 2797 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:26 +0x64
github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x23d5e40, 0x40018f4520})
/app/internal/types/exception/factory.go:27 +0x24
github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0x4001d3b090, 0x2098996, 0x258?)
/app/internal/service/base_sse.go:84 +0x434
github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEWithSession[...](0x4001d3b128, {0x2098996, 0x5}, {0x20a773a, 0xa}, 0x4001806000, 0x400026f600, 0x258)
/app/internal/service/base_sse.go:114 +0x180
github.com/langgenius/dify-plugin-daemon/internal/service.InvokeLLM(0x1004001d3b101?, 0x1e043e0?, 0x4001d46170?)
/app/internal/service/model.gen.go:21 +0x5c
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4.1({{{0x4000f2091d, 0x24}, {0x4001dc2060, 0x24}}, {{0x0, 0x0}}, {0x40002da720, 0x58}, 0x0, 0x0, ...})
/app/internal/server/controllers/model.gen.go:20 +0x90
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1()
/app/internal/server/controllers/base.go:53 +0x98
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0x400026f600, 0x4001d3b488)
/app/internal/server/controllers/base.go:31 +0x228
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0xa?, 0x4001d3b4f8?)
/app/internal/server/controllers/base.go:37 +0x3c
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4(0x400026f600)
/app/internal/server/controllers/model.gen.go:17 +0x80
github.com/gin-gonic/gin.(*Context).Next(0x400026f600)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func4(0x400026f600)
/app/internal/server/middleware.go:182 +0x58
github.com/gin-gonic/gin.(*Context).Next(0x400026f600)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func3(0x400026f600)
/app/internal/server/middleware.go:109 +0x74
github.com/gin-gonic/gin.(*Context).Next(0x400026f600)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func2(0x400026f600)
/app/internal/server/middleware.go:78 +0x1dc
github.com/gin-gonic/gin.(*Context).Next(0x400026f600)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.CollectActiveDispatchRequests.func1(0x40009ee718?)
/app/internal/server/controllers/health_check.go:28 +0x5c
github.com/gin-gonic/gin.(*Context).Next(0x400026f600)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0x400026f600)
/app/internal/server/middleware.go:26 +0x98
github.com/gin-gonic/gin.(*Context).Next(0x400026f600)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).server.CollectActiveRequests.func3(0x40009ee7b8?)
/app/internal/server/controllers/health_check.go:20 +0x5c
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0x400026f600)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7c
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1(0x400026f600)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xb8
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0x40001f2b60, 0x400026f600)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x6c4
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0x40001f2b60, {0x2405a90, 0x4001c7a9a0}, 0x4001c74000)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x174
net/http.serverHandler.ServeHTTP({0x23f7e48?}, {0x2405a90?, 0x4001c7a9a0?}, 0x6?)
/usr/local/go/src/net/http/server.go:3210 +0xbc
net/http.(*conn).serve(0x40012f6510, {0x240a478, 0x4000782b40})
/usr/local/go/src/net/http/server.go:2092 +0x4fc
created by net/http.(*Server).Serve in goroutine 30
/usr/local/go/src/net/http/server.go:3360 +0x3dc

[GIN] 2025/11/28 - 08:20:16 | 200 | 10m0s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/llm/invoke"
2025/11/28 08:20:22 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout
goroutine 3429 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:26 +0x64
github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x23d5e40, 0x40018f46d0})
/app/internal/types/exception/factory.go:27 +0x24
github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0x4000e77090, 0x2098996, 0x258?)
/app/internal/service/base_sse.go:84 +0x434
github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEWithSession[...](0x4000e77128, {0x2098996, 0x5}, {0x20a773a, 0xa}, 0x40027325a0, 0x40007e8100, 0x258)
/app/internal/service/base_sse.go:114 +0x180
github.com/langgenius/dify-plugin-daemon/internal/service.InvokeLLM(0x1004000e77188?, 0x1e043e0?, 0x4000586aa0?)
/app/internal/service/model.gen.go:21 +0x5c
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4.1({{{0x4001c6800d, 0x24}, {0x400006ae10, 0x24}}, {{0x0, 0x0}}, {0x4000a90e40, 0x58}, 0x0, 0x0, ...})
/app/internal/server/controllers/model.gen.go:20 +0x90
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1()
/app/internal/server/controllers/base.go:53 +0x98
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0x40007e8100, 0x4000e77488)
/app/internal/server/controllers/base.go:31 +0x228
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0xa?, 0x4000e774f8?)
/app/internal/server/controllers/base.go:37 +0x3c
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4(0x40007e8100)
/app/internal/server/controllers/model.gen.go:17 +0x80
github.com/gin-gonic/gin.(*Context).Next(0x40007e8100)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func4(0x40007e8100)
/app/internal/server/middleware.go:182 +0x58
github.com/gin-gonic/gin.(*Context).Next(0x40007e8100)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func3(0x40007e8100)
/app/internal/server/middleware.go:109 +0x74
github.com/gin-gonic/gin.(*Context).Next(0x40007e8100)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func2(0x40007e8100)
/app/internal/server/middleware.go:78 +0x1dc
github.com/gin-gonic/gin.(*Context).Next(0x40007e8100)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.CollectActiveDispatchRequests.func1(0x4001d2e718?)
/app/internal/server/controllers/health_check.go:28 +0x5c
github.com/gin-gonic/gin.(*Context).Next(0x40007e8100)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0x40007e8100)
/app/internal/server/middleware.go:26 +0x98
github.com/gin-gonic/gin.(*Context).Next(0x40007e8100)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).server.CollectActiveRequests.func3(0x4001d2e7b8?)
/app/internal/server/controllers/health_check.go:20 +0x5c
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0x40007e8100)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7c
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1(0x40007e8100)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xb8
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0x40001f2b60, 0x40007e8100)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x6c4
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0x40001f2b60, {0x2405a90, 0x400087c540}, 0x4001c2f680)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x174
net/http.serverHandler.ServeHTTP({0x23f7e48?}, {0x2405a90?, 0x400087c540?}, 0x6?)
/usr/local/go/src/net/http/server.go:3210 +0xbc
net/http.(*conn).serve(0x40017550e0, {0x240a478, 0x4000782b40})
/usr/local/go/src/net/http/server.go:2092 +0x4fc
created by net/http.(*Server).Serve in goroutine 30
/usr/local/go/src/net/http/server.go:3360 +0x3dc

2025/11/28 08:20:26 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout
goroutine 3920 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:26 +0x64
github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x23d5e40, 0x4001c22830})
/app/internal/types/exception/factory.go:27 +0x24
github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0x4001d1b090, 0x2098996, 0x258?)
/app/internal/service/base_sse.go:84 +0x434
github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEWithSession[...](0x4001d1b128, {0x2098996, 0x5}, {0x20a773a, 0xa}, 0x4002691b00, 0x400050e200, 0x258)
/app/internal/service/base_sse.go:114 +0x180
github.com/langgenius/dify-plugin-daemon/internal/service.InvokeLLM(0x1004001d1b188?, 0x1e043e0?, 0x4002686850?)
/app/internal/service/model.gen.go:21 +0x5c
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4.1({{{0x4000f20a5d, 0x24}, {0x400268ea80, 0x24}}, {{0x0, 0x0}}, {0x40019c6660, 0x58}, 0x0, 0x0, ...})
/app/internal/server/controllers/model.gen.go:20 +0x90
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1()
/app/internal/server/controllers/base.go:53 +0x98
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0x400050e200, 0x4001d1b488)
/app/internal/server/controllers/base.go:31 +0x228
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0xa?, 0x4001d1b4f8?)
/app/internal/server/controllers/base.go:37 +0x3c
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4(0x400050e200)
/app/internal/server/controllers/model.gen.go:17 +0x80
github.com/gin-gonic/gin.(*Context).Next(0x400050e200)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func4(0x400050e200)
/app/internal/server/middleware.go:182 +0x58
github.com/gin-gonic/gin.(*Context).Next(0x400050e200)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func3(0x400050e200)
/app/internal/server/middleware.go:109 +0x74
github.com/gin-gonic/gin.(*Context).Next(0x400050e200)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func2(0x400050e200)
/app/internal/server/middleware.go:78 +0x1dc
github.com/gin-gonic/gin.(*Context).Next(0x400050e200)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.CollectActiveDispatchRequests.func1(0x4002728718?)
/app/internal/server/controllers/health_check.go:28 +0x5c
github.com/gin-gonic/gin.(*Context).Next(0x400050e200)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0x400050e200)
/app/internal/server/middleware.go:26 +0x98
github.com/gin-gonic/gin.(*Context).Next(0x400050e200)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).server.CollectActiveRequests.func3(0x40027287b8?)
/app/internal/server/controllers/health_check.go:20 +0x5c
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0x400050e200)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7c
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1(0x400050e200)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xb8
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0x40001f2b60, 0x400050e200)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x6c4
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0x40001f2b60, {0x2405a90, 0x400087cee0}, 0x40003628c0)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x174
net/http.serverHandler.ServeHTTP({0x23f7e48?}, {0x2405a90?, 0x400087cee0?}, 0x6?)
/usr/local/go/src/net/http/server.go:3210 +0xbc
net/http.(*conn).serve(0x40023e0d80, {0x240a478, 0x4000782b40})
/usr/local/go/src/net/http/server.go:2092 +0x4fc
created by net/http.(*Server).Serve in goroutine 30
/usr/local/go/src/net/http/server.go:3360 +0x3dc

2025/11/28 08:20:27 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout
goroutine 4043 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:26 +0x64
github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x23d5e40, 0x4001c228b0})
/app/internal/types/exception/factory.go:27 +0x24
github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0x40009a9090, 0x2098996, 0x258?)
/app/internal/service/base_sse.go:84 +0x434
github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEWithSession[...](0x40009a9128, {0x2098996, 0x5}, {0x20a773a, 0xa}, 0x40022d6360, 0x40007e8500, 0x258)
/app/internal/service/base_sse.go:114 +0x180
github.com/langgenius/dify-plugin-daemon/internal/service.InvokeLLM(0x10040009a9188?, 0x1e043e0?, 0x4000afd000?)
/app/internal/service/model.gen.go:21 +0x5c
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4.1({{{0x40019b600d, 0x24}, {0x40019b36e0, 0x24}}, {{0x0, 0x0}}, {0x40019c6cc0, 0x58}, 0x0, 0x0, ...})
/app/internal/server/controllers/model.gen.go:20 +0x90
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1()
/app/internal/server/controllers/base.go:53 +0x98
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0x40007e8500, 0x40009a9488)
/app/internal/server/controllers/base.go:31 +0x228
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0xa?, 0x40009a94f8?)
/app/internal/server/controllers/base.go:37 +0x3c
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4(0x40007e8500)
/app/internal/server/controllers/model.gen.go:17 +0x80
github.com/gin-gonic/gin.(*Context).Next(0x40007e8500)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func4(0x40007e8500)
/app/internal/server/middleware.go:182 +0x58
github.com/gin-gonic/gin.(*Context).Next(0x40007e8500)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func3(0x40007e8500)
/app/internal/server/middleware.go:109 +0x74
github.com/gin-gonic/gin.(*Context).Next(0x40007e8500)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func2(0x40007e8500)
/app/internal/server/middleware.go:78 +0x1dc
github.com/gin-gonic/gin.(*Context).Next(0x40007e8500)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.CollectActiveDispatchRequests.func1(0x40009f1718?)
/app/internal/server/controllers/health_check.go:28 +0x5c
github.com/gin-gonic/gin.(*Context).Next(0x40007e8500)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0x40007e8500)
/app/internal/server/middleware.go:26 +0x98
github.com/gin-gonic/gin.(*Context).Next(0x40007e8500)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).server.CollectActiveRequests.func3(0x40009f17b8?)
/app/internal/server/controllers/health_check.go:20 +0x5c
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0x40007e8500)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7c
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1(0x40007e8500)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xb8
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0x40001f2b60, 0x40007e8500)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x6c4
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0x40001f2b60, {0x2405a90, 0x400087ce00}, 0x400324ab40)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x174
net/http.serverHandler.ServeHTTP({0x23f7e48?}, {0x2405a90?, 0x400087ce00?}, 0x6?)
/usr/local/go/src/net/http/server.go:3210 +0xbc
net/http.(*conn).serve(0x40025e0870, {0x240a478, 0x4000782b40})
/usr/local/go/src/net/http/server.go:2092 +0x4fc
created by net/http.(*Server).Serve in goroutine 30
/usr/local/go/src/net/http/server.go:3360 +0x3dc

[GIN] 2025/11/28 - 08:20:27 | 200 | 10m0s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/llm/invoke"
2025/11/28 08:20:27 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout
goroutine 4136 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:26 +0x64
github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x23d5e40, 0x40018f5600})
/app/internal/types/exception/factory.go:27 +0x24
github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0x4001d37090, 0x2098996, 0x258?)
/app/internal/service/base_sse.go:84 +0x434
github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEWithSession[...](0x4001d37128, {0x2098996, 0x5}, {0x20a773a, 0xa}, 0x400088fe60, 0x4001928300, 0x258)
/app/internal/service/base_sse.go:114 +0x180
github.com/langgenius/dify-plugin-daemon/internal/service.InvokeLLM(0x1004001d37188?, 0x1e043e0?, 0x40018c6360?)
/app/internal/service/model.gen.go:21 +0x5c
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4.1({{{0x4000f2154d, 0x24}, {0x40023bc0f0, 0x24}}, {{0x0, 0x0}}, {0x40016d88a0, 0x58}, 0x0, 0x0, ...})
/app/internal/server/controllers/model.gen.go:20 +0x90
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1()
/app/internal/server/controllers/base.go:53 +0x98
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0x4001928300, 0x4001d37488)
/app/internal/server/controllers/base.go:31 +0x228
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0xa?, 0x4001d374f8?)
/app/internal/server/controllers/base.go:37 +0x3c
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4(0x4001928300)
/app/internal/server/controllers/model.gen.go:17 +0x80
github.com/gin-gonic/gin.(*Context).Next(0x4001928300)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func4(0x4001928300)
/app/internal/server/middleware.go:182 +0x58
github.com/gin-gonic/gin.(*Context).Next(0x4001928300)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func3(0x4001928300)
/app/internal/server/middleware.go:109 +0x74
github.com/gin-gonic/gin.(*Context).Next(0x4001928300)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func2(0x4001928300)
/app/internal/server/middleware.go:78 +0x1dc
github.com/gin-gonic/gin.(*Context).Next(0x4001928300)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.CollectActiveDispatchRequests.func1(0x4002728718?)
/app/internal/server/controllers/health_check.go:28 +0x5c
github.com/gin-gonic/gin.(*Context).Next(0x4001928300)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0x4001928300)
/app/internal/server/middleware.go:26 +0x98
github.com/gin-gonic/gin.(*Context).Next(0x4001928300)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).server.CollectActiveRequests.func3(0x40027287b8?)
/app/internal/server/controllers/health_check.go:20 +0x5c
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0x4001928300)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7c
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1(0x4001928300)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xb8
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0x40001f2b60, 0x4001928300)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x6c4
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0x40001f2b60, {0x2405a90, 0x4000f4e540}, 0x4000308dc0)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x174
net/http.serverHandler.ServeHTTP({0x23f7e48?}, {0x2405a90?, 0x4000f4e540?}, 0x6?)
/usr/local/go/src/net/http/server.go:3210 +0xbc
net/http.(*conn).serve(0x400054e1b0, {0x240a478, 0x4000782b40})
/usr/local/go/src/net/http/server.go:2092 +0x4fc
created by net/http.(*Server).Serve in goroutine 30
/usr/local/go/src/net/http/server.go:3360 +0x3dc

[GIN] 2025/11/28 - 08:22:29 | 200 | 12m2s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/llm/invoke"
2025/11/28 08:22:38 stdio.go:179: [ERROR]plugin langgenius/openai:0.2.7 has an error on stdout: read |0: file already closed

Originally created by @mbotsu on GitHub (Nov 28, 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 [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/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.10.1 ### Plugin version langgenius/openai:0.2.7 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce When running parallel from API, `plugin langgenius/openai:0.2.7 is not active`. This did not happen in 1.8.0. The result is the same after deleting and installing the plugin. This is done via FunctionCalling on AI Agents. .env ``` PLUGIN_STORAGE_TYPE=local PLUGIN_PYTHON_ENV_INIT_TIMEOUT=300 PLUGIN_MAX_EXECUTION_TIMEOUT=600 ``` docker-compose.yaml ``` plugin_daemon: image: langgenius/dify-plugin-daemon:0.4.1-local restart: always environment: MAX_REQUEST_TIMEOUT: 600 MAX_INVOCATION_TIMEOUT: 600 ``` ### ✔️ Error log [GIN] 2025/11/28 - 08:10:26 | 200 | 854.75µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256" [GIN] 2025/11/28 - 08:10:27 | 200 | 7.753834ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged" [GIN] 2025/11/28 - 08:10:27 | 200 | 13.316805381s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/llm/invoke" [GIN] 2025/11/28 - 08:10:27 | 200 | 872.833µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256" [GIN] 2025/11/28 - 08:10:27 | 200 | 7.177792ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged" [GIN] 2025/11/28 - 08:10:27 | 200 | 871.292µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256" [GIN] 2025/11/28 - 08:10:27 | 200 | 5.444667ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/models?page=1&page_size=256" [GIN] 2025/11/28 - 08:10:27 | 200 | 48.812083ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged" [GIN] 2025/11/28 - 08:10:27 | 200 | 7.79025ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged" [GIN] 2025/11/28 - 08:10:27 | 200 | 773.375µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256" [GIN] 2025/11/28 - 08:10:27 | 200 | 13.82880359s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/llm/invoke" [GIN] 2025/11/28 - 08:10:27 | 200 | 7.319292ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged" [GIN] 2025/11/28 - 08:10:27 | 200 | 7.270959ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged" [GIN] 2025/11/28 - 08:10:27 | 200 | 826.708µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256" [GIN] 2025/11/28 - 08:10:27 | 200 | 981.125µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256" [GIN] 2025/11/28 - 08:10:27 | 200 | 820.875µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256" [GIN] 2025/11/28 - 08:10:27 | 200 | 7.657917ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged" [GIN] 2025/11/28 - 08:10:27 | 200 | 875.75µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256" [GIN] 2025/11/28 - 08:10:27 | 200 | 7.676708ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged" [GIN] 2025/11/28 - 08:10:27 | 200 | 6.267375ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/models?page=1&page_size=256" [GIN] 2025/11/28 - 08:10:27 | 200 | 930.209µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256" [GIN] 2025/11/28 - 08:10:27 | 200 | 7.29425ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged" [GIN] 2025/11/28 - 08:10:27 | 200 | 4.424875ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/models?page=1&page_size=256" [GIN] 2025/11/28 - 08:10:28 | 200 | 7.519ms | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/list?page=1&page_size=256&response_type=paged" [GIN] 2025/11/28 - 08:10:28 | 200 | 774.375µs | 10.89.0.19 | GET "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/management/tools?page=1&page_size=256" [GIN] 2025/11/28 - 08:10:28 | 200 | 27.160374554s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/llm/invoke" [GIN] 2025/11/28 - 08:10:28 | 200 | 13.200152756s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/llm/invoke" [GIN] 2025/11/28 - 08:10:30 | 200 | 15.110107549s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/llm/invoke" [GIN] 2025/11/28 - 08:10:34 | 200 | 13.989894715s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/llm/invoke" 2025/11/28 08:12:00 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 62.340835 seconds, it may be dead 2025/11/28 08:12:05 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 67.341485 seconds, it may be dead 2025/11/28 08:12:10 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 72.347286 seconds, it may be dead 2025/11/28 08:12:15 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 77.341477 seconds, it may be dead 2025/11/28 08:12:20 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 82.341480 seconds, it may be dead 2025/11/28 08:12:25 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 87.341608 seconds, it may be dead 2025/11/28 08:12:30 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 92.343441 seconds, it may be dead 2025/11/28 08:12:35 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 97.342648 seconds, it may be dead 2025/11/28 08:12:40 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 102.341051 seconds, it may be dead 2025/11/28 08:12:45 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 107.341464 seconds, it may be dead 2025/11/28 08:12:50 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 112.340453 seconds, it may be dead 2025/11/28 08:12:55 stdio.go:256: [WARN]plugin langgenius/openai:0.2.7 is not active for 117.342538 seconds, it may be dead 2025/11/28 08:13:00 stdio.go:248: [ERROR]plugin langgenius/openai:0.2.7 is not active for 122.344611 seconds, it may be dead, killing and restarting it 2025/11/28 08:13:00 run.go:135: [ERROR]plugin langgenius/openai:0.2.7 exited with error: signal: killed 2025/11/28 08:13:00 run.go:185: [INFO]plugin langgenius/openai:0.2.7 stopped 2025/11/28 08:13:05 run.go:147: [INFO]plugin langgenius/openai:0.2.7 started 2025/11/28 08:13:07 stdio.go:173: [INFO]plugin langgenius/openai:0.2.7: Installed model: openai [GIN] 2025/11/28 - 08:14:11 | 200 | 4m10s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke" [GIN] 2025/11/28 - 08:14:26 | 200 | 4m25s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke" [GIN] 2025/11/28 - 08:14:26 | 200 | 4m26s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke" [GIN] 2025/11/28 - 08:14:27 | 200 | 4m26s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke" [GIN] 2025/11/28 - 08:14:31 | 200 | 4m30s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke" [GIN] 2025/11/28 - 08:14:33 | 200 | 4m32s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke" [GIN] 2025/11/28 - 08:14:37 | 200 | 4m36s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke" [GIN] 2025/11/28 - 08:14:38 | 200 | 4m37s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke" [GIN] 2025/11/28 - 08:14:38 | 200 | 4m37s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke" [GIN] 2025/11/28 - 08:14:38 | 200 | 4m38s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/agent_strategy/invoke" 2025/11/28 08:20:16 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout goroutine 2797 [running]: runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:26 +0x64 github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x23d5e40, 0x40018f4520}) /app/internal/types/exception/factory.go:27 +0x24 github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0x4001d3b090, 0x2098996, 0x258?) /app/internal/service/base_sse.go:84 +0x434 github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEWithSession[...](0x4001d3b128, {0x2098996, 0x5}, {0x20a773a, 0xa}, 0x4001806000, 0x400026f600, 0x258) /app/internal/service/base_sse.go:114 +0x180 github.com/langgenius/dify-plugin-daemon/internal/service.InvokeLLM(0x1004001d3b101?, 0x1e043e0?, 0x4001d46170?) /app/internal/service/model.gen.go:21 +0x5c github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4.1({{{0x4000f2091d, 0x24}, {0x4001dc2060, 0x24}}, {{0x0, 0x0}}, {0x40002da720, 0x58}, 0x0, 0x0, ...}) /app/internal/server/controllers/model.gen.go:20 +0x90 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1() /app/internal/server/controllers/base.go:53 +0x98 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0x400026f600, 0x4001d3b488) /app/internal/server/controllers/base.go:31 +0x228 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0xa?, 0x4001d3b4f8?) /app/internal/server/controllers/base.go:37 +0x3c github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4(0x400026f600) /app/internal/server/controllers/model.gen.go:17 +0x80 github.com/gin-gonic/gin.(*Context).Next(0x400026f600) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func4(0x400026f600) /app/internal/server/middleware.go:182 +0x58 github.com/gin-gonic/gin.(*Context).Next(0x400026f600) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func3(0x400026f600) /app/internal/server/middleware.go:109 +0x74 github.com/gin-gonic/gin.(*Context).Next(0x400026f600) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func2(0x400026f600) /app/internal/server/middleware.go:78 +0x1dc github.com/gin-gonic/gin.(*Context).Next(0x400026f600) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.CollectActiveDispatchRequests.func1(0x40009ee718?) /app/internal/server/controllers/health_check.go:28 +0x5c github.com/gin-gonic/gin.(*Context).Next(0x400026f600) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0x400026f600) /app/internal/server/middleware.go:26 +0x98 github.com/gin-gonic/gin.(*Context).Next(0x400026f600) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).server.CollectActiveRequests.func3(0x40009ee7b8?) /app/internal/server/controllers/health_check.go:20 +0x5c github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0x400026f600) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7c github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.LoggerWithConfig.func1(0x400026f600) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xb8 github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0x40001f2b60, 0x400026f600) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x6c4 github.com/gin-gonic/gin.(*Engine).ServeHTTP(0x40001f2b60, {0x2405a90, 0x4001c7a9a0}, 0x4001c74000) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x174 net/http.serverHandler.ServeHTTP({0x23f7e48?}, {0x2405a90?, 0x4001c7a9a0?}, 0x6?) /usr/local/go/src/net/http/server.go:3210 +0xbc net/http.(*conn).serve(0x40012f6510, {0x240a478, 0x4000782b40}) /usr/local/go/src/net/http/server.go:2092 +0x4fc created by net/http.(*Server).Serve in goroutine 30 /usr/local/go/src/net/http/server.go:3360 +0x3dc [GIN] 2025/11/28 - 08:20:16 | 200 | 10m0s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/llm/invoke" 2025/11/28 08:20:22 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout goroutine 3429 [running]: runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:26 +0x64 github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x23d5e40, 0x40018f46d0}) /app/internal/types/exception/factory.go:27 +0x24 github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0x4000e77090, 0x2098996, 0x258?) /app/internal/service/base_sse.go:84 +0x434 github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEWithSession[...](0x4000e77128, {0x2098996, 0x5}, {0x20a773a, 0xa}, 0x40027325a0, 0x40007e8100, 0x258) /app/internal/service/base_sse.go:114 +0x180 github.com/langgenius/dify-plugin-daemon/internal/service.InvokeLLM(0x1004000e77188?, 0x1e043e0?, 0x4000586aa0?) /app/internal/service/model.gen.go:21 +0x5c github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4.1({{{0x4001c6800d, 0x24}, {0x400006ae10, 0x24}}, {{0x0, 0x0}}, {0x4000a90e40, 0x58}, 0x0, 0x0, ...}) /app/internal/server/controllers/model.gen.go:20 +0x90 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1() /app/internal/server/controllers/base.go:53 +0x98 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0x40007e8100, 0x4000e77488) /app/internal/server/controllers/base.go:31 +0x228 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0xa?, 0x4000e774f8?) /app/internal/server/controllers/base.go:37 +0x3c github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4(0x40007e8100) /app/internal/server/controllers/model.gen.go:17 +0x80 github.com/gin-gonic/gin.(*Context).Next(0x40007e8100) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func4(0x40007e8100) /app/internal/server/middleware.go:182 +0x58 github.com/gin-gonic/gin.(*Context).Next(0x40007e8100) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func3(0x40007e8100) /app/internal/server/middleware.go:109 +0x74 github.com/gin-gonic/gin.(*Context).Next(0x40007e8100) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func2(0x40007e8100) /app/internal/server/middleware.go:78 +0x1dc github.com/gin-gonic/gin.(*Context).Next(0x40007e8100) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.CollectActiveDispatchRequests.func1(0x4001d2e718?) /app/internal/server/controllers/health_check.go:28 +0x5c github.com/gin-gonic/gin.(*Context).Next(0x40007e8100) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0x40007e8100) /app/internal/server/middleware.go:26 +0x98 github.com/gin-gonic/gin.(*Context).Next(0x40007e8100) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).server.CollectActiveRequests.func3(0x4001d2e7b8?) /app/internal/server/controllers/health_check.go:20 +0x5c github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0x40007e8100) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7c github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.LoggerWithConfig.func1(0x40007e8100) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xb8 github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0x40001f2b60, 0x40007e8100) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x6c4 github.com/gin-gonic/gin.(*Engine).ServeHTTP(0x40001f2b60, {0x2405a90, 0x400087c540}, 0x4001c2f680) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x174 net/http.serverHandler.ServeHTTP({0x23f7e48?}, {0x2405a90?, 0x400087c540?}, 0x6?) /usr/local/go/src/net/http/server.go:3210 +0xbc net/http.(*conn).serve(0x40017550e0, {0x240a478, 0x4000782b40}) /usr/local/go/src/net/http/server.go:2092 +0x4fc created by net/http.(*Server).Serve in goroutine 30 /usr/local/go/src/net/http/server.go:3360 +0x3dc 2025/11/28 08:20:26 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout goroutine 3920 [running]: runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:26 +0x64 github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x23d5e40, 0x4001c22830}) /app/internal/types/exception/factory.go:27 +0x24 github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0x4001d1b090, 0x2098996, 0x258?) /app/internal/service/base_sse.go:84 +0x434 github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEWithSession[...](0x4001d1b128, {0x2098996, 0x5}, {0x20a773a, 0xa}, 0x4002691b00, 0x400050e200, 0x258) /app/internal/service/base_sse.go:114 +0x180 github.com/langgenius/dify-plugin-daemon/internal/service.InvokeLLM(0x1004001d1b188?, 0x1e043e0?, 0x4002686850?) /app/internal/service/model.gen.go:21 +0x5c github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4.1({{{0x4000f20a5d, 0x24}, {0x400268ea80, 0x24}}, {{0x0, 0x0}}, {0x40019c6660, 0x58}, 0x0, 0x0, ...}) /app/internal/server/controllers/model.gen.go:20 +0x90 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1() /app/internal/server/controllers/base.go:53 +0x98 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0x400050e200, 0x4001d1b488) /app/internal/server/controllers/base.go:31 +0x228 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0xa?, 0x4001d1b4f8?) /app/internal/server/controllers/base.go:37 +0x3c github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4(0x400050e200) /app/internal/server/controllers/model.gen.go:17 +0x80 github.com/gin-gonic/gin.(*Context).Next(0x400050e200) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func4(0x400050e200) /app/internal/server/middleware.go:182 +0x58 github.com/gin-gonic/gin.(*Context).Next(0x400050e200) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func3(0x400050e200) /app/internal/server/middleware.go:109 +0x74 github.com/gin-gonic/gin.(*Context).Next(0x400050e200) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func2(0x400050e200) /app/internal/server/middleware.go:78 +0x1dc github.com/gin-gonic/gin.(*Context).Next(0x400050e200) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.CollectActiveDispatchRequests.func1(0x4002728718?) /app/internal/server/controllers/health_check.go:28 +0x5c github.com/gin-gonic/gin.(*Context).Next(0x400050e200) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0x400050e200) /app/internal/server/middleware.go:26 +0x98 github.com/gin-gonic/gin.(*Context).Next(0x400050e200) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).server.CollectActiveRequests.func3(0x40027287b8?) /app/internal/server/controllers/health_check.go:20 +0x5c github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0x400050e200) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7c github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.LoggerWithConfig.func1(0x400050e200) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xb8 github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0x40001f2b60, 0x400050e200) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x6c4 github.com/gin-gonic/gin.(*Engine).ServeHTTP(0x40001f2b60, {0x2405a90, 0x400087cee0}, 0x40003628c0) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x174 net/http.serverHandler.ServeHTTP({0x23f7e48?}, {0x2405a90?, 0x400087cee0?}, 0x6?) /usr/local/go/src/net/http/server.go:3210 +0xbc net/http.(*conn).serve(0x40023e0d80, {0x240a478, 0x4000782b40}) /usr/local/go/src/net/http/server.go:2092 +0x4fc created by net/http.(*Server).Serve in goroutine 30 /usr/local/go/src/net/http/server.go:3360 +0x3dc 2025/11/28 08:20:27 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout goroutine 4043 [running]: runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:26 +0x64 github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x23d5e40, 0x4001c228b0}) /app/internal/types/exception/factory.go:27 +0x24 github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0x40009a9090, 0x2098996, 0x258?) /app/internal/service/base_sse.go:84 +0x434 github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEWithSession[...](0x40009a9128, {0x2098996, 0x5}, {0x20a773a, 0xa}, 0x40022d6360, 0x40007e8500, 0x258) /app/internal/service/base_sse.go:114 +0x180 github.com/langgenius/dify-plugin-daemon/internal/service.InvokeLLM(0x10040009a9188?, 0x1e043e0?, 0x4000afd000?) /app/internal/service/model.gen.go:21 +0x5c github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4.1({{{0x40019b600d, 0x24}, {0x40019b36e0, 0x24}}, {{0x0, 0x0}}, {0x40019c6cc0, 0x58}, 0x0, 0x0, ...}) /app/internal/server/controllers/model.gen.go:20 +0x90 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1() /app/internal/server/controllers/base.go:53 +0x98 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0x40007e8500, 0x40009a9488) /app/internal/server/controllers/base.go:31 +0x228 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0xa?, 0x40009a94f8?) /app/internal/server/controllers/base.go:37 +0x3c github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4(0x40007e8500) /app/internal/server/controllers/model.gen.go:17 +0x80 github.com/gin-gonic/gin.(*Context).Next(0x40007e8500) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func4(0x40007e8500) /app/internal/server/middleware.go:182 +0x58 github.com/gin-gonic/gin.(*Context).Next(0x40007e8500) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func3(0x40007e8500) /app/internal/server/middleware.go:109 +0x74 github.com/gin-gonic/gin.(*Context).Next(0x40007e8500) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func2(0x40007e8500) /app/internal/server/middleware.go:78 +0x1dc github.com/gin-gonic/gin.(*Context).Next(0x40007e8500) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.CollectActiveDispatchRequests.func1(0x40009f1718?) /app/internal/server/controllers/health_check.go:28 +0x5c github.com/gin-gonic/gin.(*Context).Next(0x40007e8500) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0x40007e8500) /app/internal/server/middleware.go:26 +0x98 github.com/gin-gonic/gin.(*Context).Next(0x40007e8500) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).server.CollectActiveRequests.func3(0x40009f17b8?) /app/internal/server/controllers/health_check.go:20 +0x5c github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0x40007e8500) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7c github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.LoggerWithConfig.func1(0x40007e8500) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xb8 github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0x40001f2b60, 0x40007e8500) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x6c4 github.com/gin-gonic/gin.(*Engine).ServeHTTP(0x40001f2b60, {0x2405a90, 0x400087ce00}, 0x400324ab40) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x174 net/http.serverHandler.ServeHTTP({0x23f7e48?}, {0x2405a90?, 0x400087ce00?}, 0x6?) /usr/local/go/src/net/http/server.go:3210 +0xbc net/http.(*conn).serve(0x40025e0870, {0x240a478, 0x4000782b40}) /usr/local/go/src/net/http/server.go:2092 +0x4fc created by net/http.(*Server).Serve in goroutine 30 /usr/local/go/src/net/http/server.go:3360 +0x3dc [GIN] 2025/11/28 - 08:20:27 | 200 | 10m0s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/llm/invoke" 2025/11/28 08:20:27 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout goroutine 4136 [running]: runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:26 +0x64 github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x23d5e40, 0x40018f5600}) /app/internal/types/exception/factory.go:27 +0x24 github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0x4001d37090, 0x2098996, 0x258?) /app/internal/service/base_sse.go:84 +0x434 github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEWithSession[...](0x4001d37128, {0x2098996, 0x5}, {0x20a773a, 0xa}, 0x400088fe60, 0x4001928300, 0x258) /app/internal/service/base_sse.go:114 +0x180 github.com/langgenius/dify-plugin-daemon/internal/service.InvokeLLM(0x1004001d37188?, 0x1e043e0?, 0x40018c6360?) /app/internal/service/model.gen.go:21 +0x5c github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4.1({{{0x4000f2154d, 0x24}, {0x40023bc0f0, 0x24}}, {{0x0, 0x0}}, {0x40016d88a0, 0x58}, 0x0, 0x0, ...}) /app/internal/server/controllers/model.gen.go:20 +0x90 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1() /app/internal/server/controllers/base.go:53 +0x98 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0x4001928300, 0x4001d37488) /app/internal/server/controllers/base.go:31 +0x228 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0xa?, 0x4001d374f8?) /app/internal/server/controllers/base.go:37 +0x3c github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4(0x4001928300) /app/internal/server/controllers/model.gen.go:17 +0x80 github.com/gin-gonic/gin.(*Context).Next(0x4001928300) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func4(0x4001928300) /app/internal/server/middleware.go:182 +0x58 github.com/gin-gonic/gin.(*Context).Next(0x4001928300) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func3(0x4001928300) /app/internal/server/middleware.go:109 +0x74 github.com/gin-gonic/gin.(*Context).Next(0x4001928300) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func2(0x4001928300) /app/internal/server/middleware.go:78 +0x1dc github.com/gin-gonic/gin.(*Context).Next(0x4001928300) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.CollectActiveDispatchRequests.func1(0x4002728718?) /app/internal/server/controllers/health_check.go:28 +0x5c github.com/gin-gonic/gin.(*Context).Next(0x4001928300) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0x4001928300) /app/internal/server/middleware.go:26 +0x98 github.com/gin-gonic/gin.(*Context).Next(0x4001928300) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x40 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).server.CollectActiveRequests.func3(0x40027287b8?) /app/internal/server/controllers/health_check.go:20 +0x5c github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0x4001928300) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7c github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.LoggerWithConfig.func1(0x4001928300) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xb8 github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0x40001f2b60, 0x4001928300) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x6c4 github.com/gin-gonic/gin.(*Engine).ServeHTTP(0x40001f2b60, {0x2405a90, 0x4000f4e540}, 0x4000308dc0) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x174 net/http.serverHandler.ServeHTTP({0x23f7e48?}, {0x2405a90?, 0x4000f4e540?}, 0x6?) /usr/local/go/src/net/http/server.go:3210 +0xbc net/http.(*conn).serve(0x400054e1b0, {0x240a478, 0x4000782b40}) /usr/local/go/src/net/http/server.go:2092 +0x4fc created by net/http.(*Server).Serve in goroutine 30 /usr/local/go/src/net/http/server.go:3360 +0x3dc [GIN] 2025/11/28 - 08:22:29 | 200 | 12m2s | 10.89.0.19 | POST "/plugin/286af6c0-884d-4ba9-afbb-808171b7cab6/dispatch/llm/invoke" 2025/11/28 08:22:38 stdio.go:179: [ERROR]plugin langgenius/openai:0.2.7 has an error on stdout: read |0: file already closed
yindo added the bug label 2026-02-16 10:20:40 -05:00
yindo closed this issue 2026-02-16 10:20:40 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Nov 28, 2025):

Hi @mbotsu! I'm Dosu and I’m helping the dify-official-plugins team.

This is a known issue in recent Dify versions: even with increased timeout settings, the plugin daemon may kill langgenius/openai:0.2.7 after a period of inactivity, especially under parallel API load. This is due to stricter timeout and health check logic introduced after Dify 1.8.0, which can cause plugins to be killed if they are inactive or blocked—even if the API request is still pending. Some timeouts are hardcoded in the plugin daemon or plugin code, so increasing environment variables alone may not be enough.

Common causes include network misconfiguration (e.g., using localhost instead of host.docker.internal), resource exhaustion, or plugin/SDK bugs. To mitigate:

  • Double-check Docker network settings and ensure all containers can communicate using the correct hostnames/IPs.
  • If you need longer timeouts, you may need to patch the plugin code (e.g., in llm.py or common_openai.py) inside the plugin Docker container and rebuild it, as some limits are not exposed via environment variables [details].
  • For dependency install/network issues, increase UV_HTTP_TIMEOUT and consider using a PyPI mirror [details].
  • If you are running many parallel requests, consider reducing concurrency or increasing available resources to the plugin_daemon container.

This regression is likely due to stricter execution/stdio and stream-handling in the plugin daemon between 1.8.0 and 1.10.1 [details]. There is no perfect workaround, but patching the plugin timeout in code and ensuring optimal Docker networking can help.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Nov 28, 2025): <!-- Greeting --> Hi @mbotsu! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify-official-plugins team. <!-- Answer --> This is a known issue in recent Dify versions: even with increased timeout settings, the plugin daemon may kill langgenius/openai:0.2.7 after a period of inactivity, especially under parallel API load. This is due to stricter timeout and health check logic introduced after Dify 1.8.0, which can cause plugins to be killed if they are inactive or blocked—even if the API request is still pending. Some timeouts are hardcoded in the plugin daemon or plugin code, so increasing environment variables alone may not be enough. Common causes include network misconfiguration (e.g., using `localhost` instead of `host.docker.internal`), resource exhaustion, or plugin/SDK bugs. To mitigate: - Double-check Docker network settings and ensure all containers can communicate using the correct hostnames/IPs. - If you need longer timeouts, you may need to patch the plugin code (e.g., in `llm.py` or `common_openai.py`) inside the plugin Docker container and rebuild it, as some limits are not exposed via environment variables [[details](https://github.com/langgenius/dify-official-plugins/issues/1779)]. - For dependency install/network issues, increase `UV_HTTP_TIMEOUT` and consider using a PyPI mirror [[details](https://github.com/langgenius/dify-official-plugins/issues/2086)]. - If you are running many parallel requests, consider reducing concurrency or increasing available resources to the plugin_daemon container. This regression is likely due to stricter execution/stdio and stream-handling in the plugin daemon between 1.8.0 and 1.10.1 [[details](https://github.com/langgenius/dify-official-plugins/issues/1542)]. There is no perfect workaround, but patching the plugin timeout in code and ensuring optimal Docker networking can help. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/66781517-af25-4c4d-92e2-4b8fdd55f0c3?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/66781517-af25-4c4d-92e2-4b8fdd55f0c3?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/66781517-af25-4c4d-92e2-4b8fdd55f0c3?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/66781517-af25-4c4d-92e2-4b8fdd55f0c3?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/66781517-af25-4c4d-92e2-4b8fdd55f0c3?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/66781517-af25-4c4d-92e2-4b8fdd55f0c3?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/66781517-af25-4c4d-92e2-4b8fdd55f0c3?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20is%20a%20known%20issue%20in%20recent%20Dify%20versions%3A%20even%20with%20increased%20timeout%20settings%2C%20the%20plugin%20daemon%20may%20kill%20langgenius/openai%3A0.2.7%20after%20a%20period%20of%20inactivity%2C%20especially%20under%20parallel%20API%20load.%20This%20is%20due%20to%20stricter%20timeout%20and%20health%20check%20logic%20introduced%20after%20Dify%201.8.0%2C%20which%20can%20cause%20plugins%20to%20be%20killed%20if%20they%20are%20inactive%20or%20blocked%E2%80%94even%20if%20the%20API%20request%20is%20still%20pending.%20Some%20timeouts%20are%20hardcoded%20in%20the%20plugin%20daemon%20or%20plugin%20code%2C%20so%20increasing%20environment%20variables%20alone%20may%20not%20be%20enough.%20%0A%0ACommon%20causes%20include%20network%20misconfiguration%20%28e.g.%2C%20using%20%60localhost%60%20instead%20of%20%60host.docker.internal%60%29%2C%20resource%20exhaustion%2C%20or%20plugin/SDK%20bugs.%20To%20mitigate%3A%0A%0A-%20Double-check%20Docker%20network%20settings%20and%20ensure%20all%20containers%20can%20communicate%20using%20the%20correct%20hostnames/IPs.%0A-%20If%20you%20need%20longer%20timeouts%2C%20you%20may%20need%20to%20patch%20the%20plugin%20code%20%28e.g.%2C%20in%20%60llm.py%60%20or%20%60common_openai.py%60%29%20inside%20the%20plugin%20Docker%20container%20and%20rebuild%20it%2C%20as%20some%20limits%20are%20not%20exposed%20via%20environment%20variables%20%5B%5Bdetails%5D%28https%3A//github.com/langgenius/dify-official-plugins/issues/1779%29%5D.%0A-%20For%20dependency%20install/network%20issues%2C%20increase%20%60UV_HTTP_TIMEOUT%60%20and%20consider%20using%20a%20PyPI%20mirror%20%5B%5Bdetails%5D%28https%3A//github.com/langgenius/dify-official-plugins/issues/2086%29%5D.%0A-%20If%20you%20are%20running%20many%20parallel%20requests%2C%20consider%20reducing%20concurrency%20or%20increasing%20available%20resources%20to%20the%20plugin_daemon%20container.%0A%0AThis%20regression%20is%20likely%20due%20to%20stricter%20execution/stdio%20and%20stream-handling%20in%20the%20plugin%20daemon%20between%201.8.0%20and%201.10.1%20%5B%5Bdetails%5D%28https%3A//github.com/langgenius/dify-official-plugins/issues/1542%29%5D.%20There%20is%20no%20perfect%20workaround%2C%20but%20patching%20the%20plugin%20timeout%20in%20code%20and%20ensuring%20optimal%20Docker%20networking%20can%20help.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/2147)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#840