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:578)
- at org.openmrs.util.DatabaseUpdater.updatesRequired(DatabaseUpdater.java:257)
- 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:4205)
- at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)
- at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
- at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
- at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
- at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
- at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
- at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
- at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)
- at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
- at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
- at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
- at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
- at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
- at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
- at org.apache.catalina.core.StandardService.start(StandardService.java:525)
- at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
- at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- at java.lang.reflect.Method.invoke(Unknown Source)
- at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
- at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
- 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:337)
- at org.openmrs.util.DatabaseUpdater.getUnrunDatabaseChanges(DatabaseUpdater.java:564)
- ... 27 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(Unknown Source)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
- at java.lang.reflect.Constructor.newInstance(Unknown Source)
- 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(Unknown Source)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
- at java.lang.reflect.Constructor.newInstance(Unknown Source)
- 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(Unknown Source)
- at java.sql.DriverManager.getConnection(Unknown Source)
- at org.openmrs.util.DatabaseUpdater.getConnection(DatabaseUpdater.java:394)
- at org.openmrs.util.DatabaseUpdater.getLiquibase(DatabaseUpdater.java:334)
- ... 28 more
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'openmrs'
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
- at java.lang.reflect.Constructor.newInstance(Unknown Source)
- 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:1030)
- 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)
- ... 41 more
- See the server log for full output.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement