I’m trying to get Broadsea to point to an existing webapi and CDM schemas that I have in PostgreSql on my localhost.
When webapi starts up in Docker I get the error shown below.
I’m assuming it has something to do with the section of parameters shown below and there is someplace in my schema I can check for the correct information?
The full .yml configuration file and full stack trace are attached.
docker-compose.yml.txt (3.6 KB)
stack-trace.txt (35.6 KB)
Config:
FLYWAY_LOCATIONS: classpath:db/migration/postgresql
FLYWAY_PLACEHOLDERS_OHDSISCHEMA: webapi
FLYWAY_SCHEMAS: webapi
FLYWAY_BASELINEONMIGRATE: “true”
FLYWAY_TABLE: schema_history
flyway_baselineVersionAsString: “2.2.5.20180212152023” # this env var is case sensitive
FLYWAY_BASELINEDESCRIPTION: Base Migration
SECURITY_CORS_ENABLED: “true”
SECURITY_ORIGIN: “http://${BROADSEA_HOST}”
Exception:
2023-04-18 05:27:55 Migration V2.2.5.20180215105415__separate-sequences.sql failed 2023-04-18 05:27:55 -------------------------------------------------------------- 2023-04-18 05:27:55 SQL State : 42P07 2023-04-18 05:27:55 Error Code : 0 2023-04-18 05:27:55 Message : ERROR: relation "cca_sequence" already exists 2023-04-18 05:27:55 Location : db/migration/postgresql/V2.2.5.20180215105415__separate-sequences.sql (/var/lib/ohdsi/webapi/WEB-INF/classes/db/migration/postgresql/V2.2.5.20180215105415__separate-sequences.sql) 2023-04-18 05:27:55 Line : 1 2023-04-18 05:27:55 Statement : CREATE SEQUENCE webapi.cca_sequence 2023-04-18 05:27:55 2023-04-18 05:27:55 2023-04-18 09:27:55.840 INFO main org.springframework.boot.autoconfigure.logging.AutoConfigurationReportLoggingInitializer - [] - 2023-04-18 05:27:55 2023-04-18 05:27:55 Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2023-04-18 05:27:55 2023-04-18 09:27:55.844 ERROR main org.springframework.boot.SpringApplication - [] - Application startup failed 2023-04-18 05:27:55 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'shiroFilter' defined in class path resource [org/ohdsi/webapi/ShiroConfiguration.class]: Unsatisfied dependency expressed through method 'shiroFilter' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flyway' defined in class path resource [org/ohdsi/webapi/FlywayConfig.class]: Invocation of init method failed; nested exception is org.flywaydb.core.internal.command.DbMigrate$FlywayMigrateSqlException: 2023-04-18 05:27:55 Migration V2.2.5.20180215105415__separate-sequences.sql failed 2023-04-18 05:27:55 --------------------------------------------------------------