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

This widget could not be displayed.

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?

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

70 views 2 3
Join discussion

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