Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to resolve git error - git: 'http-backend' is not a git command.

Ed Cook May 27, 2022

I am trying to upgrade git from 2.19.1 to 2.35.1 on bitbucket server 7.21.0 running on linux

when I try to clone from the test bitbucket instance I upgraded to git 2.35.1 I get an error "fatal: unable to access 'http://10.148.16.111:7990/scm/dev/inrush.git/': The requested URL returned error: 500"

 

the bitbucket log shows the following

2022-05-27 16:35:08,871 ERROR [http-nio-7990-exec-10] @1AC2ZMCx995x82x0 10.148.22.245 "GET /scm/dev/inrush.git/info/refs HTTP/1.1" c.a.c.m.a.ApplicationServiceGeneric Directory 'Dev Internal Jira (6717441)' is not functional during authentication of 'test'. Skipped.

2022-05-27 16:35:08,917 WARN  [http-scmrequest-handler:thread-2] test @1AC2ZMCx995x82x0 10.148.22.245 "GET /scm/dev/inrush.git/info/refs HTTP/1.1" c.a.s.i.s.g.p.http.CgiStdoutHandler Unexpected EOF copying SCM hosting process output to response

2022-05-27 16:35:08,919 ERROR [http-scmrequest-handler:thread-2] test @1AC2ZMCx995x82x0 10.148.22.245 "GET /scm/dev/inrush.git/info/refs HTTP/1.1" c.a.s.i.s.g.p.h.GitSmartExitHandler DEV/inrush[54]: Read request from 10.148.22.245 failed: com.atlassian.utils.process.ProcessException: Non-zero exit code: 1

The following was written to stderr:

git: 'http-backend' is not a git command. See 'git --help'.

1 answer

0 votes
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 29, 2022

Hi Ed,

This usually means that the git binary you're using was not compiled with the HTTP extensions enabled. You'll either need to recompile it yourself or get one of the vanilla binaries from git-scm.com

Cheers,

Christian

Premier Support Engineer

Atlassian

Mousa Ebrahimi August 14, 2022

Hi @Ed Cook 

I am having similar issue to what you are experiencing, wanted to see if you end up compiling Git with HTTP extensions? Or found a package that came with extensions? Appreciate if you share your fix for this.

Thank you

Moses

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.21.0
TAGS
AUG Leaders

Atlassian Community Events