Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Git was not found on the PATH. Install Git 2.31.0+, and restart.

Naveen Majumdar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 2, 2023

getting a Fatal error and showing  Sidecar is unavailable. 

Based on KB article reference :

https://confluence.atlassian.com/bitbucketserver/troubleshoot-sidecar-startup-1189490619.html?utm_campaign=in-app-help&utm_medium=in-app-help&utm_source=stash 

this is what I found in Mesh logs. where it is mentioned "Git was not found on the PATH. Install Git 2.31.0+, and restart".

 

2023-03-03 05:55:27,250 INFO  [main] - c.a.b.mesh.boot.MeshApplication Starting MeshApplication using Java 17.0.6 on 170-187-233-6.ip.linodeusercontent.com with PID 7719 (/opt/atlassian/bitbucket/atlassian-bitbucket-8.8.2/app/WEB-INF/mesh/mesh-app.jar started by atlbitbucket in /bitbucket/mesh)

2023-03-03 05:55:27,256 INFO  [main] - c.a.b.mesh.boot.MeshApplication The following 1 profile is active: "sidecar"

2023-03-03 05:55:28,234 INFO  [main] - c.a.b.m.l.DefaultHomeSubdirectoryResolver Using '/bitbucket/caches' as the 'caches' directory

2023-03-03 05:55:29,742 WARN  [main] - o.s.c.a.AnnotationConfigApplicationContext Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authenticationClientInterceptor' defined in com.atlassian.bitbucket.mesh.grpc.MeshGrpcWiring$AuthenticationWiring: Unsatisfied dependency expressed through method 'authenticationClientInterceptor' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authenticator' defined in com.atlassian.bitbucket.mesh.grpc.MeshGrpcWiring$AuthenticationWiring: Unsatisfied dependency expressed through method 'authenticator' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationConfig' defined in com.atlassian.bitbucket.mesh.MeshCoreWiring: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.bitbucket.mesh.config.ApplicationConfig]: Factory method 'applicationConfig' threw exception; nested exception is java.lang.IllegalStateException: Git was not found on the PATH. Install Git 2.31.0+, and restart.

2023-03-03 05:55:29,775 ERROR [main] - o.s.boot.SpringApplication Application run failed

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authenticationClientInterceptor' defined in com.atlassian.bitbucket.mesh.grpc.MeshGrpcWiring$AuthenticationWiring: Unsatisfied dependency expressed through method 'authenticationClientInterceptor' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authenticator' defined in com.atlassian.bitbucket.mesh.grpc.MeshGrpcWiring$AuthenticationWiring: Unsatisfied dependency expressed through method 'authenticator' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationConfig' defined in com.atlassian.bitbucket.mesh.MeshCoreWiring: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.bitbucket.mesh.config.ApplicationConfig]: Factory method 'applicationConfig' threw exception; nested exception is java.lang.IllegalStateException: Git was not found on the PATH. Install Git 2.31.0+, and restart.

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 6, 2023

Welcome to the Atlassian Community!

This is what it says it is, there is no install of git in the path the environment has.  

If you do have git installed, then look at the path variable in the environment Bitbucket is running in (it won't include your git install). 

If you are not sure, then try logging into the server and running git on the command line, ideally "git -v" which should confirm what version you have there (hopefully 2.31.0+)

If you have a decent OS, then try "which git", which will return the location of the one you just asked for the version of, and that should tell you what to add to the environment path.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events