Creating a test environment with PROD dump.
Asked by Parveen Sangwan:

Hi Support team,

I am Parveen, I am restoring Confluence Prod dump on our UAT environment. But i am getting bellow error.

" 2021-12-09 04:23:28,430 ERROR \[Catalina-utility-1\] \[confluence.impl.setup.DefaultBootstrapDatabaseAccessor\] getBootstrapData Unable to open database connection during bootstrap.  
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

at java.base/java.lang.Thread.run(Unknown Source)  
Caused by: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake  
at java.base/sun.security.ssl.SSLSocketImpl.handleEOF(Unknown Source)  
at java.base/sun.security.ssl.SSLSocketImpl.decode(Unknown Source)  
at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)  
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)  
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)  
at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:188)  
... 36 more  
Suppressed: java.net.SocketException: Broken pipe (Write failed)  
at java.base/java.net.SocketOutputStream.socketWrite0(Native Method)  
at java.base/java.net.SocketOutputStream.socketWrite(Unknown Source)  
at java.base/java.net.SocketOutputStream.write(Unknown Source)  
at java.base/sun.security.ssl.SSLSocketOutputRecord.encodeAlert(Unknown Source)  
at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)  
at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)  
... 39 more  
Caused by: java.io.EOFException: SSL peer shut down incorrectly"

WHAT I DID

1. Restored mysql db backup and gave all the permission to confluence user (db user)

2.Changed site URL in s SERVER.XML. Changed DB host in confluence.cfg.xml

WE HAVE LINUX ENVIRONMENT AND SSL IS IMLEMENTED ON UAT SERVER ALSO.


Answers:
author: Andrew Wolpers
body: A few thoughts, assuming you followed the networking/basic troubleshooting steps here: <https://confluence.atlassian.com/confkb/startup-check-confluence-won-t-start-as-it-cannot-connect-to-a-database-953127209.html>

* Did you also remember to add the MySQL driver mentioned here, in step 5? <https://confluence.atlassian.com/doc/database-setup-for-mysql-128747.html>
* The SSL errors make me wonder if there's some proxy/networking stuff that isn't functioning correctly. 'Communications link failure' would make me want to check that out.

Can you get the application running without SSL and then verify it's communicating correctly with the db?


author: Florian PEREZ
body: Hello,

I think I can help on this one.

First I see that you miss attachments to be able to get the full instance working.

For a restore of confluence you need the dump and the attachment folder.

Second this seems related on ssl (on certificates) not on the real configuration, so you should look into the cacerts if something is missing.

If think the application try to connect on the other platform and thus is why you get this problem.

Be careful when restoring you should try to find every link possible to the production and break them to avoid a big catastrophic situation!


Tags: cloud

confluence-cloud