dify icon indicating copy to clipboard operation
dify copied to clipboard

dify-plugin-daemon:0.1.0-local PLUGIN_STORAGE_TYPE=aliyun_oss can not load plugins when the service restarts

Open huanshare opened this issue 9 months ago • 1 comments

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 Image

PLUGIN_STORAGE_TYPE=local is ok Image

✔️ Expected Behavior

plugins load success

❌ Actual Behavior

plugins not load

huanshare avatar May 20 '25 11:05 huanshare

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:

  1. 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, and ALIYUN_OSS_PATH [2].

  2. Check Dependencies: Make sure the oss2 library is installed and properly configured, as it is necessary for 'aliyun_oss' integration [3].

  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.

  4. Storage Initialization: Confirm that the AliyunOssStorage class 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

dosubot[bot] avatar May 20 '25 11:05 dosubot[bot]

this pr fix the problem https://github.com/langgenius/dify-plugin-daemon/pull/287

huanshare avatar May 21 '25 03:05 huanshare