mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-21 17:25:23 -04:00
Plugin fails validation in remote debug mode despite following official guide #92
Open
opened 2026-02-16 00:19:44 -05:00 by yindo
·
3 comments
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
No Label
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#92
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 @nktpv on GitHub (Apr 16, 2025).
Self Checks
Dify version
1.2.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Created plugin using the
dify-plugin-sdkand followed official development guide.Set
.envfor debug on my local machine:Launched plugin with:
Plugin starts correctly without any errors.
Go to Dify UI → Settings → Model supplier → API-KEY Tune.
But instead of confirming the correctly entered key, I have to wait and then I get a critical error.
AND
✔️ Expected Behavior
Plugin should pass validation and appear as a working debug plugin in the UI, assuming the correct
API_KEYis provided and plugin is running as expected.❌ Actual Behavior
On the backend, an exception is raised in the plugin daemon, and the plugin crashes during credential validation. Here’s an excerpt from the logs showing the plugin exiting right after the credential validation attempt:
In addition, the logs indicate that some sql query did not find any records in the
plugin_deamonmodule:However, when running the same queries manually on the same database, they return rows, not 0 rows as reflected in the logs. This could indicate a problem with transactions, isolation, or the plugin's environment at startup. It is suspected that the plugin is running in a different context or container where the database is not synchronized or not properly accessible.
The message is also observed:
runtime_lifetime.go:42: [ERROR]add plugin to cluster failed: plugin has been registered.which may indicate problems with reinitialization or registration of an existing plugin.
All this leads to plugin crash with
ConnectionClosedErrorand impossibility to complete provider configuration.@dosubot[bot] commented on GitHub (Apr 16, 2025):
I found two similar discussions that might be relevant to your issue:
Can't configure the OpenAI plugin: This discussion is open and involves issues with configuring plugins, which might provide insights into your validation problem [1].
After deploying v1.0-beta via Docker, plugins cannot be installed: This discussion is also open and deals with plugin installation issues, which could be related to your situation [2].
Regarding your issue, the
ConnectionClosedErrorduring credential validation suggests a problem with the connection between your plugin and the server. This error can occur if the connection is unexpectedly terminated, possibly due to network issues or server-side problems [3]. Additionally, the "record not found" error in theplugin_daemonmodule could be due to discrepancies in database transactions or isolation levels, where the plugin might be running in a different context or container, causing synchronization issues [4][5].To address these issues, consider the following steps:
Check Network and Server Configuration: Ensure that your network settings and server configurations are correct, especially regarding the remote debug setup. Verify that the server is accessible and that there are no firewall or network restrictions causing the connection to close unexpectedly.
Database Synchronization: Investigate the database transaction settings and isolation levels. Ensure that the plugin and the database are correctly synchronized and accessible from the same context or container. This might involve checking the Docker setup and ensuring that all services are correctly linked and configured.
Plugin Registration: The error message "add plugin to cluster failed: plugin has been registered" indicates potential issues with reinitialization or registration of existing plugins. Ensure that the plugin registration process is correctly handled and that there are no conflicts with existing plugins [4].
These steps should help you diagnose and resolve the issues you're facing with plugin validation and registration.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
@filwu8 commented on GitHub (Apr 21, 2025):
我一直在日志中看到如下错误。
plugin_daemon-1 | 2025/04/21 06:13:08 /app/internal/db/executor.go:259 record not found
@qq281541534 commented on GitHub (Apr 21, 2025):
同样的问题