-
Bug
-
Resolution: Done
-
High
-
Frankfurt Release
Catalog-db-adapter is exiting with error code while connecting with Mariadb and not coming up on local setup.
2020-03-18T14:34:50.634Z||main|||||ERROR|500||Migration of schema `catalogdb` with repeatable migration R_CloudConfigMigration failed! Please restore backups and roll back database and code!
2020-03-18T14:34:50.681Z||main|||||ERROR|500||Application run failed
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.internal.command.DbMigrate$FlywayMigrateException: Migration failed !)
find attached debug.log file for more information
steps to reproduce:
clone this branch
https://github.com/onap/so-docker-config.git
and run docker-compose up with latest so images.
If catalalog-adapter shows connection refused put some delay in catalog-db-adapter untill catalogdb is created in database.