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.
To resolve the issue of "Unable to connect to the primary server" when setting up smart mirroring in Bitbucket Data Center, consider the following troubleshooting steps:
Check Network Connectivity: Ensure that both the primary server and the mirror server are running and connected to the network. You can verify this by pinging each server from the other to confirm they can communicate.
Firewall and Network Configuration: Verify that there are no firewalls or network devices blocking the connection between the primary server and the mirror. Both incoming and outgoing connections need to be allowed for the specific ports used by Bitbucket.
Protocol and Port Configuration: Ensure that the correct protocol (HTTPS) and ports are configured in the bitbucket.properties file for both the primary and mirror servers. The configuration should include:
server.port=7990
server.proxy-name=<your-domain>
server.secure=true
server.scheme=https
server.proxy-port=443
SSL Configuration: Check that the SSL certificates are correctly configured and valid. The certificate's common name (CN) must match the host name, and it should be installed in the correct Java trust store.
Mirror Base URL: Ensure that the mirror base URL is correctly set. If it was set incorrectly during the initial setup, you might need to delete the mirror and set it up again.
Logs and Error Messages: Review the logs on both the primary and mirror servers for any error messages that might provide more insight into the connection issue.
For more detailed troubleshooting, you can refer to the https://confluence.atlassian.com/bitbucketserver/troubleshoot-bitbucket-smart-mirroring-776640367.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Ganesh,
Have you:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.