docker downgrade from v2.0.0-beta.2 to 1.9.0 faild #17958

Closed
opened 2026-02-21 19:41:53 -05:00 by yindo · 0 comments
Owner

Originally created by @Riding-A-Colt on GitHub (Sep 22, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.9.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

use docker downgrade from v2.0.0-beta.2 to 1.9.0 fialed

2025-09-23 11:30:00 /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
2025-09-23 11:30:00 /entrypoint.sh: line 7: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
2025-09-23 11:30:23 INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
2025-09-23 11:30:23 INFO [alembic.runtime.migration] Will assume transactional DDL.
2025-09-23 11:30:23 ERROR [flask_migrate] Error: Can't locate revision identified by 'b45e25c2d166'

I try to execute these command but the the docker-api-1 failed and restart:
uv run flask db downgrade cf7c38a32b2d
uv run flask db upgrade
uv run flask transform-datasource-credentials

then i add sleeep command and execute these commands but still the same faild

        services:
          api:
            image: langgenius/dify-api:1.9.0
            restart: always
            command: sleep infinity
           .....

$ uv run flask db downgrade cf7c38a32b2d
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO [alembic.runtime.migration] Will assume transactional DDL.
ERROR [flask_migrate] Error: Can't locate revision identified by 'b45e25c2d166'

✔️ Expected Behavior

migrate properly

Actual Behavior

migrate failed

Originally created by @Riding-A-Colt on GitHub (Sep 22, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.9.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce use docker downgrade from v2.0.0-beta.2 to 1.9.0 fialed 2025-09-23 11:30:00 /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) 2025-09-23 11:30:00 /entrypoint.sh: line 7: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) 2025-09-23 11:30:23 INFO [alembic.runtime.migration] Context impl PostgresqlImpl. 2025-09-23 11:30:23 INFO [alembic.runtime.migration] Will assume transactional DDL. 2025-09-23 11:30:23 ERROR [flask_migrate] Error: Can't locate revision identified by 'b45e25c2d166' I try to execute these command but the the docker-api-1 failed and restart: uv run flask db downgrade cf7c38a32b2d uv run flask db upgrade uv run flask transform-datasource-credentials then i add sleeep command and execute these commands but still the same faild services: api: image: langgenius/dify-api:1.9.0 restart: always command: sleep infinity ..... $ uv run flask db downgrade cf7c38a32b2d INFO [alembic.runtime.migration] Context impl PostgresqlImpl. INFO [alembic.runtime.migration] Will assume transactional DDL. ERROR [flask_migrate] Error: Can't locate revision identified by 'b45e25c2d166' ### ✔️ Expected Behavior migrate properly ### ❌ Actual Behavior migrate failed
yindo added the 🐞 bug label 2026-02-21 19:41:53 -05:00
yindo closed this issue 2026-02-21 19:41:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#17958