java.sql.SQLException

Flyway migration error occurred

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

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

Solutions on the web5108

  • via Sakai JIRA by Terry Brady, 4 months ago
    Flyway migration error occurred
  • via Google Groups by Sean Carte, 10 months ago
    Flyway migration error occurred
  • via Sakai JIRA by Terry Brady, 1 year ago
    Flyway migration error occurred
  • 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 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(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

    17 times, 5 days ago
    8 times, 4 months ago
    Once, 6 months ago
    5 times, 7 months ago
    39 times, 8 months ago
    23 more bugmates