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.