Unable to clone Stash Repository with HTTP transport over haproxy using Windows Git clients

Troubleshooting Git

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community


When using HA Proxy in front of Stash and trying to clone a Stash Repository over HTTP the process fails with the following ERROR:

$ git clone
Cloning into 'myrepo'...
Username for ';: <username> Password for 'http://&lt;username&gt;@;:
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 <<<


This happens because the HA Proxy is missing a configuration on the config file, the mode http :

listen http-in
       bind *:80
       server localhost-stash-http localhost:7990


You must add the configuration mentioned above to your config file:

listen http-in
       bind *:80
       mode http
       server localhost-stash-http localhost:7990

After that restart the HA Proxy Daemon and try again.

Help us improve!

Unknown macro: {kbsurvey}

Last modified on Mar 30, 2016

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.