Dify Agent Strategies Plugin Fails to Start: ImportError LogMetadata Not Found #478

Closed
opened 2026-02-16 10:19:31 -05:00 by yindo · 0 comments
Owner

Originally created by @shamspias on GitHub (Jul 24, 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 Dify issues & Dify Official Plugins, 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.6.0, 1.7.0

Plugin version

0.0.22

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Go to the Dify plugins marketplace.
  2. Install the plugin: Dify Agent Strategies (langgenius/agent).
  3. Wait for the installation to complete.
  4. Check the plugin startup logs in Docker Compose (e.g., docker compose logs -f plugin_daemon).

Expected behavior
The plugin should start successfully and be usable after installation.

Actual behavior
The plugin fails to start and enters a crash/restart loop. The logs show an ImportError related to a missing symbol: LogMetadata from dify_plugin.entities.tool.

Note:
This issue appears to be the root cause of langgenius/dify#22896, as the missing import prevents the plugin from running entirely.

✔️ Error log

plugin_daemon-1  | 2025/07/24 08:29:55 run.go:135: [ERROR]plugin langgenius/agent:0.0.22 exited with error: exit status 1
plugin_daemon-1  | dify_plugin/core/utils/class_loader.py", line 34, in import_module_from_source
plugin_daemon-1  |     raise e
plugin_daemon-1  |   File "/app/storage/cwd/langgenius/agent-0.0.22@.../strategies/function_calling.py", line 23, in <module>
plugin_daemon-1  |     from dify_plugin.entities.tool import LogMetadata, ToolInvokeMessage, ToolProviderType
plugin_daemon-1  | ImportError: cannot import name 'LogMetadata' from 'dify_plugin.entities.tool' (/app/storage/cwd/langgenius/agent-0.0.22@.../.venv/lib/python3.12/site-packages/dify_plugin/entities/tool.py)
Originally created by @shamspias on GitHub (Jul 24, 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 [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/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)). - [ ] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [ ] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.6.0, 1.7.0 ### Plugin version 0.0.22 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1. Go to the Dify plugins marketplace. 2. Install the plugin: **Dify Agent Strategies** (`langgenius/agent`). 3. Wait for the installation to complete. 4. Check the plugin startup logs in Docker Compose (e.g., `docker compose logs -f plugin_daemon`). **Expected behavior** The plugin should start successfully and be usable after installation. **Actual behavior** The plugin fails to start and enters a crash/restart loop. The logs show an `ImportError` related to a missing symbol: `LogMetadata` from `dify_plugin.entities.tool`. **Note:** This issue appears to be the root cause of [langgenius/dify#22896](https://github.com/langgenius/dify/issues/22896), as the missing import prevents the plugin from running entirely. ### ✔️ Error log ```text plugin_daemon-1 | 2025/07/24 08:29:55 run.go:135: [ERROR]plugin langgenius/agent:0.0.22 exited with error: exit status 1 plugin_daemon-1 | dify_plugin/core/utils/class_loader.py", line 34, in import_module_from_source plugin_daemon-1 | raise e plugin_daemon-1 | File "/app/storage/cwd/langgenius/agent-0.0.22@.../strategies/function_calling.py", line 23, in <module> plugin_daemon-1 | from dify_plugin.entities.tool import LogMetadata, ToolInvokeMessage, ToolProviderType plugin_daemon-1 | ImportError: cannot import name 'LogMetadata' from 'dify_plugin.entities.tool' (/app/storage/cwd/langgenius/agent-0.0.22@.../.venv/lib/python3.12/site-packages/dify_plugin/entities/tool.py) ```
yindo added the bug label 2026-02-16 10:19:31 -05:00
yindo closed this issue 2026-02-16 10:19:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#478