docker-plugin_daemon - watcher.go:73: [ERROR]list installed plugins failed: plugin_unique_identifier is not valid #45

Closed
opened 2026-02-16 00:19:19 -05:00 by yindo · 12 comments
Owner

Originally created by @jasonchaos on GitHub (Mar 17, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • 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.

Dify version

1.0.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Whenever I restart Docker container services (before the restart, all features work normally), I get an "Internal Server Error" when trying to edit models in the workflow. By debugging the network, I found that the API endpoint http://localhost/console/api/workspaces/current/model-providers/langgenius/tongyi/tongyi/models/parameter-rules?model=deepseek-v3 returns an error.

After investigating the issue, I discovered that the docker-plugin_daemon-1 container logs continuously show the error: watcher.go:73: [ERROR]list installed plugins failed: plugin_unique_identifier is not valid.

I have already set FORCE_VERIFYING_SIGNATURE to false in the .env file in the Docker directory and restarted the Docker containers, but the problem still persists.

✔️ Expected Behavior

docker-plugin_daemon-1 No error should occur.

Actual Behavior

docker-plugin_daemon-1 watcher.go:73: [ERROR]list installed plugins failed: plugin_unique_identifier is not valid.

Image

Image

Originally created by @jasonchaos on GitHub (Mar 17, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [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 (Docker) ### Steps to reproduce Whenever I restart Docker container services (before the restart, all features work normally), I get an "Internal Server Error" when trying to edit models in the workflow. By debugging the network, I found that the API endpoint http://localhost/console/api/workspaces/current/model-providers/langgenius/tongyi/tongyi/models/parameter-rules?model=deepseek-v3 returns an error. After investigating the issue, I discovered that the docker-plugin_daemon-1 container logs continuously show the error: watcher.go:73: [ERROR]list installed plugins failed: plugin_unique_identifier is not valid. I have already set FORCE_VERIFYING_SIGNATURE to false in the .env file in the Docker directory and restarted the Docker containers, but the problem still persists. ### ✔️ Expected Behavior docker-plugin_daemon-1 No error should occur. ### ❌ Actual Behavior docker-plugin_daemon-1 watcher.go:73: [ERROR]list installed plugins failed: plugin_unique_identifier is not valid. ![Image](https://github.com/user-attachments/assets/4202d53e-1cbc-4f01-b404-abd1477b550d) ![Image](https://github.com/user-attachments/assets/1cd796fc-1f6c-43c1-b070-fd812a5f6971)
yindo added the good first issue label 2026-02-16 00:19:19 -05:00
yindo closed this issue 2026-02-16 00:19:19 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 17, 2025):

Hello, @jasonchaos! I'm here to help you with any bugs, questions, or contributions. Let's work on solving this issue together.

To resolve the "plugin_unique_identifier is not valid" error in the docker-plugin_daemon-1 logs, you can follow these steps:

  1. Execute these SQL commands in the dify_plugin database to clear any invalid plugin entries:

    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;
    
  2. Clear the following plugin directories to remove any corrupted or invalid plugin data:

    • /app/storage/cwd/plugins/plugin
    • /app/storage/cwd/plugins/plugin-working
    • /app/storage/cwd/plugins/persistence
    • /app/storage/cwd/plugins/plugin-root
  3. Update the manifest.yaml file and any .yaml files under the /provider path in your plugin project to ensure the author field is set to your GitHub ID.

  4. Repackage the plugin and reinstall it to ensure all configurations are correct.

  5. Restart the plugin daemon service to apply the changes.

These steps should help resolve the error and the resulting "Internal Server Error" when editing models in the workflow [1][2].

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] commented on GitHub (Mar 17, 2025): <!-- Greeting --> Hello, @jasonchaos! I'm here to help you with any bugs, questions, or contributions. Let's work on solving this issue together. <!-- Answer --> To resolve the "plugin_unique_identifier is not valid" error in the docker-plugin_daemon-1 logs, you can follow these steps: 1. Execute these SQL commands in the dify_plugin database to clear any invalid plugin entries: ```sql 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; ``` 2. Clear the following plugin directories to remove any corrupted or invalid plugin data: - `/app/storage/cwd/plugins/plugin` - `/app/storage/cwd/plugins/plugin-working` - `/app/storage/cwd/plugins/persistence` - `/app/storage/cwd/plugins/plugin-root` 3. Update the `manifest.yaml` file and any `.yaml` files under the `/provider` path in your plugin project to ensure the `author` field is set to your GitHub ID. 4. Repackage the plugin and reinstall it to ensure all configurations are correct. 5. Restart the plugin daemon service to apply the changes. These steps should help resolve the error and the resulting "Internal Server Error" when editing models in the workflow <sup>[[1]](https://github.com/langgenius/dify/issues/14918)</sup><sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/jp/plugins/faq.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/2601aef5-eb69-43bb-8c3f-097f83eb1d0b?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/2601aef5-eb69-43bb-8c3f-097f83eb1d0b?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/2601aef5-eb69-43bb-8c3f-097f83eb1d0b?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/2601aef5-eb69-43bb-8c3f-097f83eb1d0b?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/2601aef5-eb69-43bb-8c3f-097f83eb1d0b?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/2601aef5-eb69-43bb-8c3f-097f83eb1d0b?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/2601aef5-eb69-43bb-8c3f-097f83eb1d0b?feedback_type=other)</sup>
Author
Owner

@jasonchaos commented on GitHub (Mar 17, 2025):

What I've Tried:
I've already attempted to fix this error through the following methods:

  1. Executed these SQL commands in the dify_plugin database to clear any invalid plugin entries;
  2. Clear the following plugin directories to remove any corrupted or invalid plugin data;
    However, after reinstalling plugins and restarting Docker, the same issue occurs again. I need a permanent solution to completely resolve this problem. @dosu
@jasonchaos commented on GitHub (Mar 17, 2025): What I've Tried: I've already attempted to fix this error through the following methods: 1. Executed these SQL commands in the dify_plugin database to clear any invalid plugin entries; 2. Clear the following plugin directories to remove any corrupted or invalid plugin data; However, after reinstalling plugins and restarting Docker, the same issue occurs again. I need a permanent solution to completely resolve this problem. @dosu
Author
Owner

@dosubot[bot] commented on GitHub (Mar 17, 2025):

To permanently resolve the "plugin_unique_identifier is not valid" error, ensure that you modify the author field in the manifest.yaml file of your plugin project and in the .yaml files under the /provider path to match your GitHub ID. After making these changes, repackage the plugin and install the new plugin package. This should help in resolving the issue permanently [1][2].

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] commented on GitHub (Mar 17, 2025): <!-- Answer --> To permanently resolve the "plugin_unique_identifier is not valid" error, ensure that you modify the `author` field in the `manifest.yaml` file of your plugin project and in the `.yaml` files under the `/provider` path to match your GitHub ID. After making these changes, repackage the plugin and install the new plugin package. This should help in resolving the issue permanently <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/jp/plugins/faq.md)</sup><sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/zh_CN/plugins/faq.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/8af848f8-ca79-431a-9901-191f0af84180?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/8af848f8-ca79-431a-9901-191f0af84180?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/8af848f8-ca79-431a-9901-191f0af84180?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/8af848f8-ca79-431a-9901-191f0af84180?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/8af848f8-ca79-431a-9901-191f0af84180?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/8af848f8-ca79-431a-9901-191f0af84180?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/8af848f8-ca79-431a-9901-191f0af84180?feedback_type=other)</sup>
Author
Owner

