version 1.0.1, The plugin page keeps displaying “5个插件安装中”
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.0.1
Cloud or Self Hosted
Self Hosted (Source), Self Hosted (Docker)
Steps to reproduce
在线安装插件,或者移除插件,或者上传本地插件,一直都显示“5个插件安装中” ,这是什么问题
What is the problem of continuously displaying "installing 5 plugins " when installing plugins online, removing plugins, or uploading local plugins
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
Hello @koywang! I'm here to help you with any bugs, questions, or contributions you have for the plugin. Let's work together to solve this issue!
The issue of the plugin page continuously displaying "installing 5 plugins" in version 1.0.1 is likely due to the logic in the usePluginTaskStatus hook. The condition for determining if plugins are installing is based on the number of running plugins and the absence of errors or successes:
const isInstalling = runningPluginsLength > 0 && errorPluginsLength === 0 && successPluginsLength === 0
This condition might not be correctly updating the status when plugins are being removed or uploaded, leading to the persistent display. Adjusting the conditions to better handle transitions between different states (e.g., from running to success or error) might resolve the issue [1].
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
How can I manually reset this Installing prompt to zero ? @dosu
- https://github.com/langgenius/dify/issues/15779
- https://github.com/langgenius/dify/issues/15726
- https://github.com/langgenius/dify/issues/15692
- https://github.com/langgenius/dify/issues/16507
Try https://github.com/langgenius/dify/issues/16507#issuecomment-2745094491
In Postgres -> dify_plugin
delete from install_tasks;
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 manually reset the "Installing" prompt to zero, you can try the following steps:
-
Check the Plugin Task Status: Look into the
plugin-tasksstate management to see if there are any lingering tasks that need to be cleared. You might need to manually update the state to reflect that no plugins are currently installing. -
Clear Cache or Local Storage: Sometimes, the issue might be due to cached data. Clear your browser's cache or local storage to ensure that the latest state is being fetched.
-
Restart the Application: If the above steps don't work, try restarting the application or the server. This can sometimes reset the state and clear any stuck processes.
-
Database Check: If you're comfortable with database operations, check the database entries related to plugin installations and ensure there are no incomplete or stuck tasks.
-
Code Adjustment: As a last resort, you can modify the code in the
usePluginTaskStatushook to forcefully reset the status. However, this should be done with caution and ideally in a development environment first.
If these steps don't resolve the issue, further investigation into the specific implementation details might be necessary.
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