mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-21 17:25:23 -04:00
daemon always load old plugins #144
Open
opened 2026-02-16 00:20:06 -05:00 by yindo
·
5 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#144
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 @sofs2005 on GitHub (Jun 18, 2025).
Self Checks
Dify version
1.4.3
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
check daemon log
✔️ Expected Behavior
daemon should only load the plugins I'm currently using
❌ Actual Behavior
daemon loaded every plugin I have ever installed, even those I have uninstalled and updated:
as below shows, many plugins I have unstalled from system, and many have updated to new version, but it still load them
ull_duplex.go:59: [INFO]init environment for plugin langgenius/siliconflow:0.0.6
2025/06/19 00:49:48 stdio.go:182: [INFO]plugin langgenius/feishu_wiki:0.0.1: Installed tool: feishu_wiki
2025/06/19 00:49:49 run.go:147: [INFO]plugin langgenius/siliconflow:0.0.6 started
2025/06/19 00:49:49 full_duplex.go:27: [INFO]new plugin logged in: langgenius/siliconflow_tool:0.0.4
2025/06/19 00:49:49 full_duplex.go:59: [INFO]init environment for plugin langgenius/siliconflow_tool:0.0.4
2025/06/19 00:49:50 stdio.go:182: [INFO]plugin langgenius/fishaudio:0.0.3: Installed model: fishaudio
2025/06/19 00:49:51 run.go:147: [INFO]plugin langgenius/siliconflow_tool:0.0.4 started
2025/06/19 00:49:51 stdio.go:182: [INFO]plugin langgenius/gaode:0.0.2: Installed tool: gaode
2025/06/19 00:49:52 full_duplex.go:27: [INFO]new plugin logged in: langgenius/tavily:0.0.2
2025/06/19 00:49:52 full_duplex.go:59: [INFO]init environment for plugin langgenius/tavily:0.0.2
2025/06/19 00:49:53 run.go:147: [INFO]plugin langgenius/tavily:0.0.2 started
2025/06/19 00:49:53 full_duplex.go:27: [INFO]new plugin logged in: langgenius/tavily:0.0.5
2025/06/19 00:49:53 full_duplex.go:59: [INFO]init environment for plugin langgenius/tavily:0.0.5
2025/06/19 00:49:54 stdio.go:182: [INFO]plugin langgenius/getimgai:0.0.2: Installed tool: getimgai
2025/06/19 00:49:54 run.go:147: [INFO]plugin langgenius/tavily:0.0.5 started
2025/06/19 00:49:55 full_duplex.go:27: [INFO]new plugin logged in: langgenius/wikipedia:0.0.3
2025/06/19 00:49:55 full_duplex.go:59: [INFO]init environment for plugin langgenius/wikipedia:0.0.3
2025/06/19 00:49:55 stdio.go:182: [INFO]plugin langgenius/gitee_ai:0.0.2: Installed tool: gitee_ai
2025/06/19 00:49:56 run.go:147: [INFO]plugin langgenius/wikipedia:0.0.3 started
2025/06/19 00:49:56 full_duplex.go:27: [INFO]new plugin logged in: langgenius/yahoo:0.0.2
2025/06/19 00:49:56 full_duplex.go:59: [INFO]init environment for plugin langgenius/yahoo:0.0.2
2025/06/19 00:49:57 run.go:147: [INFO]plugin langgenius/yahoo:0.0.2 started
2025/06/19 00:49:57 full_duplex.go:27: [INFO]new plugin logged in: langgenius/zhipuai:0.0.4
2025/06/19 00:49:57 full_duplex.go:59: [INFO]init environment for plugin langgenius/zhipuai:0.0.4
2025/06/19 00:49:58 stdio.go:182: [INFO]plugin langgenius/google:0.0.8: Installed tool: google
2025/06/19 00:49:58 run.go:147: [INFO]plugin langgenius/zhipuai:0.0.4 started
2025/06/19 00:49:59 stdio.go:182: [INFO]plugin langgenius/groq:0.0.4: Installed model: groq
2025/06/19 00:50:00 full_duplex.go:27: [INFO]new plugin logged in: svcvit/artifacts:0.0.3
2025/06/19 00:50:00 full_duplex.go:59: [INFO]init environment for plugin svcvit/artifacts:0.0.3
2025/06/19 00:50:00 environment_python.go:363: [ERROR]failed to get the version of the plugin sdk: failed to find the version of the plugin sdk
2025/06/19 00:50:00 run.go:147: [INFO]plugin svcvit/artifacts:0.0.3 started
2025/06/19 00:50:01 stdio.go:182: [INFO]plugin langgenius/groq:0.0.6: Installed model: groq
2025/06/19 00:50:02 stdio.go:182: [INFO]plugin langgenius/gemini:0.1.6: Installed model: google
2025/06/19 00:50:05 stdio.go:182: [INFO]plugin langgenius/jina_tool:0.0.3: Installed tool: jina
2025/06/19 00:50:06 stdio.go:182: [INFO]plugin langgenius/jina_tool:0.0.7: Installed tool: jina
2025/06/19 00:50:06 stdio.go:182: [INFO]plugin langgenius/moonshot:0.0.3: Installed model: moonshot
2025/06/19 00:50:06 stdio.go:182: [INFO]plugin langgenius/gemini:0.0.5: Installed model: google
2025/06/19 00:50:07 stdio.go:182: [INFO]plugin langgenius/mistralai:0.0.2: Installed model: mistralai
2025/06/19 00:50:07 stdio.go:182: [INFO]plugin langgenius/maths:0.0.3: Installed tool: maths
2025/06/19 00:50:08 stdio.go:182: [INFO]plugin langgenius/nvidia:0.0.2: Installed model: nvidia
2025/06/19 00:50:08 stdio.go:182: [INFO]plugin langgenius/openai_api_compatible:0.0.13: Installed model: openai_api_compatible
2025/06/19 00:50:10 stdio.go:182: [INFO]plugin langgenius/openai_api_compatible:0.0.5: Installed model: openai_api_compatible
2025/06/19 00:50:11 stdio.go:182: [INFO]plugin langgenius/openai_api_compatible:0.0.7: Installed model: openai_api_compatible
@dosubot[bot] commented on GitHub (Jun 18, 2025):
This issue is likely caused by the plugin daemon not fully cleaning up old plugin records or files when you uninstall or update plugins. As a result, the daemon continues to load every plugin it finds in its persistent storage, regardless of their current status. This is a known behavior in self-hosted Docker setups and is not handled by the main Dify backend, but by the separate plugin daemon service.
To resolve this, you should manually clean up both the plugin database and the plugin directories used by the daemon:
Clear plugin database entries:
Connect to your
dify_plugindatabase and run:Reference
Remove plugin files:
Delete the contents of these directories in your plugin daemon's storage path (typically
/app/storage/cwd/plugins/):pluginplugin-workingpersistenceplugin-rootReference
Restart the plugin daemon service to ensure it reloads only the current plugins.
Make sure you are using
dify-plugin-sdkversion 0.2.4 or later for plugin development and management.If you continue to see old plugins being loaded after this cleanup, it may indicate a bug or missing feature in the plugin daemon's state management. Upgrading to the latest Dify version is also recommended to avoid related issues.
Let me know if you need the exact Docker commands for these steps.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@sofs2005 commented on GitHub (Jun 30, 2025):
Very good, I followed your instructions and deleted all the plugins on my system. Do you think clearing plugins is your solution? So I have to reinstall them one by one?? What kind of design is this?? Can't you just clean up old data?
Now I have no plugins left and can't install any, so I have to restore the system. Thanks a lot.@dosu.
@sofs2005 commented on GitHub (Jul 3, 2025):
you should give out a full solution
@xiaomeixw commented on GitHub (Aug 12, 2025):
He is a very foolish robot. Why would you listen to him?
@xiaomeixw commented on GitHub (Aug 12, 2025):
Go to the cwd directory and delete the old version.