-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Comments
Hello, please refer to the following documents to see if there is any inconsistency between the JDK version and operation steps? |
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
When I try to open the web terminal I get an error below
I get an error when using the mvn clean install command, is it caused by this error, and how should I fix it?
时光默念少年
***@***.***
…------------------ 原始邮件 ------------------
发件人: "CodePhiliaX/Chat2DB" ***@***.***>;
发送时间: 2025年1月11日(星期六) 上午10:43
***@***.***>;
***@***.******@***.***>;
主题: Re: [CodePhiliaX/Chat2DB] Bug: Validate failed: Migrations have failed validation (Issue #1625)
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
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
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
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
The text was updated successfully, but these errors were encountered: