Dify 1.0.1 internal server error #10408

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

Originally created by @terrysun1216 on GitHub (Mar 11, 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

1.0.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

freshly installed from the ground. "internal server error" shows when setting up models.

2025/03/11 14:56:51 pool.go:32: [INFO]init routine pool, size: 10000
2025/03/11 14:56:51 init.go:152: [INFO]dify plugin db initialized
2025/03/11 14:56:51 manager.go:155: [INFO]start plugin manager daemon...
2025/03/11 14:56:51 init.go:19: [INFO]Persistence initialized
2025/03/11 14:56:51 watcher.go:16: [INFO]start to handle new plugins in path: plugin
2025/03/11 14:56:51 runtime_lifetime.go:40: [INFO]new plugin logged in: bowenliang123/md_exporter:0.0.3
2025/03/11 14:56:51 runtime_lifetime.go:70: [INFO]init environment for plugin bowenliang123/md_exporter:0.0.3
[gnet] 2025-03-11T14:56:51.537488299Z	INFO	logging/logger.go:256	Launching gnet with 8 event-loops, listening on: tcp://0.0.0.0:5003
2025/03/11 14:56:54 cluster_lifetime.go:113: [INFO]current node has become the master of the cluster
2025/03/11 14:57:01 node.go:213: [INFO]node fec0646b-5dfa-4cdb-b7c1-f57fe99a2776 has been removed from the cluster due to being disconnected
[GIN] 2025/03/11 - 14:58:16 | 200 |    6.679185ms |      172.18.0.9 | GET      "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256"
[GIN] 2025/03/11 - 14:58:16 | 200 |    6.692928ms |      172.18.0.9 | GET      "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256"
[GIN] 2025/03/11 - 14:58:16 | 200 |     156.348µs |      172.18.0.9 | GET      "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256"
[GIN] 2025/03/11 - 14:58:16 | 200 |     106.564µs |      172.18.0.9 | GET      "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256"
[GIN] 2025/03/11 - 14:58:16 | 200 |    1.135023ms |      172.18.0.9 | GET      "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/install/tasks?page=1&page_size=100"
[GIN] 2025/03/11 - 14:58:18 | 200 |     590.946µs |      172.18.0.9 | GET      "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256"
[GIN] 2025/03/11 - 14:58:22 | 200 |    1.119554ms |      172.18.0.9 | GET      "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256"
[GIN] 2025/03/11 - 14:58:22 | 200 |      64.335µs |      172.18.0.9 | GET      "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/asset/bfff83a66922c09cb5a5aa68829742b8b4f4e818579db42f53c7b8a30912cd8b.svg"
[GIN] 2025/03/11 - 14:58:22 | 200 |     766.599µs |      172.18.0.9 | GET      "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256"
[GIN] 2025/03/11 - 14:58:22 | 200 |    1.242854ms |      172.18.0.9 | GET      "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256"
[GIN] 2025/03/11 - 14:58:22 | 200 |     497.483µs |      172.18.0.9 | GET      "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256"
[GIN] 2025/03/11 - 14:58:22 | 200 |     629.584µs |      172.18.0.9 | GET      "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256"
[GIN] 2025/03/11 - 14:58:22 | 200 |     472.832µs |      172.18.0.9 | GET      "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256"
[GIN] 2025/03/11 - 14:58:22 | 200 |     622.655µs |      172.18.0.9 | GET      "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256"
[GIN] 2025/03/11 - 14:58:22 | 200 |     717.322µs |      172.18.0.9 | GET      "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256"
[GIN] 2025/03/11 - 14:58:22 | 200 |    6.617887ms |      172.18.0.9 | GET      "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256"
[GIN] 2025/03/11 - 14:58:22 | 200 |     619.981µs |      172.18.0.9 | GET      "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256"
2025/03/11 14:58:52 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: init process exited due to no activity for 120 seconds, retry in 30s
2025/03/11 14:59:22 runtime_lifetime.go:70: [INFO]init environment for plugin bowenliang123/md_exporter:0.0.3
[GIN] 2025/03/11 - 15:01:17 | 200 |    9.050558ms |      172.18.0.9 | GET      "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256"
2025/03/11 15:01:17 factory.go:28: [ERROR]PluginDaemonInternalServerError: no available node, plugin not found
goroutine 195 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x5e
github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x18112a0, 0xc00036d6f0})
	/app/internal/types/exception/factory.go:27 +0x27
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).redirectPluginInvokeByPluginIdentifier(0xc0001821c8, 0xc000211100, {0xc0000174a0?, 0xe9d6ff?}, {0x18112a0, 0xc00036d6a0})
	/app/internal/server/middleware.go:120 +0xef
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func2(0xc000211100)
	/app/internal/server/middleware.go:94 +0x95
