getting a Fatal error and showing Sidecar is unavailable.
Based on KB article reference :
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.