git was not found on the PATH for Stash

When I try to use stash I get the message

'A fatal error has occurred

The following problem occurred which prevents Atlassian Stash from starting correctly:

git was not found on the PATH for Stash. Please add git version 1.7.6 or higher to the PATH and restart Stash.'

But I have git 1.7.11.4 installed and in the PATH. PATH is exported and git should be available for Stash. Only one version of git is installed. I've restarted Tomcat several times and reinstalled git with empty home directory and database. The result is the same.

2 answers

Hi, is git installed by the same user running Stash? I'm just wondering if the PATH variable does get to Stash. Also make sure that the user running Stash has execute permissions to the git path.

Also, what version of Stash are you using?

Hi,

This error can happens if Stash user has no rights to run the git command.

You can create a simbolic link of git binary on /bin folder, as the /bin folder helds all binaries that can be executed by all users.

If you already has the GIT binary on /bin give it 755 permission.

Regards.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 9 hours ago in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

149 views 0 5
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