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
Community Members
Community Events
Community Groups

git-http-backend git clone problem


When we try to clone the repo using the git tool, we get the following error. The git version we are using is 2.33.1, but there is a problem.


2021-11-02 14:26:26,703 ERROR [http-scmrequest-handler:thread-1] @1RWC27Hx866x126x0, "GET /scm/test/test1.git/info/refs HTTP/1.1" c.a.s.i.s.g.p.h.GitSmartExitHandler TEST/test1[3]: Read request from failed
The following was written to stderr:
git: 'http-backend' is not a git command. See 'git --help'.
com.atlassian.utils.process.ProcessException: Non-zero exit code: 1
at com.zaxxer.nuprocess.internal.BasePosixProcess.onExit(
at com.zaxxer.nuprocess.linux.ProcessEpoll.handleExit(
at com.zaxxer.nuprocess.linux.ProcessEpoll.cleanupProcess(
at com.zaxxer.nuprocess.linux.ProcessEpoll.process(
at com.zaxxer.nuprocess.linux.LinProcessFactory.runProcess(
at com.atlassian.stash.internal.scm.git.protocol.http.GitSmartRequest.handleRequest(
at com.atlassian.stash.internal.scm.git.protocol.http.HttpOtherRead.handleRequest(
at com.atlassian.stash.internal.scm.ThrottledScmRequestFactory$AbstractThrottledScmRequest.handleRequest(
at com.atlassian.stash.internal.scm.DefaultHttpScmRequestExecutor.runSync(
at com.atlassian.stash.internal.scm.DefaultHttpScmRequestExecutor.access$200(
at com.atlassian.stash.internal.scm.DefaultHttpScmRequestExecutor$
at com.atlassian.stash.internal.request.DefaultRequestManager.lambda$wrapForAsync$0(
at java.util.concurrent.ThreadPoolExecutor.runWorker(
... 1 frame trimmed

2 answers

@Obss Sysadmin 

Just did verify that, it is possible to use git 2.33.1 together with Bitbucket 7.15.1 without any issues, so most probably the git version you had installed was not able to find the git-http-backend (so the suggested workaround should help like described in the KB article)

Screenshot 2021-11-05 at 10.28.17.png



The problem is that bitbucket version 7.15.1 does not support git version 2.33. I fixed the problem with the following commands. Hope it helps those who encounter this problem.

sudo apt-get remove git

sudo apt-get remove --auto-remove git
sudo apt-get purge git

sudo apt-get purge --auto-remove git
apt install liberror-perl git-man=1:2.25.1-1ubuntu3.2 git=1:2.25.1-1ubuntu3.2

Suggest an answer

Log in or Sign up to answer
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...

2,263 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you