github.com/gin-gonic/gin.(*Context).Next(0xc000211100)
	/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(0xc000211100)
	/app/internal/server/middleware.go:66 +0x2f2
github.com/gin-gonic/gin.(*Context).Next(0xc000211100)
	/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(0xc000211100)
	/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(0xc000211100)
	/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(0xc000211100)
	/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(0xc000673040, 0xc000211100)
	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x892
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc000673040, {0x1823720, 0xc00014a620}, 0xc00054b0e0)
	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x1b2
net/http.serverHandler.ServeHTTP({0x18194c8?}, {0x1823720?, 0xc00014a620?}, 0x6?)
	/usr/local/go/src/net/http/server.go:3142 +0x8e
net/http.(*conn).serve(0xc0000feea0, {0x1825ed0, 0xc000449920})
	/usr/local/go/src/net/http/server.go:2044 +0x5e8
created by net/http.(*Server).Serve in goroutine 88
	/usr/local/go/src/net/http/server.go:3290 +0x4b4

[GIN] 2025/03/11 - 15:01:17 | 404 |    6.537273ms |      172.18.0.9 | POST     "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/dispatch/model/validate_model_credentials"
2025/03/11 15:01:22 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: init process exited due to no activity for 120 seconds, retry in 30s

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @terrysun1216 on GitHub (Mar 11, 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 1.0.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce freshly installed from the ground. "internal server error" shows when setting up models. ``` 2025/03/11 14:56:51 pool.go:32: [INFO]init routine pool, size: 10000 2025/03/11 14:56:51 init.go:152: [INFO]dify plugin db initialized 2025/03/11 14:56:51 manager.go:155: [INFO]start plugin manager daemon... 2025/03/11 14:56:51 init.go:19: [INFO]Persistence initialized 2025/03/11 14:56:51 watcher.go:16: [INFO]start to handle new plugins in path: plugin 2025/03/11 14:56:51 runtime_lifetime.go:40: [INFO]new plugin logged in: bowenliang123/md_exporter:0.0.3 2025/03/11 14:56:51 runtime_lifetime.go:70: [INFO]init environment for plugin bowenliang123/md_exporter:0.0.3 [gnet] 2025-03-11T14:56:51.537488299Z INFO logging/logger.go:256 Launching gnet with 8 event-loops, listening on: tcp://0.0.0.0:5003 2025/03/11 14:56:54 cluster_lifetime.go:113: [INFO]current node has become the master of the cluster 2025/03/11 14:57:01 node.go:213: [INFO]node fec0646b-5dfa-4cdb-b7c1-f57fe99a2776 has been removed from the cluster due to being disconnected [GIN] 2025/03/11 - 14:58:16 | 200 | 6.679185ms | 172.18.0.9 | GET "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256" [GIN] 2025/03/11 - 14:58:16 | 200 | 6.692928ms | 172.18.0.9 | GET "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256" [GIN] 2025/03/11 - 14:58:16 | 200 | 156.348µs | 172.18.0.9 | GET "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256" [GIN] 2025/03/11 - 14:58:16 | 200 | 106.564µs | 172.18.0.9 | GET "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256" [GIN] 2025/03/11 - 14:58:16 | 200 | 1.135023ms | 172.18.0.9 | GET "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/install/tasks?page=1&page_size=100" [GIN] 2025/03/11 - 14:58:18 | 200 | 590.946µs | 172.18.0.9 | GET "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256" [GIN] 2025/03/11 - 14:58:22 | 200 | 1.119554ms | 172.18.0.9 | GET "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256" [GIN] 2025/03/11 - 14:58:22 | 200 | 64.335µs | 172.18.0.9 | GET "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/asset/bfff83a66922c09cb5a5aa68829742b8b4f4e818579db42f53c7b8a30912cd8b.svg" [GIN] 2025/03/11 - 14:58:22 | 200 | 766.599µs | 172.18.0.9 | GET "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256" [GIN] 2025/03/11 - 14:58:22 | 200 | 1.242854ms | 172.18.0.9 | GET "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256" [GIN] 2025/03/11 - 14:58:22 | 200 | 497.483µs | 172.18.0.9 | GET "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256" [GIN] 2025/03/11 - 14:58:22 | 200 | 629.584µs | 172.18.0.9 | GET "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256" [GIN] 2025/03/11 - 14:58:22 | 200 | 472.832µs | 172.18.0.9 | GET "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256" [GIN] 2025/03/11 - 14:58:22 | 200 | 622.655µs | 172.18.0.9 | GET "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256" [GIN] 2025/03/11 - 14:58:22 | 200 | 717.322µs | 172.18.0.9 | GET "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256" [GIN] 2025/03/11 - 14:58:22 | 200 | 6.617887ms | 172.18.0.9 | GET "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256" [GIN] 2025/03/11 - 14:58:22 | 200 | 619.981µs | 172.18.0.9 | GET "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256" 2025/03/11 14:58:52 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: init process exited due to no activity for 120 seconds, retry in 30s 2025/03/11 14:59:22 runtime_lifetime.go:70: [INFO]init environment for plugin bowenliang123/md_exporter:0.0.3 [GIN] 2025/03/11 - 15:01:17 | 200 | 9.050558ms | 172.18.0.9 | GET "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/management/models?page=1&page_size=256" 2025/03/11 15:01:17 factory.go:28: [ERROR]PluginDaemonInternalServerError: no available node, plugin not found goroutine 195 [running]: runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:24 +0x5e github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x18112a0, 0xc00036d6f0}) /app/internal/types/exception/factory.go:27 +0x27 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).redirectPluginInvokeByPluginIdentifier(0xc0001821c8, 0xc000211100, {0xc0000174a0?, 0xe9d6ff?}, {0x18112a0, 0xc00036d6a0}) /app/internal/server/middleware.go:120 +0xef github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func2(0xc000211100) /app/internal/server/middleware.go:94 +0x95 github.com/gin-gonic/gin.(*Context).Next(0xc000211100) /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(0xc000211100) /app/internal/server/middleware.go:66 +0x2f2 github.com/gin-gonic/gin.(*Context).Next(0xc000211100) /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(0xc000211100) /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(0xc000211100) /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(0xc000211100) /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(0xc000673040, 0xc000211100) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x892 github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc000673040, {0x1823720, 0xc00014a620}, 0xc00054b0e0) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x1b2 net/http.serverHandler.ServeHTTP({0x18194c8?}, {0x1823720?, 0xc00014a620?}, 0x6?) /usr/local/go/src/net/http/server.go:3142 +0x8e net/http.(*conn).serve(0xc0000feea0, {0x1825ed0, 0xc000449920}) /usr/local/go/src/net/http/server.go:2044 +0x5e8 created by net/http.(*Server).Serve in goroutine 88 /usr/local/go/src/net/http/server.go:3290 +0x4b4 [GIN] 2025/03/11 - 15:01:17 | 404 | 6.537273ms | 172.18.0.9 | POST "/plugin/4ff2a11d-84d2-463e-9afb-608aba7efca0/dispatch/model/validate_model_credentials" 2025/03/11 15:01:22 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: init process exited due to no activity for 120 seconds, retry in 30s ``` ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:46:33 -05:00
yindo closed this issue 2026-02-21 18:46:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#10408