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.core.ContainerBase.addChildInternal(ContainerBase.java:899) at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:133) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:156) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:873) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1962) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 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) ... 25 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