Advertisement
monasaleh

Untitled

Dec 18th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.82 KB | None | 0 0
  1.  
  2.  
  3. OpenMRS is not able to start.
  4. The following error occurred at startup:
  5. 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
  6.  
  7. 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
  8. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:628)
  9. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:584)
  10. at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:249)
  11. at org.openmrs.web.Listener.setupNeeded(Listener.java:222)
  12. at org.openmrs.web.Listener.contextInitialized(Listener.java:180)
  13. at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4961)
  14. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5455)
  15. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  16. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
  17. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
  18. at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  19. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  20. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  21. at java.lang.Thread.run(Thread.java:748)
  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:358)
  24. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:613)
  25. ... 13 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(NativeConstructorAccessorImpl.java:62)
  29. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  30. at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  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(NativeConstructorAccessorImpl.java:62)
  43. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  44. at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  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(DriverManager.java:664)
  49. at java.sql.DriverManager.getConnection(DriverManager.java:247)
  50. at org.openmrs.util.DatabaseUpdater.getConnection(DatabaseUpdater.java:420)
  51. at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:355)
  52. ... 14 more
  53. Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
  54.  
  55. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  56. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  57. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  58. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  59. at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  60. at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
  61. at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1129)
  62. at com.mysql.jdbc.MysqlIO.(MysqlIO.java:358)
  63. at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2489)
  64. at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2334)
  65. ... 28 more
  66. Caused by: java.net.ConnectException: Connection refused (Connection refused)
  67. at java.net.PlainSocketImpl.socketConnect(Native Method)
  68. at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
  69. at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
  70. at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
  71. at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  72. at java.net.Socket.connect(Socket.java:589)
  73. at java.net.Socket.connect(Socket.java:538)
  74. at java.net.Socket.(Socket.java:434)
  75. at java.net.Socket.(Socket.java:244)
  76. at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
  77. at com.mysql.management.driverlaunched.ServerLauncherSocketFactory.connect(ServerLauncherSocketFactory.java:74)
  78. at com.mysql.jdbc.MysqlIO.(MysqlIO.java:308)
  79. ... 30 more
  80.  
  81.  
  82. See the server log for full output.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement