Tongyi plugin call error when bump up from 0.15.3 to 1.0.0 #8983

Closed
opened 2026-02-21 18:29:09 -05:00 by yindo · 0 comments
Owner

Originally created by @innerpeacez on GitHub (Mar 3, 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.0

Cloud or Self Hosted

Self Hosted (Docker), Self Hosted (Source)

Steps to reproduce

I executed the following command to upgrade:

0.15.3
docker compose -f docker-compose.middleware.yaml stop
1.0.0
docker compose -f docker-compose.middleware.yaml up -d

And api, worker, web is started locally, following command:
API:

flask run --host 0.0.0.0 --port=5001 --debug

worker:

celery -A app.celery worker -P gevent -c 1 -Q dataset,generation,mail,ops_trace --loglevel INFO

web:

pnpm install
pnpm run build
pnpm start

Then I executed the following migration command

1. poetry run flask extract-plugins --workers=20

2. poetry run flask install-plugins --workers=2

3. poetry run flask db upgrade

4. poetry run flask migrate-data-for-plugin

Then the dify app I created in 0.15.3 couldn't be requested and used tongyi plugin 0.0.4

The dfiy-plugin-daemon service reported the following error:

[GIN] 2025/03/04 - 03:35:42 | 200 | 1.366088ms | 172.18.0.1 | GET "/plugin/31889da8-d8e4-4aa9-8976-e20bf87dbf3c/management/install/tasks/a69932d3-02ce-4e53-94d7-5e90c50445b7" [GIN] 2025/03/04 - 03:35:42 | 200 | 1.140199ms | 172.18.0.1 | GET "/plugin/31889da8-d8e4-4aa9-8976-e20bf87dbf3c/management/install/tasks?page=1&page_size=100" 2025/03/04 03:35:44 run.go:143: [INFO]plugin langgenius/tongyi:0.0.4 started 2025/03/04 03:35:44 run.go:131: [ERROR]plugin langgenius/tongyi:0.0.4 exited with error: exit status 1 /app/storage/cwd/langgenius/tongyi-0.0.4@925a003ff416de88ca7d3624b53ea1307cf1b4bf8315924d37c7eb704230ed28/.venv/bin/python: No module named main

I see in this issue(#14828) that there are 0.0.5 plugin, So I upgraded to tongyi 0.0.5

but it still gives me an error:
{ "event": "error", "conversation_id": "25089957-db84-48f6-9c27-12ab61b151d5", "message_id": "e7043cb9-800e-4021-8fd5-71b3ab4d0caf", "created_at": 1741059434, "code": "completion_request_error", "status": 400, "message": "[tongyi] Error: PluginInvokeError: {\"args\":{},\"error_type\":\"UnboundLocalError\",\"message\":\"cannot access local variable 'is_reasoning_started' where it is not associated with a value\"}" }

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @innerpeacez on GitHub (Mar 3, 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.0 ### Cloud or Self Hosted Self Hosted (Docker), Self Hosted (Source) ### Steps to reproduce I executed the following command to upgrade: ``` 0.15.3 docker compose -f docker-compose.middleware.yaml stop 1.0.0 docker compose -f docker-compose.middleware.yaml up -d ``` And api, worker, web is started locally, following command: API: ``` flask run --host 0.0.0.0 --port=5001 --debug ``` worker: ``` celery -A app.celery worker -P gevent -c 1 -Q dataset,generation,mail,ops_trace --loglevel INFO ``` web: ``` pnpm install pnpm run build pnpm start ``` Then I executed the following migration command ``` 1. poetry run flask extract-plugins --workers=20 2. poetry run flask install-plugins --workers=2 3. poetry run flask db upgrade 4. poetry run flask migrate-data-for-plugin ``` Then the dify app I created in 0.15.3 couldn't be requested and used tongyi plugin 0.0.4 The dfiy-plugin-daemon service reported the following error: `[GIN] 2025/03/04 - 03:35:42 | 200 | 1.366088ms | 172.18.0.1 | GET "/plugin/31889da8-d8e4-4aa9-8976-e20bf87dbf3c/management/install/tasks/a69932d3-02ce-4e53-94d7-5e90c50445b7" [GIN] 2025/03/04 - 03:35:42 | 200 | 1.140199ms | 172.18.0.1 | GET "/plugin/31889da8-d8e4-4aa9-8976-e20bf87dbf3c/management/install/tasks?page=1&page_size=100" 2025/03/04 03:35:44 run.go:143: [INFO]plugin langgenius/tongyi:0.0.4 started 2025/03/04 03:35:44 run.go:131: [ERROR]plugin langgenius/tongyi:0.0.4 exited with error: exit status 1 /app/storage/cwd/langgenius/tongyi-0.0.4@925a003ff416de88ca7d3624b53ea1307cf1b4bf8315924d37c7eb704230ed28/.venv/bin/python: No module named main` I see in this issue(#14828) that there are 0.0.5 plugin, So I upgraded to tongyi 0.0.5 but it still gives me an error: `{ "event": "error", "conversation_id": "25089957-db84-48f6-9c27-12ab61b151d5", "message_id": "e7043cb9-800e-4021-8fd5-71b3ab4d0caf", "created_at": 1741059434, "code": "completion_request_error", "status": 400, "message": "[tongyi] Error: PluginInvokeError: {\"args\":{},\"error_type\":\"UnboundLocalError\",\"message\":\"cannot access local variable 'is_reasoning_started' where it is not associated with a value\"}" }` ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:29:09 -05:00
yindo closed this issue 2026-02-21 18:29:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8983