SHARE
TWEET

Untitled

a guest May 15th, 2019 84 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:134)
  40.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
  41.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
  42.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
  43.     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
  44.     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
  45.     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
  46.     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
  47.     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
  48.     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
  49.     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
  50.     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
  51.     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
  52.     at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
  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.     at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
  62. 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
  63.     at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:361)
  64.     at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:615)
  65.     ... 57 more
  66. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  67.     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  68.     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  69.     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  70.     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  71.     at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  72.     at com.mysql.jdbc.Util.getInstance(Util.java:408)
  73.     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
  74.     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
  75.     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
  76.     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
  77.     at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2094)
  78.     at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2019)
  79.     at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:776)
  80.     at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)
  81.     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  82.     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  83.     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  84.     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  85.     at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  86.     at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:386)
  87.     at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
  88.     at java.sql.DriverManager.getConnection(DriverManager.java:664)
  89.     at java.sql.DriverManager.getConnection(DriverManager.java:247)
  90.     at org.openmrs.util.DatabaseUpdater.getConnection(DatabaseUpdater.java:423)
  91.     at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:358)
  92.     ... 58 more
  93. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'openmrs'
  94.     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  95.     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  96.     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  97.     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  98.     at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  99.     at com.mysql.jdbc.Util.getInstance(Util.java:408)
  100.     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:944)
  101.     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973)
  102.     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909)
  103.     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:873)
  104.     at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1710)
  105.     at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1226)
  106.     at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2188)
  107.     at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2035)
  108.     ... 72 more
  109.  
  110.  
  111. 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