plugins update , then error , #13866

Closed
opened 2026-02-21 19:14:16 -05:00 by yindo · 1 comment
Owner

Originally created by @huangxiang518 on GitHub (May 14, 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.3.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

updated the plugins version ,then in docker-plugin_daemon-1 :

loops:
{

2025/05/14 08:15:28 run.go:182: [INFO]plugin langgenius/openai:0.0.22 stopped

2025/05/14 08:15:33 run.go:144: [INFO]plugin langgenius/openai:0.0.22 started

[GIN] 2025/05/14 - 08:15:36 | 200 | 885.812µs | 172.19.0.4 | GET "/plugin/10fb1fc6-e4b7-48d9-91ec-0df48c46534a/management/install/tasks?page=1&page_size=100"

2025/05/14 08:15:39 run.go:132: [ERROR]plugin langgenius/openai:0.0.22 exited with error: exit status 1

70453ede311196acaad0531ad9e3d5561cd622e6508cd3254/main.py", line 7, in

plugin = Plugin(DifyPluginEnv())

^^^^^^^^^^^^^^^

File "/app/storage/cwd/langgenius/openai-0.0.22@fa668d0ec3b434270453ede311196acaad0531ad9e3d5561cd622e6508cd3254/.venv/lib/python3.12/site-packages/pydantic_settings/main.py", line 176, in init

super().init(

File "/app/storage/cwd/langgenius/openai-0.0.22@fa668d0ec3b434270453ede311196acaad0531ad9e3d5561cd622e6508cd3254/.venv/lib/python3.12/site-packages/pydantic/main.py", line 253, in init

validated_self = self.pydantic_validator.validate_python(data, self_instance=self)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

pydantic_core._pydantic_core.ValidationError: 1 validation error for DifyPluginEnv

REMOTE_INSTALL_URL

Field required [type=missing, input_value={'INSTALL_METHOD': 'local'}, input_type=dict]

For further information visit https://errors.pydantic.dev/2.11/v/missing⁠

}

✔️ Expected Behavior

plugin normal

Actual Behavior

plugins error

Originally created by @huangxiang518 on GitHub (May 14, 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.3.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce updated the plugins version ,then in docker-plugin_daemon-1 : loops: { 2025/05/14 08:15:28 run.go:182: [INFO]plugin langgenius/openai:0.0.22 stopped 2025/05/14 08:15:33 run.go:144: [INFO]plugin langgenius/openai:0.0.22 started [GIN] 2025/05/14 - 08:15:36 | 200 | 885.812µs | 172.19.0.4 | GET "/plugin/10fb1fc6-e4b7-48d9-91ec-0df48c46534a/management/install/tasks?page=1&page_size=100" 2025/05/14 08:15:39 run.go:132: [ERROR]plugin langgenius/openai:0.0.22 exited with error: exit status 1 70453ede311196acaad0531ad9e3d5561cd622e6508cd3254/main.py", line 7, in <module> plugin = Plugin(DifyPluginEnv()) ^^^^^^^^^^^^^^^ File "/app/storage/cwd/langgenius/openai-0.0.22@fa668d0ec3b434270453ede311196acaad0531ad9e3d5561cd622e6508cd3254/.venv/lib/python3.12/site-packages/pydantic_settings/main.py", line 176, in __init__ super().__init__( File "/app/storage/cwd/langgenius/openai-0.0.22@fa668d0ec3b434270453ede311196acaad0531ad9e3d5561cd622e6508cd3254/.venv/lib/python3.12/site-packages/pydantic/main.py", line 253, in __init__ validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pydantic_core._pydantic_core.ValidationError: 1 validation error for DifyPluginEnv REMOTE_INSTALL_URL Field required [type=missing, input_value={'INSTALL_METHOD': 'local'}, input_type=dict] For further information visit [https://errors.pydantic.dev/2.11/v/missing⁠](https://errors.pydantic.dev/2.11/v/missing) } ### ✔️ Expected Behavior plugin normal ### ❌ Actual Behavior plugins error
yindo added the 🐞 bug label 2026-02-21 19:14:16 -05:00
yindo closed this issue 2026-02-21 19:14:17 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (May 14, 2025):

Hello @huangxiang518! I'm Dosu, your friendly bot here to assist you with bugs, questions, and contributions while you wait for a human maintainer. Let's tackle this together! 🚀

The issue you're experiencing with the plugin langgenius/openai:0.0.22 exiting with a validation error for DifyPluginEnv is due to a bug in the dify-plugin SDK version 0.2.3. This issue has been resolved in version 0.2.4 of the dify-plugin SDK. To fix the error, you should update to version 0.2.4 and reinstall the plugin [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

@dosubot[bot] commented on GitHub (May 14, 2025): <!-- Greeting --> Hello @huangxiang518! I'm [Dosu](https://dosu.dev), your friendly bot here to assist you with bugs, questions, and contributions while you wait for a human maintainer. Let's tackle this together! 🚀 <!-- Answer --> The issue you're experiencing with the plugin `langgenius/openai:0.0.22` exiting with a validation error for `DifyPluginEnv` is due to a bug in the dify-plugin SDK version 0.2.3. This issue has been resolved in version 0.2.4 of the dify-plugin SDK. To fix the error, you should update to version 0.2.4 and reinstall the plugin <sup>[[1]](https://github.com/langgenius/dify/issues/19624)</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/1040a22a-c6ea-4610-a569-2137298fa3a5?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/1040a22a-c6ea-4610-a569-2137298fa3a5?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/1040a22a-c6ea-4610-a569-2137298fa3a5?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/1040a22a-c6ea-4610-a569-2137298fa3a5?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/1040a22a-c6ea-4610-a569-2137298fa3a5?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/1040a22a-c6ea-4610-a569-2137298fa3a5?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/1040a22a-c6ea-4610-a569-2137298fa3a5?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13866