I am hoping to get some help with having Bitbucket recognize the correct version of Git installed on my server. I am running CentOS 6, which came with an old version of Git (1.7.1). After installing Bitbucket Server and beginning the process of registering my installation, I get the error message ("A fatal error has occurred ... You are using Git 1.7.1. The minimum supported version is 2.2.0.)
To get around this, I installed Git 2.9.3 using yum and enabled it through .bashrc and SCL. When I query in bash for which Git version is active (which git), I get in response: /opt/rh/rh-git29/root/usr/bin/git. But even after a restart of the Bitbucket service, I still receive the error that my version of git is too old.
Additionally, my PATH variable includes the Git 2.9.3 directory.
Can anyone provide guidance on how to fix this issue?
Thanks in advance.
Can you run `git --version`? There may an error in the .bashrc entry or something else causing it to reference the old version.
To confirm - are you running this as the same user the Bitbucket service is running as? Could be a user specific issue.
CCM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A quick (dirty) fix if it’s urgent/outage is to find the location of your git 1.7.1 binary, move it out of the way and symlink that location to your 2.9.3 binary.
CCM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Creating a symbolic link over the 1.7.1 version of git did work. It's not the most beautiful fix, but it certainly works. Thanks for the advise!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When all else fails, change your definition of done :)
Glad it helped.
CCM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.