OpenMRS White Logo
The OpenMRS server is not able to start

OpenMRS Application Startup Failed

The following error occurred at startup:

Unable to start OpenMRS. Error thrown was: Should not be here because updates were run previously

org.openmrs.module.ModuleException: Unable to start OpenMRS. Error thrown was: Should not be here because updates were run previously
	at org.openmrs.web.WebDaemon.lambda$startOpenmrs$0(WebDaemon.java:44)
	at org.openmrs.api.context.Daemon.lambda$runInDaemonThreadInternal$5(Daemon.java:489)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: javax.servlet.ServletException: Should not be here because updates were run previously
	at org.openmrs.web.Listener.startOpenmrs(Listener.java:350)
	at org.openmrs.web.WebDaemon.lambda$startOpenmrs$0(WebDaemon.java:42)
	... 6 more
Caused by: 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: Could not acquire change log lock.  Currently locked by f2da81b8915d (172.18.0.4) since 7/15/26, 7:42 AM
	at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:193)
	at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:153)
	at org.openmrs.api.context.Context.checkForDatabaseUpdates(Context.java:1310)
	at org.openmrs.api.context.Context.startup(Context.java:1013)
	at org.openmrs.web.Listener.startOpenmrs(Listener.java:347)
	... 7 more
Caused by: liquibase.exception.LockException: Could not acquire change log lock.  Currently locked by f2da81b8915d (172.18.0.4) since 7/15/26, 7:42 AM
	at liquibase.lockservice.StandardLockService.waitForLock(StandardLockService.java:297)
	at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:228)
	at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:189)
	... 11 more