initial dev setup problem

I helped out a bit on OpenMRS several years ago, and I have a little time now so I am stepping in again. I read over the dev manual, the step by step setup instructions, etc. I have the latest core files from git/master. I have the proper java, mysql 5.7, maven, etc. I was able to build from sources and run ‘mvn jetty:run’, went through the web app init pages (with Standalone db), and the db appears to initialize ok. I got to the page that says “you appear to not have a UI”, so then I downloaded the RefApp modules and (I think) put them in the right place and restarted (mvn jetty:run). But I get this error:

java.lang.IllegalStateException: identifying the snapshot version that had been used to initialize the OpenMRS database failed as no candidate change set resulted in zero un-run changes at org.openmrs.liquibase.ChangeLogDetective.getInitialLiquibaseSnapshotVersion(ChangeLogDetective.java:102) at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:591) at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:270) at org.openmrs.web.Listener.setupNeeded(Listener.java:217) at org.openmrs.web.Listener.contextInitialized(Listener.java:179) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:930) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:553) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:889) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:356) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1445) at org.eclipse.jetty.maven.plugin.JettyWebAppContext.startWebapp(JettyWebAppContext.java:328) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1409) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:822) at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:275) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524) at org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:397)

What am I doing wrong/missing?

Thanks,

Lee

It is great to see you back @leebreisacher :smile:

Which version of the refapp modules did you use?

I downloaded referenceapplication-addons-2.10.0.zip. And I unzipped into C:\Users\Lee\AppData\Roaming\OpenMRS\modules and \owa. Is that the right place to unzip?

@leebreisacher as we wait for @dkayiwa’s response please make sure that your using the latest snapshot versions of those modules so that that they can run on your latest core files …

ah ok. I can get the ref app modules by doing an mvn build of this?: https://github.com/openmrs/openmrs-distro-referenceapplication

@leebreisacher am afraid you going to have to build all of those modules with mvn clan install in order to get their latest snapshot versions if you intend to run all of them on the latest core 2.4.0-SNAPSHOT

Yes. Or download them from here: Reference Application - Distribution 2.x 9900: Artifacts - OpenMRS Bamboo

Hm. I got the latest ref app and built it and copied the modules into C:\Users\Lee\AppData\Roaming\OpenMRS. Then I dropped the openmrs db from mysql and went through the init again. At the end of it, I get this:

INFO - ChangeLogDetective.getInitialLiquibaseSnapshotVersion(89) |2020-05-20T09:15:14,489| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains 23 un-run change sets Exception in thread “Thread-16” 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.startOpenmrs(WebDaemon.java:65) at org.openmrs.web.filter.initialization.InitializationFilter$InitializationCompletion$1.run(InitializationFilter.java:1733) at java.lang.Thread.run(Thread.java:748) Caused by: javax.servlet.ServletException: Should not be here because updates were run previously at org.openmrs.web.Listener.startOpenmrs(Listener.java:235) at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:42) Caused by: org.openmrs.util.DatabaseUpdateException: Unable to check if database updates are required at org.openmrs.api.context.Context.checkForDatabaseUpdates(Context.java:1170) at org.openmrs.api.context.Context.startup(Context.java:879) at org.openmrs.web.Listener.startOpenmrs(Listener.java:232) … 1 more Caused by: java.lang.IllegalStateException: identifying the snapshot version that had been used to initialize the OpenMRS database failed as no candidate change set resulted in zero un-run changes at org.openmrs.liquibase.ChangeLogDetective.getInitialLiquibaseSnapshotVersion(ChangeLogDetective.java:102) at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:591) at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:270) at org.openmrs.api.context.Context.checkForDatabaseUpdates(Context.java:1167) … 3 more

Do you think you can share more of the log? Probably via pastebin.com

https://pastebin.com/34tkTDZe

Thanks for all the assistance…

I should mention that I was not actually fully up to date on sources. I did a pull a couple days ago. So I did another pull just now and am rebuilding again.

Hi Lee, thanks for your post.

Unless rebuilding got your setup back on track, could you please do the following:

The class api/src/main/java/org/openmrs/liquibase/ChangeLogDetective.java defines a constant named MAX_NUMBER_OF_CHANGE_SETS_TO_LOG. Could you please change the value to 30 and re-run the setup?

When testing the snapshots, I have come across incompatibilities in lower numbers (no more than 2 offending change sets at a time) and built in the extra logging. The mismatch you observed breaks that limit (apologies for that).

Once you got a log with the change log details, please share it with me and I have closer look at what is going on.

