Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Validate failed: Migrations have failed validation #1625

Open
cai417 opened this issue Jan 9, 2025 · 4 comments
Open

Bug: Validate failed: Migrations have failed validation #1625

cai417 opened this issue Jan 9, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@cai417
Copy link

cai417 commented Jan 9, 2025

Chat2DB Version

Chat2DB 0.3.6

Describe the bug

An error occurred while deploying using source code
When I use java -jar -Dloader.path=lib chat2db-server-start.jar to start the service, I get the error below
Exception in thread "Thread-0" java.lang.ExceptionInInitializerError
at ai.chat2db.server.start.Application.lambda$main$0(Application.java:32)
at java.base/java.lang.Thread.run(Thread.java:842)
Caused by: org.flywaydb.core.api.exception.FlywayValidateException: Validate failed: Migrations have failed validation
Detected failed migration to version 2.1.2 (OPERATION).
Please remove any half-completed changes then run repair to fix the schema history.
Need more flexibility with validation rules? Learn more: https://rd.gt/3AbJUZE
at org.flywaydb.core.Flyway.lambda$migrate$0(Flyway.java:146)
at org.flywaydb.core.FlywayExecutor.execute(FlywayExecutor.java:190)
at org.flywaydb.core.Flyway.migrate(Flyway.java:140)
at ai.chat2db.server.domain.repository.Dbutils.initFlyway(Dbutils.java:115)
at ai.chat2db.server.domain.repository.Dbutils.before(Dbutils.java:98)
at ai.chat2db.server.domain.repository.Dbutils.(Dbutils.java:63)
... 2 more
image

@cai417 cai417 added the bug Something isn't working label Jan 9, 2025
@tmlx1990
Copy link
Contributor

Chat2DB Version

Chat2DB 0.3.6

Describe the bug

An error occurred while deploying using source code When I use java -jar -Dloader.path=lib chat2db-server-start.jar to start the service, I get the error below Exception in thread "Thread-0" java.lang.ExceptionInInitializerError at ai.chat2db.server.start.Application.lambda$main$0(Application.java:32) at java.base/java.lang.Thread.run(Thread.java:842) Caused by: org.flywaydb.core.api.exception.FlywayValidateException: Validate failed: Migrations have failed validation Detected failed migration to version 2.1.2 (OPERATION). Please remove any half-completed changes then run repair to fix the schema history. Need more flexibility with validation rules? Learn more: https://rd.gt/3AbJUZE at org.flywaydb.core.Flyway.lambda$migrate$0(Flyway.java:146) at org.flywaydb.core.FlywayExecutor.execute(FlywayExecutor.java:190) at org.flywaydb.core.Flyway.migrate(Flyway.java:140) at ai.chat2db.server.domain.repository.Dbutils.initFlyway(Dbutils.java:115) at ai.chat2db.server.domain.repository.Dbutils.before(Dbutils.java:98) at ai.chat2db.server.domain.repository.Dbutils.(Dbutils.java:63) ... 2 more image

Hello, please refer to the following documents to see if there is any inconsistency between the JDK version and operation steps?
https://chat2db-ai.com/resources/docs/question/private-deployment

@cai417
Copy link
Author

cai417 commented Jan 14, 2025 via email

@cai417
Copy link
Author

cai417 commented Jan 14, 2025

There are no problems with the version,When I run java -jar -Dloader.path=lib -Dchatgpt.apiKey=xxxxx chat2db-server-start.jar this command I get the error below
image

When I try to open the web terminal I get an error below
image

I get an error when using the mvn clean install command, is it caused by this error, and how should I fix it?
image

@cai417
Copy link
Author

cai417 commented Jan 14, 2025

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants