[ERROR]PluginDaemonInternalServerError: no available node, plugin not found
Self Checks
- [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [x] Please do not modify this template :) and fill in all the required fields.
Dify version
1.4.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
i have changed the .env and docker-compose.yaml,look down↓
everytimes i restart dify,it will get this error. i have to reinstall my plugins then it can make PluginDeamon succeed. i have readed old problems like this,but i ever dont know how to fix it.
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
The error [ERROR]PluginDaemonInternalServerError: no available node, plugin not found in Dify (v1.4.1, self-hosted Docker) is often caused by issues with plugin installation persistence, environment variable misconfiguration, or plugin daemon/database connectivity.
Here are steps you can take to resolve this and avoid having to reinstall plugins after every restart:
-
Check Environment Variables
Ensure you are using the correct environment variables in your.envanddocker-compose.yamlfiles.- Use
PLUGIN_DAEMON_URL(notPLUGIN_API_URL) for the plugin daemon connection. If you use the wrong variable, the API will fall back to a default and fail to connect, causing plugin errors. - Make sure
FORCE_VERIFYING_SIGNATUREis set appropriately. If you encounter signature verification issues, addFORCE_VERIFYING_SIGNATURE=falseto your.envfile and restart Dify. - Double-check that all plugin-related variables (like
PLUGIN_DIFY_INNER_API_KEYandPLUGIN_DIFY_INNER_API_URL) are set and consistent across your configuration files.
Reference Reference
- Use
-
Clear Plugin Data
If the error persists, clear plugin data from the database and plugin directories:- In your
dify_plugindatabase, run:delete from plugin_installations where plugin_unique_identifier is not null; delete from plugin_declarations where plugin_unique_identifier is not null; delete from ai_model_installations where plugin_unique_identifier is not null; delete from plugins where plugin_unique_identifier is not null; - Remove plugin directories:
/app/storage/cwd/plugins/plugin /app/storage/cwd/plugins/plugin-working /app/storage/cwd/plugins/persistence /app/storage/cwd/plugins/plugin-root
- In your
-
Restart Plugin Daemon and Reinstall Plugins
After clearing data, restart the plugin daemon service and reinstall your plugins. This should restore normal operation and allow plugins to persist across restarts. -
Timeouts and Dependency Installation
If plugin installation fails due to Python dependencies not installing within the default 120-second timeout, consider increasing the timeout by settingPLUGIN_PYTHON_ENV_INIT_TIMEOUTto a higher value in your environment configuration.
Reference -
Version Issues
This error was a known issue in earlier Dify versions and has been addressed in newer releases. Since you are on 1.4.1, ensure all containers are using the correct, matching versions.
Reference
If you continue to experience issues, review your .env and docker-compose.yaml for any inconsistencies, and consider resetting your .env from the example file and reapplying your customizations.
Let me know if you need more specific guidance on any of these steps.
To reply, just mention my name @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
https://github.com/langgenius/dify/issues/20445 is this a related issue?
@dosu how to go to my dify_plugin database and run
To access your dify_plugin database and run SQL commands in a self-hosted Docker setup, follow these steps:
-
Find the name of your database container. By default, it is often called docker-db-1 or db. You can check with:
docker ps -
Enter the database container shell:
docker exec -it docker-db-1 bash(Replace docker-db-1 with your actual container name if different.)
-
Connect to the dify_plugin database using the PostgreSQL client:
psql -U postgres -d dify_plugin(Default username is postgres, default database is dify_plugin. If you changed these in your docker-compose or .env, use your custom values.)
-
Now you can run SQL commands, for example:
delete from plugin_installations where plugin_unique_identifier is not null; delete from plugin_declarations where plugin_unique_identifier is not null; delete from ai_model_installations where plugin_unique_identifier is not null; delete from plugins where plugin_unique_identifier is not null; -
To exit the PostgreSQL prompt, type:
\q -
To exit the container shell, type:
exit
If you need to clear other tables (like install_tasks), use the same process and adjust the SQL command as needed.
Reference: Dify GitHub Issue #17375 and Dify GitHub Issue #19086.
Let me know if you need help with a specific SQL command or if your setup uses a different database!
To reply, just mention my name @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
@dosu where to Remove plugin directories
To remove the plugin directories in your Dify self-hosted Docker setup, follow these steps:
-
Stop all running Dify containers:
docker compose stop -
Enter the main Dify application container (the one running the app, often named something like
dify-api-1or similar; check withdocker ps):docker exec -it <your-dify-app-container-name> bashReplace
<your-dify-app-container-name>with the actual container name. -
Inside the container, remove the following directories:
rm -rf /app/storage/cwd/plugins/plugin rm -rf /app/storage/cwd/plugins/plugin-working rm -rf /app/storage/cwd/plugins/persistence rm -rf /app/storage/cwd/plugins/plugin-rootThese paths are where Dify stores plugin data and working files.
-
Exit the container:
exit -
Restart your Dify services:
docker compose up -d
After this, you can reinstall your plugins as needed. This process ensures all plugin-related files are cleared from the system before a fresh install.
Reference: Dify GitHub Issue #19086
To reply, just mention my name @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
This issue has already been fixed yesterday, please try reinstalling the plugin you needed.
i reinstall the plugins,and docker compose restart,i also met this problem
@RockChinQ
作者解决了吗
作者解决了吗
https://github.com/langgenius/dify/issues/24161#issuecomment-3203834041 解决了,看这