java.sql.SQLException

Flyway migration error occurred

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web38

  • via Unknown by Sean Carte,
  • via Unknown by Alex Fletcher,
  • Stack trace

    • java.sql.SQLException: Flyway migration error occurred at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:483) at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:391) at org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseManager.java:1378) at org.dspace.storage.rdbms.DatabaseManager.getDataSource(DatabaseManager.java:653) at org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:632) at org.dspace.core.Context.init(Context.java:145) at org.dspace.core.Context.<init>(Context.java:119) at org.dspace.app.util.AbstractDSpaceWebapp.register(AbstractDSpaceWebapp.java:80) at org.dspace.app.util.DSpaceContextListener.contextInitialized(DSpaceContextListener.java:128) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) at org.apache.catalina.startup.HostConfig.reload(HostConfig.java:1547) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1511) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1744) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:333) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1371) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1543) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1553) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1521) at java.lang.Thread.run(Thread.java:745) Caused by: org.flywaydb.core.api.FlywayException: Validate failed. Found differe nces between applied migrations and available migrations: Migration on the class path has not been applied to database: 3.2.1.0 at org.flywaydb.core.Flyway.doValidate(Flyway.java:912) at org.flywaydb.core.Flyway.access$400(Flyway.java:50) at org.flywaydb.core.Flyway$1.execute(Flyway.java:817) at org.flywaydb.core.Flyway$1.execute(Flyway.java:811) at org.flywaydb.core.Flyway.execute(Flyway.java:1171) at org.flywaydb.core.Flyway.migrate(Flyway.java:811) at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:472) ... 22 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    slashslash
    17 times, last one
    Andreas HäberAndreas Häber
    8 times, last one
    johnxflyjohnxfly
    Once,
    kjhdofjosvskjhdofjosvs
    5 times, last one
    serious2monkeysserious2monkeys
    39 times, last one
    23 more bugmates