Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket Data Center Mirror Won't Connect to Main Server

Olimpiu Furdui
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 16, 2020

Hi everyone,

I'm currently evaluating how the Bitbucket Data Center mirror works, so that we can then order a license for our company, but it seems all attempts to get it to work have failed.

Both the main server [https://192.168.140.137:8443] and the mirror [https://192.168.140.138:8443] are running under Ubuntu 20.04, are now using HTTPS and the ssl-keystores are available on both.

I'm using self-signed certificates on both the server and the mirror and I imported them into 2 keystores on the mirror and server respectively, with these commands: 

keytool -import -alias $alias -trustcacerts -file file.pem -keystore /var/atlassian/application-data/bitbucket/shared/config/ssl-keystore

AND

keytool -import -alias $alias -trustcacerts -file file.pem -keystore /opt/atlassian/bitbucket/7.6.0/jre/lib/security/cacerts

 

The main server is running properly.

 

Before starting the mirror service (systemctl start atlbitbucket), I've edited the bitbucket.properties file manually to switch to https (according to Bitbucket documentation) and to point to the generated keystore.

 

However, the mirror doesn't connect with the main server and there is this error message in the log:

*****************************************

"... java.security.SignatureException: Signature does not match ..."

*****************************************

 

Any idea where to start debugging this?

 

Thank you.

 

 

1 answer

1 accepted

0 votes
Answer accepted
Olimpiu Furdui
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 18, 2020

Ok, problem solved in the meantime by first exporting the certificates on primary and mirror with this command from ssl-keystore:

keytool -export -alias $alias -keystore $keystore -rfc -file certificate.cert

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events