Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,359,795
Community Members
 
Community Events
168
Community Groups

Unable to connect to the primary server.

I have setup bitbucket data-center on my local virtual machine using HAProxy.
URL : https://192.***.**.51 ( not hosted yet )

This instance running properly under haproxy.

Now when I try to setup smart mirroring( for that setup new mirror instance on other virtual machine URL= https://192.***.**.52 ) .

In the setup section when I try to add Primary server URL = https://192.***.**.51 and click on submit configuration.

It's giving me error that Unable to connect to the primary server. 

So can you please help me if I am missing something.

2 comments

Alyss Atlassian Team Mar 05, 2018

Hey Ganesh,

Have you:

  • Enabled SSH on the primary server?
  • Installed/setup an SSH client on the mirror?
  • Installed a valid SSL (signed by CA) on the primary server and mirror?
  • Enabled SSH on the primary server? -> Yes enable SSH on primary server.
  • Installed/setup an SSH client on the mirror? -> Yes
  • Installed a valid SSL (signed by CA) on the primary server and mirror?-> Yes installed both URL running using https://192.***.***.51/52

    In log on mirror node I am getting following error:
  • Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387)
    at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
    at sun.security.validator.Validator.validate(Validator.java:260)
    at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
    at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:281)
    at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:136)
    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1496)
    ... 17 common frames omitted
    Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
    at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
    at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
    ... 23 common frames omitted

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

3,449 views 3 10
Read article

Atlassian Community Events