Looking for the code that prints the error message "Unable to update data model"

Question 1: I am trying to migrate data from Bahmni 0.89 to bahmni-docker 1.0. I am getting the following error message in the openmrs logs on startup:

2024-11-17 06:45:55 WARN - ModuleFactory.startModuleInternal(783) |2024-11-17T16:45:55,553| Error while trying to start module: bahmnicore 2024-11-17 06:45:55 org.openmrs.module.ModuleException: Unable to update data model using liquibase.xml. Module: Bahmni EMR Core OMOD

I would like to find the java code that generates this exception and add more debugging information to the output log. Using this web page,

https://bahmni.atlassian.net/wiki/spaces/BAH/pages/1867786/List+of+Repositories+needed+for+Development+on+Bahmni

I downloaded all of the repositories needed to do Bahmni development. However, I can’t find where the exception is being generated. I am using Visual Studio Code and searching the Bahmni-global file hierarchy.

Question: Where in the code repositories does this exception get generated?

Question 2: Is there a way to turn on extra debugging information from liquibase processing?

The error would also contain which liquibase changeset is failing. Please check for it and you can find the changeset in liquibase.xml in bahmni-core repository.

Thank you for your response.

I can’t identify the specific liquibase error(s) in the log file that are causing the bahmni core module to fail to load. Can you help?

My log file is 22 pages long, in landscape format, and uses 8pt font. I will gladly share my log file with anyone who would be willing to exam it in detail.

In place of the entire log file, I will try to summarize my log file with the number of times common lines appear :

15 times: looking for un-run change sets in snapshot version

95 times: Reading from openmrs.liquibasechangelog

51 times: ChangeLogDetective.getInitialLiquibaseSnapshotVersion…

117 lines similar to this: ChangeSet liquibase-update-to-latest.xml::20170707-TRUNK-5185-1::mogoodrich ran successfully in 245ms

The “errors” I see in the log file are the following, but I don’t know how to “fix” them or associate them with specific liquibase changesets.

18 times; Failed to restore the auto commit to true.

7 times: modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use and re-specify all configuration if this is the case