samuel34

Untitled

Jul 31st, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.81 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. 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:628)
  5. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:585)
  6. at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:250)
  7. at org.openmrs.web.Listener.setupNeeded(Listener.java:222)
  8. at org.openmrs.web.Listener.contextInitialized(Listener.java:181)
  9. at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4745)
  10. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207)
  11. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  12. at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
  13. at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
  14. at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
  15. at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952)
  16. at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823)
  17. at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
  18. at java.util.concurrent.FutureTask.run(Unknown Source)
  19. at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  20. at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  21. at java.lang.Thread.run(Unknown Source)
  22. 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
  23. at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:359)
  24. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:613)
  25. ... 17 more
  26. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  27. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  28. at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  29. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
  30. at java.lang.reflect.Constructor.newInstance(Unknown Source)
  31. at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
  32. at com.mysql.jdbc.Util.getInstance(Util.java:386)
  33. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015)
  34. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
  35. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975)
  36. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920)
  37. at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2395)
  38. at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2316)
  39. at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:834)
  40. at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)
  41. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  42. at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
  43. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
  44. at java.lang.reflect.Constructor.newInstance(Unknown Source)
  45. at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
  46. at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416)
  47. at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:347)
  48. at java.sql.DriverManager.getConnection(Unknown Source)
  49. at java.sql.DriverManager.getConnection(Unknown Source)
  50. at org.openmrs.util.DatabaseUpdater.getConnection(DatabaseUpdater.java:421)
  51. at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:356)
  52. ... 18 more
  53. Caused by: java.sql.SQLException: Access denied for user 'openmrs_user'@'localhost' (using password: YES)
  54. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1086)
  55. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
  56. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
  57. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:928)
  58. at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1750)
  59. at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1290)
  60. at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2493)
  61. at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2334)
  62. ... 32 more
  63.  
  64.  
  65. See the server log for full output.
Add Comment
Please, Sign In to add comment