PluginDaemonInternalServerError: killed by timeout #9022

Closed
opened 2026-02-21 18:29:37 -05:00 by yindo · 0 comments
Owner

Originally created by @rechardwang on GitHub (Mar 4, 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 search for existing issues, 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

v1.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

2025/03/04 14:47:42 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout
goroutine 19021 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:24 +0x5e
github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x180b640, 0xc002683120})
/app/internal/types/exception/factory.go:27 +0x27
github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0xc00128f0a0, 0x15f6c0d, 0x258?)
/app/internal/service/base_sse.go:81 +0x4e6
github.com/langgenius/dify-plugin-daemon/internal/service.GetAIModelSchema(0xc0002bc8c0, 0xc0024b2900, 0x258)
/app/internal/service/invoke_model.go:321 +0x198
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.GetAIModelSchema.func19.1({{{0xc001f8e28d, 0x24}, {0xc000a13f50, 0x7}}, {{0x0, 0x0}}, {0xc00067ec60, 0x58}, 0x0, 0x0, ...})
/app/internal/server/controllers/model.go:163 +0x91
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1()
/app/internal/server/controllers/base.go:53 +0xb5
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0xc0024b2900, 0xc00128f328)
/app/internal/server/controllers/base.go:31 +0x276
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0x1603a20?, 0xa?)
/app/internal/server/controllers/base.go:37 +0x45
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.GetAIModelSchema.func19(0xc0024b2900)
/app/internal/server/controllers/model.go:160 +0x74
github.com/gin-gonic/gin.(*Context).Next(0xc0024b2900)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func3(0xc0024b2900)
/app/internal/server/middleware.go:170 +0x54
github.com/gin-gonic/gin.(*Context).Next(0xc0024b2900)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func2(0xc0024b2900)
/app/internal/server/middleware.go:97 +0x74
github.com/gin-gonic/gin.(*Context).Next(0xc0024b2900)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func1(0xc0024b2900)
/app/internal/server/middleware.go:66 +0x2f2
github.com/gin-gonic/gin.(*Context).Next(0xc0024b2900)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0xc0024b2900)
/app/internal/server/middleware.go:24 +0x95
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(0xc0024b2900)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7a
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(0xc0024b2900)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xe5
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(0xc0005b1040, 0xc0024b2900)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x892
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc0005b1040, {0x181dac0, 0xc001922380}, 0xc00156b440)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x1b2
net/http.serverHandler.ServeHTTP({0x1813868?}, {0x181dac0?, 0xc001922380?}, 0x6?)
/usr/local/go/src/net/http/server.go:3142 +0x8e
net/http.(*conn).serve(0xc00033fef0, {0x1820270, 0xc000542990})
/usr/local/go/src/net/http/server.go:2044 +0x5e8
created by net/http.(*Server).Serve in goroutine 70
/usr/local/go/src/net/http/server.go:3290 +0x4b4

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @rechardwang on GitHub (Mar 4, 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 [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 (我已阅读并同意 [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 v1.0.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 2025/03/04 14:47:42 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout goroutine 19021 [running]: runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:24 +0x5e github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x180b640, 0xc002683120}) /app/internal/types/exception/factory.go:27 +0x27 github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0xc00128f0a0, 0x15f6c0d, 0x258?) /app/internal/service/base_sse.go:81 +0x4e6 github.com/langgenius/dify-plugin-daemon/internal/service.GetAIModelSchema(0xc0002bc8c0, 0xc0024b2900, 0x258) /app/internal/service/invoke_model.go:321 +0x198 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.GetAIModelSchema.func19.1({{{0xc001f8e28d, 0x24}, {0xc000a13f50, 0x7}}, {{0x0, 0x0}}, {0xc00067ec60, 0x58}, 0x0, 0x0, ...}) /app/internal/server/controllers/model.go:163 +0x91 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1() /app/internal/server/controllers/base.go:53 +0xb5 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0xc0024b2900, 0xc00128f328) /app/internal/server/controllers/base.go:31 +0x276 github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0x1603a20?, 0xa?) /app/internal/server/controllers/base.go:37 +0x45 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.GetAIModelSchema.func19(0xc0024b2900) /app/internal/server/controllers/model.go:160 +0x74 github.com/gin-gonic/gin.(*Context).Next(0xc0024b2900) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func3(0xc0024b2900) /app/internal/server/middleware.go:170 +0x54 github.com/gin-gonic/gin.(*Context).Next(0xc0024b2900) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func2(0xc0024b2900) /app/internal/server/middleware.go:97 +0x74 github.com/gin-gonic/gin.(*Context).Next(0xc0024b2900) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func1(0xc0024b2900) /app/internal/server/middleware.go:66 +0x2f2 github.com/gin-gonic/gin.(*Context).Next(0xc0024b2900) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0xc0024b2900) /app/internal/server/middleware.go:24 +0x95 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(0xc0024b2900) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7a 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(0xc0024b2900) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xe5 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(0xc0005b1040, 0xc0024b2900) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x892 github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc0005b1040, {0x181dac0, 0xc001922380}, 0xc00156b440) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x1b2 net/http.serverHandler.ServeHTTP({0x1813868?}, {0x181dac0?, 0xc001922380?}, 0x6?) /usr/local/go/src/net/http/server.go:3142 +0x8e net/http.(*conn).serve(0xc00033fef0, {0x1820270, 0xc000542990}) /usr/local/go/src/net/http/server.go:2044 +0x5e8 created by net/http.(*Server).Serve in goroutine 70 /usr/local/go/src/net/http/server.go:3290 +0x4b4 ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:29:37 -05:00
yindo closed this issue 2026-02-21 18:29:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#9022