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.

GitHub | mozzbozz | 4 months ago
  1. 0

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

    GitHub | 4 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.
  2. 0

    GitHub comment 204#221189502

    GitHub | 6 months ago | WimVerhaert
    org.flywaydb.core.api.FlywayException: Validate failed. Migration Description mismatch for migration 1.01.05 -> Applied to database : SNAPSHOT -> Resolved locally : 0 0 3 alpha1
  3. 0

    GitHub comment 230#237003937

    GitHub | 4 months ago | mozzbozz
    org.flywaydb.core.api.FlywayException: Schema "PUBLIC" contains a failed migration to version 1.02.08 !
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 2#249957193

    GitHub | 2 months ago | ceizner
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userEnableFilter': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.draios.storage.services.UserService com.draios.security.UserEnableFilter.userService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.draios.storage.services.TeamService com.draios.storage.services.UserService.teamService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'teamService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.draios.storage.services.SupportedMetricsService com.draios.storage.services.TeamService.supportedMetricsService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'supportedMetricsService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.draios.storage.dao.SupportedMetricsDAO com.draios.storage.services.SupportedMetricsService.supportedMetricsDAO; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Found non-empty schema `draios` without metadata table! Use baseline() or set baselineOnMigrate to true to initialize the metadata table.
  6. 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

  1. tvrmsmith 1 times, last 1 month ago
  2. dafman 12 times, last 2 months ago
  3. serious2monkeys 39 times, last 2 weeks ago
  4. schoetty 6 times, last 7 months ago
17 unregistered visitors
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

    Found non-empty schema "PUBLIC" without metadata table! Use baseline() or set baselineOnMigrate to true to initialize the metadata table.

    at org.flywaydb.core.Flyway$1.execute()
  2. ${project.artifactId}
    Flyway.migrate
    1. org.flywaydb.core.Flyway$1.execute(Flyway.java:1035)[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
    2. org.flywaydb.core.Flyway$1.execute(Flyway.java:1006)[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
    3. org.flywaydb.core.Flyway.execute(Flyway.java:1418)[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
    4. org.flywaydb.core.Flyway.migrate(Flyway.java:1006)[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
    4 frames
  3. org.mycontroller.standalone
    StartApp.main
    1. org.mycontroller.standalone.db.DataBaseUtils.loadDatabase(DataBaseUtils.java:113)[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
    2. org.mycontroller.standalone.StartApp.startServices(StartApp.java:243)[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
    3. org.mycontroller.standalone.StartApp.startMycontroller(StartApp.java:106)[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
    4. org.mycontroller.standalone.StartApp.main(StartApp.java:93)[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
    4 frames