mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-21 17:25:23 -04:00
The declaration column in the plugin_declarations table has values, but the models field is []. #228
Open
opened 2026-02-16 01:15:02 -05:00 by yindo
·
1 comment
No Branch/Tag Specified
main
build/fix-serverless-runtime-error-propagation
gh-pages
build/test-document2
build/test-document
build/onboarding-ui
build/slim-extract
codex/depot-builds
codex/mac-runner-benchmark
feat/storage-path-prefix
feat/multi-db-user
feat/slim-action
deploy/dev
feat/dify-cli
feat/add-e2e
build/pg-bouncer
codex/add-multimodal-rerank-and-embedding-apis
refactor/local-runtime
build/multimodal-embeddings
codex/refactor-routine.submit-label-handling
codex/refactor-service-layer-based-on-provided-plan
feat/trigger-response
feat/trigger
build/trigger
deploy/trigger-dev
codex/remove-claude-code-reviewer-from-github-ci
codex/add-manifest-check-to-upload-endpoint
feat/no-root-dockerfile
fix/json-schema
fix/blocking-anthorized-langgenius
454-bump-cli-template
build/datasource
feat/datasource
bump-cloud-kit
feat/rag-tag
fix/change-session-not-found-to-400
feat/plugin-readme
add-claude-github-actions-1756274550417
docs/comprehensive-development-documentation
chore/remove-json-schema-validation-error
71cef04
fix/missing-parameter-type
fix/sessions-log
fix/template.env
bump/go-git
build/oauth
feat/oauth-refresh-token
feat/plugin-oauth
feat/tool-oauth-cli
build/plugin-oauth
feat/readme-i18n
fix/memory-leak
feat/icon-dark
feat/default-icon
plugin_launch_concurent
feat/collect-active-requests
feat/dark-icon
feat/support-structured-llm-output
feat/dynamic-selector
fix/reduce-logs
feat/decode-plugin-package
feat/db-extras
fix/backwards-invocation-overflow
feat/length-prefixed-chunking
fix/http-request-reader-header
chore/unify-configurations
fix/hardcoded-serverless-runtime-timeout
fix/cmd
fix/signature
refactor/implement-gen-routes
fix/redis-lock
refactor/codegen
feat/add-authorized-category
chore/style
feat/run-plugin-cli
reduce/run-once
feat/reinstall-serverless-runtime
feat/support-setup-process
fix/apply-stdio-buffer-size
chore/add-warning-messages-to-installed-bucket
feat/repo
enhance/stdio
feat/make-buffer-size-configurable
fix/moderation-init
fix/only-validate-profile-on-quick-mode
feat/support-quick-init-plugins
refactor/oauth-parameters
feat/oauth
refactor/simplify-plugin-invocation
test/integration-test-for-plugins
fix/backwards-compatible-to-llm-result-chunk
feat/auto-scale
enhance/reduce-ci-tests
fix/cli-ci
enhance/removes-llm-result-prompt-messages
fix/disable-benchmark-logs
benchmark/local-runtime
chore/remove-useless-benchmark
feat/benchmark
feat/fetch-app-info
fix/windows-remap-assets
fix/skip-hidden-file
feat/stream-tool-blob-message
fix/path-travel
feat/template-add-ci
enhance/version-compare
feat/sign-apple-os-cli
feat/support-minimal-dify-version-required
refactor/stdip
feat/add-serverless-connector-launching-timeout
fix/remove-prompt_messages-from-llm-result-chunk
feat/standardize-plugin-sdk-versions
chore/update-docs-and-refine-wording
update/readme-cli
fix/infinity-environment-setup
fix/cbor-unmarshaling
fix/use-aws-iam-baseendpoint
fix/lost-query-params-in-endpoint
fix/tiktoken
cohre/update-readme
fix/redis-tests
fix/friendly-identity
fix/marshal-any-map
chore/upgrade-ants
fix/graceful-precompile
enhance/tiktoken
feat/graceful-shutdown
fix/close-serverless-response
fix/correct-cli-guide
fix/plugin-active-log
fix/remove-proxy-args-from-uv
fix/endpoint-hook-url
fix/ci-credentials
feat/disable-gevent
fix/add-gcc
fix/hardcoded-endpoint-timeout
fix/bump-cli-sdk-version
fix/deadloop-when-redis-disconnect
fix/enhence/speed-up-environment-setup
enhance/introduce-uv
fix/change-default-db
fix/deadlock
readme
chore/env.example
feat/add-action-in-url
fix/add-more-pip-args
fix/optimize-local-heartbeat
optimize/db-init
fix/optimize-internal-server-error
fix/increase-default-plugin-max-execution-timeout
fix/force-patch-older-version
enhance/increase-installing-process
LICENSE
fix/set-user-id-to-unrequired
fix/max-launching-concurrent
improve/error-handing-in-serverless
refactor/json-unmarshaler-enhancement
fix/add-pip-mirror-url
enhance/serverless-connector
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.9
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.1
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.3.0b1
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
0.0.1-beta.23
0.0.1-beta.22
0.0.1-beta.21
0.0.1-beta.20
0.0.1-beta.19
0.0.1-beta.18
0.0.1-beta.17
0.0.1-beta.16
0.0.1-beta.15
0.0.1-beta.14
0.0.1-beta.13
0.0.1-beta.12
0.0.1-beta.11
0.0.1-beta.10
0.0.1-beta.9
0.0.1-beta.8
0.0.1-beta.7
0.0.1-beta.6
0.0.1-beta.5
0.0.1-beta.4
0.0.1-beta.3
0.0.1-beta.2
0.0.1-beta.1
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: langgenius/dify-plugin-daemon#228
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @imamiao on GitHub (Jan 6, 2026).
Originally assigned to: @fatelei on GitHub.
Self Checks
To make sure we get to you in time, please check the following :)
Versions
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.
[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:
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.
@dosubot[bot] commented on GitHub (Jan 6, 2026):
This issue is likely related to Windows path handling. The code treats backslashes (
\) in file paths as path traversal attempts and may ignore or reject such paths, which can prevent model files from being discovered and loaded on Windows deployments. Make sure all paths in your manifest.yaml and referenced model files use forward slashes (/) instead of backslashes, and check for any invisible formatting or encoding issues (like BOM, CRLF line endings, or tabs) that could affect parsing. The manifest.yaml should list model files underplugins.modelsas a list of valid relative paths, e.g.,models: [provider/xxx.yaml]—these files must exist in your plugin package and be accessible to the daemon. If the manifest or referenced files are missing, malformed, or incorrectly specified, the models field will remain empty, even if the declaration field is populated and no errors appear in the logs. You can find more details about manifest requirements and path handling here and here.To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other