Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.68 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:584)
  6. at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:249)
  7. at org.openmrs.web.Listener.setupNeeded(Listener.java:222)
  8. at org.openmrs.web.Listener.contextInitialized(Listener.java:180)
  9. at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4961)
  10. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5455)
  11. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  12. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
  13. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
  14. at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  15. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  16. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  17. at java.lang.Thread.run(Thread.java:748)
  18. 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
  19. at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:358)
  20. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:613)
  21. ... 13 more
  22. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  23. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  24. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  25. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  26. at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  27. at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
  28. at com.mysql.jdbc.Util.getInstance(Util.java:386)
  29. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015)
  30. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
  31. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975)
  32. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920)
  33. at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2395)
  34. at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2316)
  35. at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:834)
  36. at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)
  37. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  38. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  39. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  40. at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  41. at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
  42. at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416)
  43. at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:347)
  44. at java.sql.DriverManager.getConnection(DriverManager.java:664)
  45. at java.sql.DriverManager.getConnection(DriverManager.java:247)
  46. at org.openmrs.util.DatabaseUpdater.getConnection(DatabaseUpdater.java:420)
  47. at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:355)
  48. ... 14 more
  49. Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
  50.  
  51. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  52. at sun.reflect.GeneratedConstructorAccessor13.newInstance(Unknown Source)
  53. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  54. at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  55. at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
  56. at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1129)
  57. at com.mysql.jdbc.MysqlIO.(MysqlIO.java:358)
  58. at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2489)
  59. at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2334)
  60. ... 28 more
  61. Caused by: java.net.ConnectException: Connection refused (Connection refused)
  62. at java.net.PlainSocketImpl.socketConnect(Native Method)
  63. at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
  64. at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
  65. at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
  66. at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  67. at java.net.Socket.connect(Socket.java:589)
  68. at java.net.Socket.connect(Socket.java:538)
  69. at java.net.Socket.(Socket.java:434)
  70. at java.net.Socket.(Socket.java:244)
  71. at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
  72. at com.mysql.management.driverlaunched.ServerLauncherSocketFactory.connect(ServerLauncherSocketFactory.java:74)
  73. at com.mysql.jdbc.MysqlIO.(MysqlIO.java:308)
  74. ... 30 more
  75.  
  76.  
  77. See the server log for full output.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement