Git was not found on the PATH for Bitbucket. Install Git 1.8.0+, excluding 1.8.4.3, 2.0.2, 2.0.3, and restart Bitbucket.
Since we are running rhel 6.5 I have to install git from source
I installed version 2.5.0 in a different directory other than /usr/bin/
Do I need to symlink this or move it or what?
Hi Daniel,
One approach to solve this is to tell Bitbucket Server exactly where your Git binary is. You can do this by setting the following property in your bitbucket.properties file (use your path in place of the example):
plugin.bitbucket-git.path.executable=/usr/local/bin/git
If you do not have an existing bitbucket.properties file (you will if you have configured an external database), it can be created in the shared folder of your Bitbucket Server home directory.
More information on the bitbucket.properties file can be found here: https://confluence.atlassian.com/display/BitbucketServer/Bitbucket+Server+config+properties
I have created the properties file and added plugin.bitbucket-scm-git.path.executable=path to my git still getting the same error.. is it getting the git location from the start script?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was able to just move the binaries for git to the /usr/bin/ directory and that worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This property has a typo or it was changed... it is now
plugin.bitbucket-git.path.executable=/opt/git/bin/git
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Jason, nice catch. I've corrected the answer with the correct property you provided.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel,
This sounds like some issue related to variables from your Linux. Check if your linux is looking for the version 2.5.0 or an older one. Try this:
which git
If this doesn't returns the git from your /usr/bin, then probably your OS is looking for an older version. You probably has a broken symbolic link. If is the case, you can re-do the symbolic likn to point to the new git version or fix that into your path environment.
Cheers,
Renato Rudnicki
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.