Throw PluginDaemonInternalServerError: plugin not found when update tongyi's plugin #351

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

Originally created by @WangXiaoJin on GitHub (Jun 9, 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.4.1

Plugin version

langgenius/tongyi@0.0.26

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When I update the tongyi LLM plugin, the dify-plugin-daemon throw plugin not found exception.

Image

✔️ Error log

2025/06/09 07:07:29 /app/internal/db/executor.go:259 record not found
[0.325ms] [rows:0] SELECT * FROM "plugin_declarations" WHERE plugin_unique_identifier = 'langgenius/tongyi:0.0.26@1fa0f87daba4ff40ce50a4b57f21d37b793c16ac5b3bc5a29c2af7935e6f267a' ORDER BY "plugin_declarations"."id" LIMIT 1
2025/06/09 07:07:29 factory.go:28: [ERROR]PluginDaemonInternalServerError: plugin not found
goroutine 3372 [running]:
runtime/debug.Stack()
        /usr/local/go/src/runtime/debug/stack.go:26 +0x5e
github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x2725f40, 0x3aa2fb0})
        /app/internal/types/exception/factory.go:27 +0x27
github.com/langgenius/dify-plugin-daemon/internal/service.UpgradePlugin(0xc00021f908, {0xc00123284d, 0x24}, {0xc0034ca450, 0xb}, 0xc0028f94a0, {0xc001232900, 0x59}, {0xc0012329c0, 0x59})
        /app/internal/service/install_plugin.go:466 +0x68a
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginManagementGroup.UpgradePlugin.func4.1({{0xc00123284d, 0x24}, {0xc001232900, 0x59}, {0xc0012329c0, 0x59}, {0xc0034ca450, 0xb}, 0xc0028f94a0})
        /app/internal/server/controllers/plugins.go:101 +0x9a
github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0xc0011b6100, 0xc000522ca8)
        /app/internal/server/controllers/base.go:31 +0x248
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginManagementGroup.UpgradePlugin.func4(0xc0011b6100)
        /app/internal/server/controllers/plugins.go:94 +0x74
github.com/gin-gonic/gin.(*Context).Next(0xc0011b6100)
        /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(0xc0011b6100)
        /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(0xc0011b6100)
        /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x6f
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(0xc0011b6100)
        /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(0xc0005f0000, 0xc0011b6100)
        /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x892
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc0005f0000, {0x2753b50, 0xc000955420}, 0xc0003ba3c0)
        /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x1b2
net/http.serverHandler.ServeHTTP({0x2746e28?}, {0x2753b50?, 0xc000955420?}, 0x6?)
        /usr/local/go/src/net/http/server.go:3210 +0x8e
net/http.(*conn).serve(0xc0005e6bd0, {0x2757630, 0xc0006de1b0})
        /usr/local/go/src/net/http/server.go:2092 +0x5d0
created by net/http.(*Server).Serve in goroutine 98
        /usr/local/go/src/net/http/server.go:3360 +0x485

Originally created by @WangXiaoJin on GitHub (Jun 9, 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.4.1 ### Plugin version langgenius/tongyi@0.0.26 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce When I update the tongyi LLM plugin, the dify-plugin-daemon throw `plugin not found` exception. ![Image](https://github.com/user-attachments/assets/491d767b-d196-43cd-9eea-90202d8537a9) ### ✔️ Error log ``` 2025/06/09 07:07:29 /app/internal/db/executor.go:259 record not found [0.325ms] [rows:0] SELECT * FROM "plugin_declarations" WHERE plugin_unique_identifier = 'langgenius/tongyi:0.0.26@1fa0f87daba4ff40ce50a4b57f21d37b793c16ac5b3bc5a29c2af7935e6f267a' ORDER BY "plugin_declarations"."id" LIMIT 1 2025/06/09 07:07:29 factory.go:28: [ERROR]PluginDaemonInternalServerError: plugin not found goroutine 3372 [running]: runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:26 +0x5e github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x2725f40, 0x3aa2fb0}) /app/internal/types/exception/factory.go:27 +0x27 github.com/langgenius/dify-plugin-daemon/internal/service.UpgradePlugin(0xc00021f908, {0xc00123284d, 0x24}, {0xc0034ca450, 0xb}, 0xc0028f94a0, {0xc001232900, 0x59}, {0xc0012329c0, 0x59}) /app/internal/service/install_plugin.go:466 +0x68a github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginManagementGroup.UpgradePlugin.func4.1({{0xc00123284d, 0x24}, {0xc001232900, 0x59}, {0xc0012329c0, 0x59}, {0xc0034ca450, 0xb}, 0xc0028f94a0}) /app/internal/server/controllers/plugins.go:101 +0x9a github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0xc0011b6100, 0xc000522ca8) /app/internal/server/controllers/base.go:31 +0x248 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginManagementGroup.UpgradePlugin.func4(0xc0011b6100) /app/internal/server/controllers/plugins.go:94 +0x74 github.com/gin-gonic/gin.(*Context).Next(0xc0011b6100) /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(0xc0011b6100) /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(0xc0011b6100) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x6f 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(0xc0011b6100) /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(0xc0005f0000, 0xc0011b6100) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x892 github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc0005f0000, {0x2753b50, 0xc000955420}, 0xc0003ba3c0) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x1b2 net/http.serverHandler.ServeHTTP({0x2746e28?}, {0x2753b50?, 0xc000955420?}, 0x6?) /usr/local/go/src/net/http/server.go:3210 +0x8e net/http.(*conn).serve(0xc0005e6bd0, {0x2757630, 0xc0006de1b0}) /usr/local/go/src/net/http/server.go:2092 +0x5d0 created by net/http.(*Server).Serve in goroutine 98 /usr/local/go/src/net/http/server.go:3360 +0x485 ```
yindo added the bug label 2026-02-16 10:19:05 -05:00
yindo closed this issue 2026-02-16 10:19:05 -05:00
Author
Owner

@RockChinQ commented on GitHub (Jun 10, 2025):

Fixed it, you can try installing it again.

@RockChinQ commented on GitHub (Jun 10, 2025): Fixed it, you can try installing it again.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#351