SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. The following error occurred at startup:
  2. Error occurred while trying to get the updates needed for the database. Unable to get a connection to the database. Please check your openmrs runtime properties file and make sure you have the correct connection.username and connection.password set
  3. java.lang.RuntimeException: Error occurred while trying to get the updates needed for the database. Unable to get a connection to the database.  Please check your openmrs runtime properties file and make sure you have the correct connection.username and connection.password set
  4.     at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:630)
  5.     at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:587)
  6.     at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:252)
  7.     at org.openmrs.web.Listener.setupNeeded(Listener.java:217)
  8.     at org.openmrs.web.Listener.contextInitialized(Listener.java:179)
  9.     at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:835)
  10.     at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:530)
  11.     at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:808)
  12.     at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:342)
  13.     at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1368)
  14.     at org.eclipse.jetty.maven.plugin.JettyWebAppContext.startWebapp(JettyWebAppContext.java:320)
  15.     at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1335)
  16.     at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:772)
  17.     at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:259)
  18.     at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:511)
  19.     at org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:403)
  20.     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
  21.     at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
  22.     at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
  23.     at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
  24.     at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
  25.     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
  26.     at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
  27.     at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
  28.     at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
  29.     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
  30.     at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
  31.     at org.eclipse.jetty.server.Server.start(Server.java:405)
  32.     at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)
  33.     at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
  34.     at org.eclipse.jetty.server.Server.doStart(Server.java:372)
  35.     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
  36.     at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:457)
  37.     at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:328)
  38.     at org.eclipse.jetty.maven.plugin.JettyRunMojo.execute(JettyRunMojo.java:170)
  39.     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
  40.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
  41.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
  42.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
  43.     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
  44.     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
  45.     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
  46.     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
  47.     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
  48.     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
  49.     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
  50.     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
  51.     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
  52.     at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
  53.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  54.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  55.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  56.     at java.lang.reflect.Method.invoke(Method.java:498)
  57.     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
  58.     at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
  59.     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
  60.     at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  61. Caused by: java.lang.Exception: Unable to get a connection to the database.  Please check your openmrs runtime properties file and make sure you have the correct connection.username and connection.password set
  62.     at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:361)
  63.     at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:615)
  64.     ... 56 more
  65. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  66.     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  67.     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  68.     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  69.     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  70.     at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  71.     at com.mysql.jdbc.Util.getInstance(Util.java:408)
  72.     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
  73.     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
  74.     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
  75.     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
  76.     at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2094)
  77.     at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2019)
  78.     at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:776)
  79.     at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)
  80.     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  81.     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  82.     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  83.     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  84.     at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  85.     at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:386)
  86.     at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
  87.     at java.sql.DriverManager.getConnection(DriverManager.java:664)
  88.     at java.sql.DriverManager.getConnection(DriverManager.java:247)
  89.     at org.openmrs.util.DatabaseUpdater.getConnection(DatabaseUpdater.java:423)
  90.     at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:358)
  91.     ... 57 more
  92. Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
  93.  
  94. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  95.     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  96.     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  97.     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  98.     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  99.     at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  100.     at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:990)
  101.     at com.mysql.jdbc.MysqlIO.(MysqlIO.java:341)
  102.     at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2186)
  103.     at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2035)
  104.     ... 71 more
  105. Caused by: java.net.ConnectException: Connection refused: connect
  106.     at java.net.DualStackPlainSocketImpl.connect0(Native Method)
  107.     at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
  108.     at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
  109.     at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
  110.     at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
  111.     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
  112.     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  113.     at java.net.Socket.connect(Socket.java:589)
  114.     at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:211)
  115.     at com.mysql.jdbc.MysqlIO.(MysqlIO.java:300)
  116.     ... 73 more
  117.  
  118.  
  119. See the server log for full output.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top