dify-plugin-daemon:0.1.0-local PLUGIN_STORAGE_TYPE=aliyun_oss can not load plugins when the service restarts
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.3.1
Cloud or Self Hosted
Self Hosted (Source), Self Hosted (Docker)
Steps to reproduce
dify-plugin-daemon:0.1.0-local
when set PLUGIN_STORAGE_TYPE=aliyun_oss, restart service,
it does not load the existing plugin when it starts
PLUGIN_STORAGE_TYPE=local is ok
✔️ Expected Behavior
plugins load success
❌ Actual Behavior
plugins not load
The issue you're experiencing with PLUGIN_STORAGE_TYPE=aliyun_oss not loading plugins upon service restart might be related to the initialization process of the AliyunOssStorage class. When the service starts, the plugin manager should initialize plugins from 'aliyun_oss' storage using this class [1].
Here are a few steps you can take to troubleshoot the issue:
-
Verify Configuration: Ensure that all required configurations for 'aliyun_oss' are correctly set, including
ALIYUN_OSS_BUCKET_NAME,ALIYUN_OSS_ACCESS_KEY,ALIYUN_OSS_SECRET_KEY,ALIYUN_OSS_ENDPOINT,ALIYUN_OSS_REGION,ALIYUN_OSS_AUTH_VERSION, andALIYUN_OSS_PATH[2]. -
Check Dependencies: Make sure the
oss2library is installed and properly configured, as it is necessary for 'aliyun_oss' integration [3]. -
Log Analysis: Examine the logs for any error messages or warnings related to the 'aliyun_oss' storage during the service startup. This might provide clues about what is going wrong.
-
Storage Initialization: Confirm that the
AliyunOssStorageclass is being correctly instantiated and used during the service startup. You might need to add additional logging or debugging to verify this.
If these steps do not resolve the issue, you may need to delve deeper into the code handling the storage initialization to identify any potential bugs or misconfigurations.
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
this pr fix the problem https://github.com/langgenius/dify-plugin-daemon/pull/287