Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-533

Unable to deploy OpenMRS 1.5 Alpha - error getting unrun updates on the database

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Should
    • Resolution: Fixed
    • None
    • OpenMRS 1.5.0
    • None

    Description

      When I try to deploy OpenMRS 1.5 Alpha release (after stopping my modules, uninstalling the previous 1.4.2 war file, and restarting tomcat), I get the following error in the stdout log file...

      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      ERROR - Listener.contextInitialized(124) |2009-05-26 12:07:49,197| Got exception while starting up: 
      javax.servlet.ServletException: java.lang.RuntimeException: error getting unrun updates on the database
      	at org.openmrs.web.Listener.setupNeeded(Listener.java:144)
      	at org.openmrs.web.Listener.contextInitialized(Listener.java:117)
      	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
      	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
      	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
      	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515)
      	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
      	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
      	at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1398)
      	at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:214)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
      	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
      	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
      	at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.RuntimeException: error getting unrun updates on the database
      	at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:429)
      	at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:100)
      	at org.openmrs.web.Listener.setupNeeded(Listener.java:141)
      	... 33 more
      Caused by: liquibase.exception.LockException: Could not acquire change log lock.  Currently locked by openmrs.hashaiti.org (10.1.1.5) since 4/18/09 2:24 PM
      	at liquibase.lock.LockHandler.waitForLock(LockHandler.java:170)
      	at liquibase.Liquibase.listUnrunChangeSets(Liquibase.java:518)
      	at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:417)
      	... 35 more
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      Waiting for changelog lock....
      ERROR - UpdateFilterModel.<init>(52) |2009-05-26 12:12:50,006| Unable to get the database changes
      java.lang.RuntimeException: error getting unrun updates on the database
      	at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:429)
      	at org.openmrs.web.filter.update.UpdateFilterModel.<init>(UpdateFilterModel.java:49)
      	at org.openmrs.web.filter.update.UpdateFilter.init(UpdateFilter.java:293)
      	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
      	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
      	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
      	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
      	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
      	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
      	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515)
      	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
      	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
      	at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1398)
      	at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:214)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
      	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
      	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
      	at java.lang.Thread.run(Unknown Source)
      Caused by: liquibase.exception.LockException: Could not acquire change log lock.  Currently locked by openmrs.hashaiti.org (10.1.1.5) since 4/18/09 2:24 PM
      	at liquibase.lock.LockHandler.waitForLock(LockHandler.java:170)
      	at liquibase.Liquibase.listUnrunChangeSets(Liquibase.java:518)
      	at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:417)
      	... 37 more
      Listener.contextDestroyed: Error while shutting down openmrs
      org.openmrs.api.APIException: contextDAO is null
      	at org.openmrs.api.context.Context.getContextDAO(Context.java:160)
      	at org.openmrs.api.context.Context.openSession(Context.java:671)
      	at org.openmrs.web.Listener.contextDestroyed(Listener.java:427)
      	at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3866)
      	at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4502)
      	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4366)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
      	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
      	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515)
      	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
      	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
      	at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1398)
      	at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:214)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
      	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
      	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
      	at java.lang.Thread.run(Unknown Source)
      
      

      I get the following in the catalina log file...

      May 26, 2009 12:02:29 PM org.apache.catalina.startup.HostConfig deployWAR
      INFO: Deploying web application archive openmrs.war
      May 26, 2009 12:12:50 PM org.apache.catalina.core.StandardContext start
      SEVERE: Error filterStart
      May 26, 2009 12:12:50 PM org.apache.catalina.core.StandardContext start
      SEVERE: Context [/openmrs] startup failed due to previous errors
      

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                bwolfe Ben Wolfe
                arbaughj James Arbaugh
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: