Advertisement
Guest User

Error starting openmrs

a guest
Dec 14th, 2021
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.29 KB | None | 0 0
  1. OpenJDK 64-Bit Server VM warning: ignoring option PermSize=192m; support was removed in 8.0
  2. OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=768m; support was removed in 8.0
  3. Dec 14, 2021 7:31:49 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
  4. WARNING: Problem with directory [/usr/share/tomcat7/common/classes], exists: [false], isDirectory: [false], canRead: [false]
  5. Dec 14, 2021 7:31:49 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
  6. WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [false], isDirectory: [false], canRead: [false]
  7. Dec 14, 2021 7:31:49 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
  8. WARNING: Problem with directory [/usr/share/tomcat7/server/classes], exists: [false], isDirectory: [false], canRead: [false]
  9. Dec 14, 2021 7:31:49 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
  10. WARNING: Problem with directory [/usr/share/tomcat7/server], exists: [false], isDirectory: [false], canRead: [false]
  11. Dec 14, 2021 7:31:49 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
  12. WARNING: Problem with directory [/usr/share/tomcat7/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
  13. Dec 14, 2021 7:31:49 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
  14. WARNING: Problem with directory [/usr/share/tomcat7/shared], exists: [false], isDirectory: [false], canRead: [false]
  15. Dec 14, 2021 7:31:49 PM org.apache.coyote.AbstractProtocol init
  16. INFO: Initializing ProtocolHandler ["http-bio-8080"]
  17. Dec 14, 2021 7:31:49 PM org.apache.catalina.startup.Catalina load
  18. INFO: Initialization processed in 214 ms
  19. Dec 14, 2021 7:31:49 PM org.apache.catalina.core.StandardService startInternal
  20. INFO: Starting service Catalina
  21. Dec 14, 2021 7:31:49 PM org.apache.catalina.core.StandardEngine startInternal
  22. INFO: Starting Servlet Engine: Apache Tomcat/7.0.52 (Ubuntu)
  23. Dec 14, 2021 7:31:49 PM org.apache.catalina.startup.HostConfig deployDescriptor
  24. INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/docs.xml
  25. Dec 14, 2021 7:31:49 PM org.apache.catalina.startup.HostConfig deployDescriptor
  26. INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/manager.xml
  27. Dec 14, 2021 7:31:49 PM org.apache.catalina.startup.HostConfig deployDescriptor
  28. INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/host-manager.xml
  29. Dec 14, 2021 7:31:49 PM org.apache.catalina.startup.HostConfig deployWAR
  30. INFO: Deploying web application archive /var/lib/tomcat7/webapps/openmrs.war
  31. WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2113) |2021-12-14 19:31:52,930| Unable to find a runtime properties file at /var/lib/tomcat7/openmrs-runtime.properties
  32. WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2113) |2021-12-14 19:31:52,935| Unable to find a runtime properties file at /var/lib/tomcat7/openmrs-runtime.properties
  33. INFO - Listener.contextInitialized(174) |2021-12-14 19:31:52,935| Using runtime properties file: /usr/share/tomcat7/.OpenMRS/openmrs-runtime.properties
  34. ERROR - Listener.contextInitialized(205) |2021-12-14 19:31:57,101| Got exception while starting up:
  35. 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
  36. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:627)
  37. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:583)
  38. at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:249)
  39. at org.openmrs.web.Listener.setupNeeded(Listener.java:222)
  40. at org.openmrs.web.Listener.contextInitialized(Listener.java:180)
  41. at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5019)
  42. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5513)
  43. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  44. at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
  45. at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
  46. at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
  47. at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
  48. at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
  49. at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  50. at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  51. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  52. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  53. at java.lang.Thread.run(Thread.java:748)
  54. 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
  55. at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:358)
  56. at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:612)
  57. ... 17 more
  58. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  59. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  60. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  61. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  62. at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  63. at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
  64. at com.mysql.jdbc.Util.getInstance(Util.java:386)
  65. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015)
  66. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
  67. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975)
  68. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920)
  69. at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2395)
  70. at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2316)
  71. at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:834)
  72. at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
  73. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  74. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  75. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  76. at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  77. at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
  78. at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416)
  79. at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:347)
  80. at java.sql.DriverManager.getConnection(DriverManager.java:664)
  81. at java.sql.DriverManager.getConnection(DriverManager.java:247)
  82. at org.openmrs.util.DatabaseUpdater.getConnection(DatabaseUpdater.java:420)
  83. at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:355)
  84. ... 18 more
  85. Caused by: java.sql.SQLException: Access denied for user 'openmrs_user'@'localhost' (using password: YES)
  86. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1086)
  87. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
  88. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
  89. at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:928)
  90. at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1750)
  91. at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1290)
  92. at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2493)
  93. at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2334)
  94. ... 32 more
  95. WARN - OpenmrsUtil.getRuntimePropertiesFilePathName(2113) |2021-12-14 19:31:57,294| Unable to find a runtime properties file at /var/lib/tomcat7/openmrs-runtime.properties
  96. Dec 14, 2021 7:32:01 PM org.apache.catalina.startup.HostConfig deployDirectory
  97. INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
  98. Dec 14, 2021 7:32:01 PM org.apache.coyote.AbstractProtocol start
  99. INFO: Starting ProtocolHandler ["http-bio-8080"]
  100. Dec 14, 2021 7:32:01 PM org.apache.catalina.startup.Catalina start
  101. INFO: Server startup in 11702 ms
  102.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement