Skip to content

Re-Opened: Can’t install plugins from either local packages or the marketplace. #649

@kurokobo

Description

@kurokobo

Self Checks

To make sure we get to you in time, please check the following :)

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • "Please do not modify this template :) and fill in all the required fields."

Versions

  1. dify-plugin-daemon Version: latest main branch (langgenius/dify-plugin-daemon:main-local)
  2. dify-api Version: 1.13.2

Describe the bug

This is a re-opened issue of #646.
I've tested the main branch AFTER #648 and confirmed that the issue still exists.

In PRs #624 and #644, the code was changed so that manually_uploaded key is set inside UploadPluginPkg, and uv uses the --offline option.

However, the /install/upload/package endpoint, where UploadPluginPkg is executed, is also called when installing plugins from the marketplace (after the API container downloads the plugin, it uploads it to this endpoint).

As a result, plugins can no longer be installed from the marketplace.

To Reproduce
Steps to reproduce the behavior:

  1. Deploy fresh Dify 1.13.2 instance
  2. Switch plugin daemon to use langgenius/dify-plugin-daemon:main-local
  3. Try installing any plugins from marketplace
  4. Got error on the Web UI.

Expected behavior
Plugin can be installed without any issue.

Screenshots
Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions