The declaration column in the plugin_declarations table has values, but the models field is [].

Aperta
#556 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@fatelei ci sta già lavorando.

Dal 10/1/2026.

  • #563 di @fatelei — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug Windows

Self Checks

To make sure we get to you in time, please check the following :)

  • [T ] I have searched for existing issues search for existing issues, including closed ones.
  • [T ] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [T ] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [T ] "Please do not modify this template :) and fill in all the required fields."

Versions

  1. dify-plugin-daemon Version 0.5.1
  2. dify-api Version 1.11.2
    build in Windows by source code
    Describe the bug
    A clear and concise description of what the bug is.

I’ve handled many Windows path–related issues in dify-plugin-daemon, and now plugins can be downloaded, compiled, and run properly. However, in the dify-plugin database, the declaration field in the plugin_declarations table has values, but the models field is [], which results in 0 models being displayed. I also deployed a set in Docker and copied the models content from there into the corresponding fields, which fixed the 0 models issue. Could this problem still be related to Windows paths?

logs:
PS C:\dify\dify-plugin-daemon-0.5.1\cmd\server> go run .\main.go
2026/01/06 15:25:54 pool.go:34: ?[32m[INFO]init routine pool, size: 1024?[0m
2026/01/06 15:25:55 init.go:107: ?[32m[INFO]dify plugin db initialized?[0m
2026/01/06 15:25:55 manager.go:103: ?[32m[INFO]start plugin manager daemon...?[0m
2026/01/06 15:25:55 init.go:20: ?[32m[INFO]Persistence initialized?[0m
2026/01/06 15:25:55 server_local.go:15: ?[32m[INFO]start to handle new plugins in path: plugin?[0m
2026/01/06 15:25:55 server_local.go:16: ?[32m[INFO]launch plugins with max concurrency: 2?[0m
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.

  • using env: export GIN_MODE=release
  • using code: gin.SetMode(gin.ReleaseMode)

[gnet] 2026-01-06T15:25:55.4190702+08:00 INFO logging/logger.go:256 Launching gnet with 8 event-loops, listening on: tcp://127.0.0.1:5003
[GIN-debug] GET /health/check --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).server.HealthCheck.func4 (4 handlers)
[GIN-debug] HEAD /e/:hook_id/*path --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).endpointGroup.(*App).Endpoint.func1 (4 handlers)
[GIN-debug] POST /e/:hook_id/*path --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).endpointGroup.(*App).Endpoint.func2 (4 handlers)
[GIN-debug] GET /e/:hook_id/*path --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).endpointGroup.(*App).Endpoint.func3 (4 handlers)
[GIN-debug] PUT /e/:hook_id/*path --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).endpointGroup.(*App).Endpoint.func4 (4 handlers)
[GIN-debug] DELETE /e/:hook_id/*path --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).endpointGroup.(*App).Endpoint.func5 (4 handlers)
[GIN-debug] OPTIONS /e/:hook_id/*path --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).endpointGroup.(*App).Endpoint.func6 (4 handlers)
[GIN-debug] POST /plugin/:tenant_id/debugging/key --> github.com/langgenius/dify-plugin-daemon/internal/server/controllers.GetRemoteDebuggingKey (6 handlers)
2026/01/06 15:25:55 logger.go:13: ?[32m[INFO]local runtime starting: langgenius/tongyi:0.1.16@d8bffbe45418f0c117fb3393e5e40e61faee98f9a2183f062e5a280e74b15d21?[0m
[GIN-debug] POST /plugin/:tenant_id/dispatch/agent_strategy/invoke --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.InvokeAgentStrategy.func5 (9 handlers)
2026/01/06 15:25:55 logger.go:13: ?[32m[INFO]local runtime starting: langgenius/echarts:0.0.1@e390de4320a5ab32ef24899983f84c31aa39e4690c7b294be11f2c10268c3a68?[0m
[GIN-debug] POST /plugin/:tenant_id/dispatch/tool/invoke --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeTool.func1 (9 handlers)
[GIN-debug] POST /plugin/:tenant_id/dispatch/tool/validate_credentials --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.ValidateToolCredentials.func2 (9 handlers)
[GIN-debug] POST /plugin/:tenant_id/dispatch/tool/get_runtime_parameters --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.GetToolRuntimeParameters.func3 (9 handlers)
[GIN-debug] POST /plugin/:tenant_id/dispatch/llm/invoke --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeLLM.func4 (9 handlers)
[GIN-debug] POST /plugin/:tenant_id/dispatch/llm/num_tokens --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.GetLLMNumTokens.func5 (9 handlers)
[GIN-debug] POST /plugin/:tenant_id/dispatch/text_embedding/invoke --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeTextEmbedding.func6 (9 handlers)
[GIN-debug] POST /plugin/:tenant_id/dispatch/multimodal_embedding/invoke --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeMultimodalEmbedding.func7 (9 handlers)
[GIN-debug] POST /plugin/:tenant_id/dispatch/text_embedding/num_tokens --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.GetTextEmbeddingNumTokens.func8 (9 handlers)
[GIN-debug] POST /plugin/:tenant_id/dispatch/rerank/invoke --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeRerank.func9 (9 handlers)
[GIN-debug] POST /plugin/:tenant_id/dispatch/multimodal_rerank/invoke --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeMultimodalRerank.func10 (9 handlers)
[GIN-debug] POST /plugin/:tenant_id/dispatch/tts/invoke --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.InvokeTTS.func11 (9 handlers)
[GIN-debug] POST /plugin/:tenant_id/dispatch/tts/model/voices --> github.com/langgenius/dify-plugin-daemon/internal/server.(*App).setupGeneratedRoutes.GetTTSModelVoices.func12 (9 handlers)
......
no error!

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Lingua principale
Go
Stelle
462
Fork
326
Merge medio
22h 15m
PR unite (30g)
8

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di langgenius/dify-plugin-daemon

Tutte le issue di langgenius/dify-plugin-daemon

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.