java.sql.SQLException: Flyway migration error occurred

Google Groups | Sean Carte | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    使用mysql和tomcat时遇到下面错误

    GitHub | 2 years ago | TonyLuo
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'databaseMigrator': Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Validate failed. Found differences between applied migrations and available migrations: Migration Checksum mismatch for migration V0_0_2__cms_article.sql: DB=1509820152, Classpath=1977030717
  2. 0

    Upgrade error from DSPACE 5.3 to 5.6

    Google Groups | 4 weeks ago | Massimiliano CILURZO
    java.sql.SQLException: Flyway migration error occurred
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Fresh install won't work with 0.0.3.Alpha2 (Migration Exception)

    GitHub | 7 months ago | mozzbozz
    org.flywaydb.core.api.FlywayException: Found non-empty schema "PUBLIC" without metadata table! Use baseline() or set baselineOnMigrate to true to initialize the metadata table.
  5. 0

    ERROR org.springframework.web.context.ContextLoader - Context initialization failed

    GitHub | 1 year ago | chKaze
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'migrator' defined in io.lavagna.config.DataSourceConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.lavagna.service.DatabaseMigrator]: Factory method 'migrator' threw exception; nested exception is org.flywaydb.core.api.FlywayException: Schema `devtracker_db` contains a failed migration to version 1 !
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.flywaydb.core.api.FlywayException

    Validate failed. Found differences between applied migrations and available migrations: Migration on the classpath has not been applied to database: 3.2.1.0

    at org.flywaydb.core.Flyway.doValidate()
  2. ${project.artifactId}
    Flyway.migrate
    1. org.flywaydb.core.Flyway.doValidate(Flyway.java:912)
    2. org.flywaydb.core.Flyway.access$400(Flyway.java:50)
    3. org.flywaydb.core.Flyway$1.execute(Flyway.java:817)
    4. org.flywaydb.core.Flyway$1.execute(Flyway.java:811)
    5. org.flywaydb.core.Flyway.execute(Flyway.java:1171)
    6. org.flywaydb.core.Flyway.migrate(Flyway.java:811)
    6 frames
  3. DSpace Kernel :: API and Implementation
    DatabaseLegacyReindexer.afterRepair
    1. org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:472)
    2. org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:391)
    3. org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseManager.java:1378)
    4. org.dspace.storage.rdbms.DatabaseManager.getDataSource(DatabaseManager.java:653)
    5. org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:632)
    6. org.dspace.core.Context.init(Context.java:145)
    7. org.dspace.core.Context.<init>(Context.java:119)
    8. org.dspace.storage.rdbms.DatabaseLegacyReindexer.reindex(DatabaseLegacyReindexer.java:52)
    9. org.dspace.storage.rdbms.DatabaseLegacyReindexer.afterRepair(DatabaseLegacyReindexer.java:144)
    9 frames
  4. ${project.artifactId}
    Flyway.repair
    1. org.flywaydb.core.internal.command.DbRepair$3.doInTransaction(DbRepair.java:114)
    2. org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72)
    3. org.flywaydb.core.internal.command.DbRepair.repair(DbRepair.java:111)
    4. org.flywaydb.core.Flyway$6.execute(Flyway.java:994)
    5. org.flywaydb.core.Flyway$6.execute(Flyway.java:990)
    6. org.flywaydb.core.Flyway.execute(Flyway.java:1171)
    7. org.flywaydb.core.Flyway.repair(Flyway.java:990)
    7 frames
  5. DSpace Kernel :: API and Implementation
    DatabaseUtils.main
    1. org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.java:217)
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  7. DSpace Kernel :: API and Implementation
    ScriptLauncher.main
    1. org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226)
    2. org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
    2 frames