Unable to clone Bitbucket Server Repository with HTTP transport over haproxy using Windows Git clients
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
When using HA Proxy
in front of Bitbucket Server
and trying to clone a Bitbucket Server Repository
over HTTP
the process fails with the following ERROR
:
1
2
3
4
5
6
7
8
$ git clone http://192.168.184.132/scm/myrepo.git
Cloning into 'myrepo'...
Username for 'http://192.168.184.132': <username> Password for 'http://<username>@192.168.184.132':
remote: Counting objects: 3497, done.
remote: Compressing objects: 100% (1264/1264), done.
remote: Total 3497 (delta 2150), reused 3473 (delta 2138) Receiving objects: 100% (3497/3497), 1.19 MiB, done.
Resolving deltas: 100% (2150/2150), done.
>>> error: RPC failed; result=18, HTTP code = 200 <<<
Cause
This happens because the HA Proxy is missing a configuration on the config file
, the mode http
:
1
2
3
listen http-in
bind *:80
server localhost-bitbucket-http localhost:7990
Resolution
You must add the configuration mentioned above to your config file
:
1
2
3
4
listen http-in
bind *:80
mode http
server localhost-bitbucket-http localhost:7990
After that restart the HA Proxy Daemon
and try again.
If you want to use HAPRoxy for SSH as well, refer to the guide below:
Was this helpful?