Thank you, Wolf

1 Like

The full log is more than will fit in a (free) pastebin. But here’s the tail end of it, is it enough?: INFO - ChangeLogDetective.getInitialLiquibaseSnapshotVersion(89) |2020-05-20T16:30:24,948| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains 23 un-run change sets INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,948| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-22’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,948| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-16’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,948| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-2’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,949| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-8’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,949| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-12’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,949| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-13’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,949| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226412230538-24’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,949| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226412230538-7’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,949| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-6’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,949| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-14’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,949| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-15’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,950| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘20110915-0751’ by author ‘sunbiz’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,950| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-17’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,950| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-18’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,950| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-20’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,950| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-21’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,950| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-23’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,950| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226412230538-9a’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,950| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘20110915-0803’ by author ‘sunbiz’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,950| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘20110915-0848’ by author ‘sunbiz’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,951| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘20110915-1107’ by author ‘sunbiz’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,951| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘20110915-1149’ by author ‘sunbiz’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-20T16:30:24,951| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘20110915-1459’ by author ‘sunbiz’ [INFO] Stopped ServerConnector@7364f68{HTTP/1.1,[http/1.1]}{0.0.0.0:8080} [INFO] node0 Stopped scavenging ERROR - MemoryLeakUtil.shutdownMysqlCancellationTimer(49) |2020-05-20T16:32:19,031| Cannot cancel java.lang.ClassNotFoundException: com.mysql.jdbc.ConnectionImpl at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) ~[?:?] at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) ~[?:?] at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) ~[?:?] at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) ~[?:?] at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:543) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_162] at java.lang.Class.forName0(Native Method) ~[?:1.8.0_162] at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_162] at org.openmrs.util.MemoryLeakUtil.shutdownMysqlCancellationTimer(MemoryLeakUtil.java:32) [classes/:?] at org.openmrs.web.Listener.contextDestroyed(Listener.java:581) [classes/:?] at org.eclipse.jetty.server.handler.ContextHandler.callContextDestroyed(ContextHandler.java:937) [jetty-server-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.servlet.ServletContextHandler.callContextDestroyed(ServletContextHandler.java:565) [jetty-servlet-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.server.handler.ContextHandler.stopContext(ContextHandler.java:905) [jetty-server-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.servlet.ServletContextHandler.stopContext(ServletContextHandler.java:367) [jetty-servlet-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.webapp.WebAppContext.stopWebapp(WebAppContext.java:1450) [jetty-webapp-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.maven.plugin.JettyWebAppContext.stopWebapp(JettyWebAppContext.java:342) [jetty-maven-plugin-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.webapp.WebAppContext.stopContext(WebAppContext.java:1415) [jetty-webapp-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:980) [jetty-server-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:284) [jetty-servlet-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:547) [jetty-webapp-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStop(JettyWebAppContext.java:433) [jetty-maven-plugin-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:93) [jetty-util-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:180) [jetty-util-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:201) [jetty-util-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:111) [jetty-server-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:93) [jetty-util-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:180) [jetty-util-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:201) [jetty-util-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:111) [jetty-server-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:93) [jetty-util-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:180) [jetty-util-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:201) [jetty-util-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:111) [jetty-server-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.server.Server.doStop(Server.java:454) [jetty-server-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:93) [jetty-util-9.4.25.v20191220.jar:9.4.25.v20191220] at org.eclipse.jetty.util.thread.ShutdownThread.run(ShutdownThread.java:127) [jetty-util-9.4.25.v20191220.jar:9.4.25.v20191220] [INFO] Stopped o.e.j.m.p.JettyWebAppContext@3f183caa{OpenMRS,/openmrs,file:///C:/git/openmrs-core/webapp/src/main/webapp/,UNAVAILABLE}{file:///C:/git/openmrs-core/webapp/src/main/webapp/} [INFO] Jetty server exiting. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 04:49 min [INFO] Finished at: 2020-05-20T16:32:19-07:00 Terminate batch job (Y/N)?

And what do you have in the browser, before stopping OpenMRS?

The following error occurred at startup: identifying the snapshot version that had been used to initialize the OpenMRS database failed as no candidate change set resulted in zero un-run changes java.lang.IllegalStateException: identifying the snapshot version that had been used to initialize the OpenMRS database failed as no candidate change set resulted in zero un-run changes at org.openmrs.liquibase.ChangeLogDetective.getInitialLiquibaseSnapshotVersion(ChangeLogDetective.java:102) at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:591) at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:270) at org.openmrs.web.Listener.setupNeeded(Listener.java:217) at org.openmrs.web.Listener.contextInitialized(Listener.java:179) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:930) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:553) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:889) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:356) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1445) at org.eclipse.jetty.maven.plugin.JettyWebAppContext.startWebapp(JettyWebAppContext.java:328) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1409) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:822) at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:275) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524) at org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:397) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:100) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:100) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) at org.eclipse.jetty.server.Server.start(Server.java:407) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:100) at org.eclipse.jetty.server.Server.doStart(Server.java:371) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72) at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:450) at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:311) at org.eclipse.jetty.maven.plugin.JettyRunMojo.execute(JettyRunMojo.java:152) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:955) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:290) at org.apache.maven.cli.MavenCli.main(MavenCli.java:194) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

