After updating Confluence to version 7.4.17 to resolve the vulnerability CVE-2022-26134, we get the error message "Database connection failed." We've downloaded mysql-connector-java-5.1.48-bin.jar and placed it in /WEB-INF/lib/ and restarted Confluence, but the issue persists. We've made sure MySQL is running on the server and that we can log into the database with the credentials specified in confluence.cfg.xml.
What further troubleshooting steps can we take to determine why Confluence is experiencing this error after the upgrade?
@Drew Hilliard Welcome to the Atlassian Community
This can be caused by a lot of things. Here is the Atlassian KB on DB connectivity issues that you should step through. https://confluence.atlassian.com/confkb/startup-check-confluence-won-t-start-as-it-cannot-connect-to-a-database-953127209.html
I have also seen this issue caused by the Java Version. Make sure that the version you are using is compatible with Confluence and the connector and that there is not a conflict in the jre. https://confluence.atlassian.com/doc/change-the-java-vendor-or-version-confluence-uses-962342397.html#:~:text=Go%20to%20%3E%20General%20Configuration%20%3E%20System,using%20the%20expected%20Java%20version.
Hi @Brant Schroeder Thanks for the welcome and the links. I've run through the checks and here are my takeaways:
I'm thinking that something about the upgrade to 7.4.17 is breaking the connection to the database, but I'm at a loss as to where to look further.
Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events