Advertisement
kdaud

OpenMRS

Aug 29th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.97 KB | None | 0 0
  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.  
  4. 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
  5.     at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:630)
  6.     at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:587)
  7.     at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:252)
  8.     at org.openmrs.web.Listener.setupNeeded(Listener.java:217)
  9.     at org.openmrs.web.Listener.contextInitialized(Listener.java:179)
  10.     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4699)
  11.     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5165)
  12.     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  13.     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
  14.     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
  15.     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
  16.     at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:970)
  17.     at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1841)
  18.     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  19.     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  20.     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  21.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  22.     at java.lang.Thread.run(Thread.java:748)
  23. 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
  24.     at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:361)
  25.     at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:615)
  26.     ... 17 more
  27. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  28.     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  29.     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  30.     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  31.     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  32.     at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  33.     at com.mysql.jdbc.Util.getInstance(Util.java:408)
  34.     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
  35.     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:898)
  36.     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:887)
  37.     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:861)
  38.     at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2094)
  39.     at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2019)
  40.     at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:776)
  41.     at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)
  42.     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  43.     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  44.     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  45.     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  46.     at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
  47.     at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:386)
  48.     at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
  49.     at java.sql.DriverManager.getConnection(DriverManager.java:664)
  50.     at java.sql.DriverManager.getConnection(DriverManager.java:247)
  51.     at org.openmrs.util.DatabaseUpdater.getConnection(DatabaseUpdater.java:423)
  52.     at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:358)
  53.     ... 18 more
  54. Caused by: java.sql.SQLException: Access denied for user 'openmrs_user'@'localhost' (using password: YES)
  55.     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
  56.     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973)
  57.     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909)
  58.     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:873)
  59.     at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1710)
  60.     at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1226)
  61.     at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2188)
  62.     at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2035)
  63.     ... 32 more
  64.  
  65.  
  66. See the server log for full output.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement