The plugin migration command cannot be executed. #13264

Closed
opened 2026-02-21 19:11:19 -05:00 by yindo · 2 comments
Owner

Originally created by @Moiyu1998 on GitHub (Apr 23, 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.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

As shown in the image above, when running the plugin migration command, the following error occurs: bash: poetry: command not found.

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @Moiyu1998 on GitHub (Apr 23, 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.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/a6068ad2-6ffc-4abb-a891-6c687152edca) As shown in the image above, when running the plugin migration command, the following error occurs: bash: poetry: command not found. ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 19:11:19 -05:00
yindo closed this issue 2026-02-21 19:11:19 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 23, 2025):

To resolve the "bash: poetry: command not found" error when executing the plugin migration command in a self-hosted Docker environment using Dify version 1.3.0, you need to ensure that poetry is installed on your server. Here are the steps to follow:

  1. Install Poetry: If poetry is not installed, you can do so by following the official installation guide at python-poetry.org.

  2. Run the Migration Commands: After installing poetry, execute the migration commands inside the Docker container. First, find the container ID for docker-api-1 using:

    docker ps
    

    Then, run the following commands inside the container:

    docker exec -it <container_id> bash
    poetry run flask extract-plugins --workers=20
    poetry run flask install-plugins --workers=2
    poetry run flask migrate-data-for-plugin
    
  3. Verify the Migration: Check the Dify platform to ensure that the plugins have been correctly installed and are functioning as expected [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 (Apr 23, 2025): <!-- Answer --> To resolve the "bash: poetry: command not found" error when executing the plugin migration command in a self-hosted Docker environment using Dify version 1.3.0, you need to ensure that `poetry` is installed on your server. Here are the steps to follow: 1. **Install Poetry**: If `poetry` is not installed, you can do so by following the official installation guide at [python-poetry.org](https://python-poetry.org/docs/#installation). 2. **Run the Migration Commands**: After installing `poetry`, execute the migration commands inside the Docker container. First, find the container ID for `docker-api-1` using: ```bash docker ps ``` Then, run the following commands inside the container: ```bash docker exec -it <container_id> bash poetry run flask extract-plugins --workers=20 poetry run flask install-plugins --workers=2 poetry run flask migrate-data-for-plugin ``` 3. **Verify the Migration**: Check the Dify platform to ensure that the plugins have been correctly installed and are functioning as expected <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/README.md)</sup><sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/development/migration/migrate-to-v1.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/13470ce5-3bd6-4ca2-87b1-b30349a79752?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/13470ce5-3bd6-4ca2-87b1-b30349a79752?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/13470ce5-3bd6-4ca2-87b1-b30349a79752?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/13470ce5-3bd6-4ca2-87b1-b30349a79752?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/13470ce5-3bd6-4ca2-87b1-b30349a79752?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/13470ce5-3bd6-4ca2-87b1-b30349a79752?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/13470ce5-3bd6-4ca2-87b1-b30349a79752?feedback_type=other)</sup>
Author
Owner

@quicksandznzn commented on GitHub (Apr 23, 2025):

Self Checks

  • 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.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

As shown in the image above, when running the plugin migration command, the following error occurs: bash: poetry: command not found.

✔️ Expected Behavior

No response

Actual Behavior

No response

use uv run ,1.3.0 poetry change to uv

@quicksandznzn commented on GitHub (Apr 23, 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.0 > > ### Cloud or Self Hosted > > Self Hosted (Docker) > > ### Steps to reproduce > > ![Image](https://github.com/user-attachments/assets/a6068ad2-6ffc-4abb-a891-6c687152edca) > > As shown in the image above, when running the plugin migration command, the following error occurs: bash: poetry: command not found. > > ### ✔️ Expected Behavior > > _No response_ > > ### ❌ Actual Behavior > > _No response_ use `uv run` ,1.3.0 poetry change to uv
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13264