Application Name: Reference Application
Version Number: 2.4.0 SNAP-SHOT
Question:
I am getting a DatabaseUpdateException when intalling openmrs I am using MySQL 5.6.10 , please see attached error message
Error while trying to update to the latest database version
org.openmrs.util.DatabaseUpdateException: There was an error while updating the database to the latest. file: org\openmrs\liquibase\updates\liquibase-update-to-latest-2.0.x.xml. Error: org\openmrs\liquibase\updates\liquibase-update-to-latest-2.0.x.xml does not exist
at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:188) ~[openmrs-api-2.4.0-SNAPSHOT.jar:?]
at org.openmrs.web.filter.initialization.InitializationFilter$InitializationCompletion$1.run(InitializationFilter.java:1717) [openmrs-web-2.4.0-SNAPSHOT.jar:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_162]
Caused by: liquibase.exception.ChangeLogParseException: org\openmrs\liquibase\updates\liquibase-update-to-latest-2.0.x.xml does not exist
at liquibase.parser.core.xml.XMLChangeLogSAXParser.parseToNode(XMLChangeLogSAXParser.java:106) ~[liquibase-core-3.10.2.jar:?]
at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:15) ~[liquibase-core-3.10.2.jar:?]
at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:244) ~[openmrs-api-2.4.0-SNAPSHOT.jar:?]
at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:183) ~[openmrs-api-2.4.0-SNAPSHOT.jar:?]
… 2 more
Yes @dkayiwa am running it using the SDK how ever I was able to sort out the issue. I had an existing “openmrs” database so I changed the database name during installation and it worked.
hi @gcliff I did another installation on my mac today and it worked like a charm. i was just following the same steps I did on Windows. Please find attached log openmrs_sdk_logs.txt (127.9 KB)
Dear, @mukesh I from facing the same issue, I found out when the liquidbase creates migration tables before the auto generation of all tables that’s when the challenge comes in. What you can do delete all the tables in the openmrs database then re-run the mvn jetty:run(that’s if you’re using jetty server)