Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The following error occurred at startup:
- 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
- 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
- at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:631)
- at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:590)
- at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:262)
- at org.openmrs.web.Listener.setupNeeded(Listener.java:170)
- at org.openmrs.web.Listener.contextInitialized(Listener.java:142)
- at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
- at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
- at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
- at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
- at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
- at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095)
- at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1930)
- at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
- at java.util.concurrent.FutureTask.run(FutureTask.java:262)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
- at java.lang.Thread.run(Thread.java:745)
- 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
- at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:368)
- at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:617)
- ... 17 more
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
- at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
- at com.mysql.jdbc.Util.getInstance(Util.java:381)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:984)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926)
- at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2364)
- at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:773)
- at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:46)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
- at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
- at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:352)
- at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)
- at java.sql.DriverManager.getConnection(DriverManager.java:571)
- at java.sql.DriverManager.getConnection(DriverManager.java:215)
- at org.openmrs.util.DatabaseUpdater.getConnection(DatabaseUpdater.java:427)
- at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:365)
- ... 18 more
- Caused by: java.sql.SQLException: Access denied for user 'openmrs_user'@'localhost' (using password: YES)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
- at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3536)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3468)
- at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:917)
- at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3974)
- at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1282)
- at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2292)
- ... 31 more
- See the server log for full output.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement