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.

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?

2 answers

4 votes

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-scm-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?

I was able to just move the binaries for git to the /usr/bin/ directory and that worked.

This property has a typo or it was changed... it is now

 

plugin.bitbucket-git.path.executable=/opt/git/bin/git
0 votes

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 

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

641 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot