Hi
I have juste upgraded from 3.10.2 to 4.5.1-1 (on Linux Centos 7) and I have this error :
Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class is
com.mysql.cj.jdbc.Driver’. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
Database setup or configuration error: Please verify your database settings and check the logs/error.log file for detailed error messages.
java.lang.IllegalArgumentException: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: java.sql.SQLIntegrityConstraintViolationException: integrity constraint violation: unique constraint or index violation; OFPRESENCE_PK table: OFPRESENCE
at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:786)
at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:499)
at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:216)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:92)
at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56)
Caused by: java.sql.SQLException: ConnectionManager.getConnection() failed to obtain a connection after 11 retries. The exception from the last attempt is as follows: java.sql.SQLIntegrityConstraintViolationException: integrity constraint violation: unique constraint or index violation; OFPRESENCE_PK table: OFPRESENCE
at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager.java:152)
at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:776)
… 9 more
Erreur au démarrage du serveur. Veuillez vérifier les journaux pour plus d’information.
Server halted
Thanks for any advice
Karim