adout volumes #37274
Replies: 2 comments 1 reply
-
|
@zhouji1026 Here's what I found about these directories and the related database tables. Plugin Daemon Volume DirectoriesThe plugin_daemon service mounts
Database Tables Affected by Plugin InstallationWhen you install a plugin, several tables are involved:
Note that the plugin daemon is a separate service that communicates with the Dify API via HTTP [7], so some internal plugin state (like the actual plugin registry/manifest tracking) may be managed entirely within the daemon's own storage rather than in the main Dify database. The directories To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Beta Was this translation helpful? Give feedback.
-
|
select * from plugin_declarations where plugin_id like '%word_generator%';
select * from tool_installations where plugin_id like '%word_generator%';
select * from tenant_storages where plugin_id like '%word_generator%';
select * from plugins where plugin_id like '%word_generator%';
Every time I install a plugin, it installs instantly. If the pie progress bar doesn't appear, there's a problem. Then I go back to dify_plugin to delete the records from these tables, then go to the plugin/plugin_packages/ directory to delete the records, and restart the plugin container
May I ask what these tables mean, and what are their connections? Also, why do plugins appear to be installed instantly?
是周周啊。
***@***.***
原始邮件
发件人:dosubot[bot] ***@***.***>
发件时间:2026年6月10日 16:31
收件人:langgenius/dify ***@***.***>
抄送:zhouji1026 ***@***.***>, Mention ***@***.***>
主题:Re: [langgenius/dify] adout volumes (Discussion #37274)
@zhouji1026 Here's what I found about these directories and the related database tables.
Plugin Daemon Volume Directories
The plugin_daemon service mounts ./volumes/plugin_daemon to /app/storage inside the container [1]. The subdirectories are configured via environment variables:
DirectoryEnv VariablePurpose
assets/PLUGIN_MEDIA_CACHE_PATHStores plugin media assets like icons and images. Managed via PluginAssetManager for fetching/extracting plugin resources [2]
cwd/PLUGIN_WORKING_PATHWorking directory for plugin execution and shell sessions
plugin/PLUGIN_INSTALLED_PATHStores the actual installed plugin code and resources
plugin_packages/PLUGIN_PACKAGE_CACHE_PATHCaches plugin package files (.difypkg) for installation/upgrades
persistence/—Used for plugin persistent data storage
images/—Not explicitly referenced in available code; may be used internally by the daemon
Database Tables Affected by Plugin Installation
When you install a plugin, several tables are involved:
account_plugin_permissions — Controls who can install/debug plugins per workspace (install_permission, debug_permission) [3]
tenant_plugin_auto_upgrade_strategies — Stores auto-upgrade settings per tenant (strategy, time of day, include/exclude lists) [4]
tool_builtin_providers — Stores tool provider configurations and encrypted credentials per tenant [5]
tool_oauth_system_clients / tool_oauth_tenant_clients — Store OAuth credentials at the system level and tenant level respectively for tool-type plugins [6]
Note that the plugin daemon is a separate service that communicates with the Dify API via HTTP [7], so some internal plugin state (like the actual plugin registry/manifest tracking) may be managed entirely within the daemon's own storage rather than in the main Dify database. The directories persistence/ and images/ fall into this category — they're likely managed internally by the daemon process.
To reply, just mention @dosu.
Share context across your team and agents. Try Dosu.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
/dify/docker/volumes/plugin_daemon/assets/
/dify/docker/volumes/plugin_daemon/cwd/
/dify/docker/volumes/plugin_daemon/images/
/dify/docker/volumes/plugin_daemon/persistence/
/dify/docker/volumes/plugin_daemon/plugin/
/dify/docker/volumes/plugin_daemon/plugin_packages/
May I ask what these directories do, and what are they associated with?
Then may I ask if installing a plugin causes changes in the backend data tables, and what associations do the tables have?
Beta Was this translation helpful? Give feedback.
All reactions