See the server log for full output.

Since you say that the platform installs very well. Can you load only one module (legacyui module) and tell us what happens?

ok, let me start from scratch one more time. Where do I find the legacyui module? And where, exactly, do I put it? I’m still not 100% sure I’m putting modules in the right place. Also, how/when are modules found? If I simply start the server with .omod files in the modules folder, are they found automatically?

To make it even simpler, first start with only the platform. And then i will guide you from there.

Thanks. OK. I deleted the mysql db. I deleted the openmrs-runtime.properties, etc. I did a git pull. I ran ‘mvn clean install’. Went into the webapp dir and ran ‘mvn jetty:run’. All good so far. Went to localhost:8080/openmrs, answered the questions, waited for the initialize steps to complete. At the very end of it, I get this in the log: INFO - Slf4jLogger.info(42) |2020-05-21T16:00:33,928| SELECT COUNT(*) FROM openmrs.liquibasechangeloglock INFO - ChangeLogDetective.getInitialLiquibaseSnapshotVersion(89) |2020-05-21T16:00:33,987| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains 23 un-run change sets INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,987| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-22’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,988| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-16’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,988| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-2’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,988| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-8’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,989| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-12’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,989| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-13’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,989| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226412230538-24’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,989| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226412230538-7’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,990| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-6’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,990| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-14’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,990| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-15’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,990| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘20110915-0751’ by author ‘sunbiz’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,991| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-17’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,991| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-18’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,991| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-20’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,991| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-21’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,992| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226348923233-23’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,992| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘1226412230538-9a’ by author ‘ben (generated)’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,992| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘20110915-0803’ by author ‘sunbiz’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,992| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘20110915-0848’ by author ‘sunbiz’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,992| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘20110915-1107’ by author ‘sunbiz’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,993| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘20110915-1149’ by author ‘sunbiz’ INFO - ChangeLogDetective.logUnRunChangeSetDetails(175) |2020-05-21T16:00:33,993| file ‘org\openmrs\liquibase\snapshots\core-data\liquibase-core-data-1.9.x.xml’ contains un-run change set with id ‘20110915-1459’ by author ‘sunbiz’ Exception in thread “Thread-15” 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.startOpenmrs(WebDaemon.java:64) at org.openmrs.web.filter.initialization.InitializationFilter$InitializationCompletion$1.run(InitializationFilter.java:1733) at java.lang.Thread.run(Thread.java:748) Caused by: javax.servlet.ServletException: Should not be here because updates were run previously at org.openmrs.web.Listener.startOpenmrs(Listener.java:235) at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:42) Caused by: org.openmrs.util.DatabaseUpdateException: Unable to check if database updates are required at org.openmrs.api.context.Context.checkForDatabaseUpdates(Context.java:1170) at org.openmrs.api.context.Context.startup(Context.java:879) at org.openmrs.web.Listener.startOpenmrs(Listener.java:232) … 1 more Caused by: java.lang.IllegalStateException: identifying the snapshot version that had been used to initialize the OpenMRS database failed as no candidate change set resulted in zero un-run changes at org.openmrs.liquibase.ChangeLogDetective.getInitialLiquibaseSnapshotVersion(ChangeLogDetective.java:102) at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:591) at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:270) at org.openmrs.api.context.Context.checkForDatabaseUpdates(Context.java:1167) … 3 more

and the browser shows: OpenMRS Platform ${project.version}.${revisionNumber} Running! If you are seeing this page, it means that the OpenMRS Platform is running successfully, but no user interface module is installed.

What’s next?

From these addons: https://ci.openmrs.org/browse/REFAPP-OMODDISTRO-9905/artifact copy the legacyui module and put it in the application data modules folder. Then restart OpenMRS.