Dear all, I am trying to connect Olympus to my Oracle OMOP CDM V5, first I got an error about not being able to create a schema mentioning the “cohort_definition” table, since I had it blank I decided to drop it and let the script re-run to see if it will re-create it on its own.
I think it worked, because now I have another error:
“WebAPI was not able to start up successfully, please check your configuration. (org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘flyway’ 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: Schema “OMOP” contains a failed migration to version 1.0.0.3 !)”
The configuration asks for 3 schemas, one for the CDM, another for results, and one more for cohort database, in all these 3 I have the same, can that be the problem?
I don’t believe you need to have separate schemas. With that said, Flyway will fail if an object already exists that it is supposed to manage (cohort_definition_sequence, cohort_definition, cohort_definition_details). Looks like the Flyway migration failed at 1.0.0.3. You should have more detail in the log file (e.g. what part of the script failed, etc.). Can you include a more complete log?
I am running in a mac, only “log” I can see comes from the console out, unless you point me in the right direction to where to find it.
About more databases, the cohort_definition table you sent doesn’t look at all like the cohort_definition on the model, I wonder if that will create a problem:
CREATE TABLE cohort_definition (
cohort_definition_id INTEGER NOT NULL,
cohort_definition_name VARCHAR(255) NOT NULL,
cohort_definition_description CLOB NULL,
definition_type_concept_id INTEGER NOT NULL,
cohort_definition_syntax CLOB NULL,
subject_concept_id INTEGER NOT NULL,
cohort_initiation_date DATE NULL
);
Here is the last lines from the console:
WebAPI was not able to start up successfully, please check your configuration. (org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flyway' 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: Schema "OMOP" contains a failed migration to version 1.0.0.3 !)
I’ll defer to @Chris_Knoll & @Frank regarding the cohort_definition model and naming. The object managed by Flyway (“results or OHDSI schema”) is intended to be different than the model. Not sure why it’s named the same.
The last lines of your log are not enough. The error would be indicated above these lines. You could increase the buffer of the console/terminal, or “pipe” the log output to a file (e.g. java > Olympus.log) and then tail it in another terminal OR you could launch Olympus using nohup and that should create a nohup.out file you can review (on Mac it appears to be ‘screen’ instead of nohup). You then would have to kill the process).