@jasonchaos commented on GitHub (Mar 17, 2025):

I am not using unverified third-party or self-developed plugins. I am only using the official plugins provided in the Marketplace. After following your instructions to modify the yaml file and restart the containers, the problem still persists with the same error.

Although temporarily clearing the plugin data from the database and removing plugin files from the directories, then reinstalling the previously cleared plugins through the Marketplace seems to work initially, the issue reoccurs after restarting Docker.

What should I do to permanently solve this problem?@dosu

Image

Image

@jasonchaos commented on GitHub (Mar 17, 2025): I am not using unverified third-party or self-developed plugins. I am only using the official plugins provided in the Marketplace. After following your instructions to modify the yaml file and restart the containers, the problem still persists with the same error. Although temporarily clearing the plugin data from the database and removing plugin files from the directories, then reinstalling the previously cleared plugins through the Marketplace seems to work initially, the issue reoccurs after restarting Docker. What should I do to permanently solve this problem?@dosu ![Image](https://github.com/user-attachments/assets/947f61d5-df29-42e3-b9cf-d55c672d5fbf) ![Image](https://github.com/user-attachments/assets/a513801f-b8a0-4ce5-b4dc-8a0fdf1c4bd1)
Author
Owner

@crazywoola commented on GitHub (Mar 17, 2025):

Have you try this one. https://github.com/langgenius/dify/issues/16009

@crazywoola commented on GitHub (Mar 17, 2025): Have you try this one. https://github.com/langgenius/dify/issues/16009
Author
Owner

@exitNA commented on GitHub (Mar 18, 2025):

I followed the steps, but it still reported an error. However, I accidentally found that changing the name in mainifest.yaml to lowercase worked. @dosu.

@exitNA commented on GitHub (Mar 18, 2025): I followed the steps, but it still reported an error. However, I accidentally found that changing the `name` in `mainifest.yaml` to lowercase worked. @dosu.
Author
Owner

@Yeuoly commented on GitHub (Mar 18, 2025):

I am not using unverified third-party or self-developed plugins. I am only using the official plugins provided in the Marketplace. After following your instructions to modify the yaml file and restart the containers, the problem still persists with the same error.

Although temporarily clearing the plugin data from the database and removing plugin files from the directories, then reinstalling the previously cleared plugins through the Marketplace seems to work initially, the issue reoccurs after restarting Docker.

What should I do to permanently solve this problem?@dosu

Image

Image

It looks like you used self developed plugins as shown in your screenshot jasonchaos/xx, I'm not sure what you have modified, could you pls provides your db records in plugin_installations table?

@Yeuoly commented on GitHub (Mar 18, 2025): > I am not using unverified third-party or self-developed plugins. I am only using the official plugins provided in the Marketplace. After following your instructions to modify the yaml file and restart the containers, the problem still persists with the same error. > > Although temporarily clearing the plugin data from the database and removing plugin files from the directories, then reinstalling the previously cleared plugins through the Marketplace seems to work initially, the issue reoccurs after restarting Docker. > > What should I do to permanently solve this problem?[@dosu](https://github.com/dosu) > > ![Image](https://github.com/user-attachments/assets/947f61d5-df29-42e3-b9cf-d55c672d5fbf) > > ![Image](https://github.com/user-attachments/assets/a513801f-b8a0-4ce5-b4dc-8a0fdf1c4bd1) It looks like you used self developed plugins as shown in your screenshot `jasonchaos/xx`, I'm not sure what you have modified, could you pls provides your db records in `plugin_installations` table?
Author
Owner

@jasonchaos commented on GitHub (Mar 18, 2025):

I am not using unverified third-party or self-developed plugins. I am only using the official plugins provided in the Marketplace. After following your instructions to modify the yaml file and restart the containers, the problem still persists with the same error.
Although temporarily clearing the plugin data from the database and removing plugin files from the directories, then reinstalling the previously cleared plugins through the Marketplace seems to work initially, the issue reoccurs after restarting Docker.
What should I do to permanently solve this problem?@dosu
Image
Image

It looks like you used self developed plugins as shown in your screenshot jasonchaos/xx, I'm not sure what you have modified, could you pls provides your db records in plugin_installations table?

The screenshot shows that following @sodu's suggestion in point 3:

"Update the manifest.yaml file and any .yaml files under the /provider path in your plugin project to ensure the author field is set to your GitHub ID."

I modified the relevant yaml files and database fields within Docker to change them to my GitHub ID. The plugins were downloaded from the official Marketplace.

@jasonchaos commented on GitHub (Mar 18, 2025): > > I am not using unverified third-party or self-developed plugins. I am only using the official plugins provided in the Marketplace. After following your instructions to modify the yaml file and restart the containers, the problem still persists with the same error. > > Although temporarily clearing the plugin data from the database and removing plugin files from the directories, then reinstalling the previously cleared plugins through the Marketplace seems to work initially, the issue reoccurs after restarting Docker. > > What should I do to permanently solve this problem?[@dosu](https://github.com/dosu) > > ![Image](https://github.com/user-attachments/assets/947f61d5-df29-42e3-b9cf-d55c672d5fbf) > > ![Image](https://github.com/user-attachments/assets/a513801f-b8a0-4ce5-b4dc-8a0fdf1c4bd1) > > It looks like you used self developed plugins as shown in your screenshot `jasonchaos/xx`, I'm not sure what you have modified, could you pls provides your db records in `plugin_installations` table? The screenshot shows that following @sodu's suggestion in point 3: >> "Update the manifest.yaml file and any .yaml files under the /provider path in your plugin project to ensure the author field is set to your GitHub ID." I modified the relevant yaml files and database fields within Docker to change them to my GitHub ID. The plugins were downloaded from the official Marketplace.
Author
Owner

@jasonchaos commented on GitHub (Mar 18, 2025):

Have you try this one. langgenius/dify#16009

If clearing plugin settings is necessary to make plugins work properly again, then why can I immediately use plugins normally after cleaning and reinstalling them as suggested by sodu? Moreover, clearing plugin settings causes significant inconvenience for me as I would need to reconfigure many things.

@jasonchaos commented on GitHub (Mar 18, 2025): > Have you try this one. [langgenius/dify#16009](https://github.com/langgenius/dify/issues/16009) If clearing plugin settings is necessary to make plugins work properly again, then why can I immediately use plugins normally after cleaning and reinstalling them as suggested by sodu? Moreover, clearing plugin settings causes significant inconvenience for me as I would need to reconfigure many things.
Author
Owner

@filwu8 commented on GitHub (Mar 22, 2025):

I also encountered this problem. It kept showing that a plug-in was being installed for several days. I installed dozens of plug-ins and had no idea which one failed to install.

Image

There is no error in the log, and all plugins are working properly.

@filwu8 commented on GitHub (Mar 22, 2025): I also encountered this problem. It kept showing that a plug-in was being installed for several days. I installed dozens of plug-ins and had no idea which one failed to install. ![Image](https://github.com/user-attachments/assets/67c868c2-6428-4e81-a7f4-15bb8bdce4d6) There is no error in the log, and all plugins are working properly.
Author
Owner

@Yeuoly commented on GitHub (Mar 30, 2025):

Have you try this one. langgenius/dify#16009

If clearing plugin settings is necessary to make plugins work properly again, then why can I immediately use plugins normally after cleaning and reinstalling them as suggested by sodu? Moreover, clearing plugin settings causes significant inconvenience for me as I would need to reconfigure many things.

I'm not sure what suggestions sudo gives you, but in your case, this error occurs only if the plugin unique identifier dose not meet ^(?:([a-z0-9_-]{1,64})\/)?([a-z0-9_-]{1,255}):([0-9]{1,4})(\.[0-9]{1,4}){1,3}(-\w{1,16})?@[a-f0-9]{32,64}$, I cannot tell why if I do not know what you have modified and what's the ID is

I made this change https://github.com/langgenius/dify-plugin-daemon/pull/163/files to better error message

@Yeuoly commented on GitHub (Mar 30, 2025): > > Have you try this one. [langgenius/dify#16009](https://github.com/langgenius/dify/issues/16009) > > If clearing plugin settings is necessary to make plugins work properly again, then why can I immediately use plugins normally after cleaning and reinstalling them as suggested by sodu? Moreover, clearing plugin settings causes significant inconvenience for me as I would need to reconfigure many things. I'm not sure what suggestions sudo gives you, but in your case, this error occurs only if the plugin unique identifier dose not meet `^(?:([a-z0-9_-]{1,64})\/)?([a-z0-9_-]{1,255}):([0-9]{1,4})(\.[0-9]{1,4}){1,3}(-\w{1,16})?@[a-f0-9]{32,64}$`, I cannot tell why if I do not know what you have modified and what's the ID is I made this change https://github.com/langgenius/dify-plugin-daemon/pull/163/files to better error message
Author
Owner

@Lucky-watermelon commented on GitHub (Jul 28, 2025):

I followed the steps, but it still reported an error. However, I accidentally found that changing the in to lowercase worked. @dosu.name``mainifest.yaml

good

@Lucky-watermelon commented on GitHub (Jul 28, 2025): > I followed the steps, but it still reported an error. However, I accidentally found that changing the in to lowercase worked. [@dosu](https://github.com/dosu).`name``mainifest.yaml` good
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#45