Git was not found


I found this question which is quite the same as mine, but it seems that we don't have the same context.

I have installed Stash and was working correctly for some months. It is installed on a local machine to make tests before launching it on a real server. I picked option 2 during installation so that my PATH was added the path to Git/cmd.

I went on vacation, during this time no one did anything on the server, and when I came back Stash raised the following error:


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. Install Git 1.7.6+, excluding, and restart Stash.


I tried to modify my PATH environment var, tried to uninstall / install again Git, but no way, it doesn't work... I try to type "git --version" in my windows command prompt, and I alsways get "fatal: open /dev/null or dup failed: no such file or directory". I get the same message on Git bash.

So it seems that it is an environment issue, but I can't find out what it is ! Maybe the command prompt is corrupted? Does anyone has already seen that issue ?

Can anyone help or guide me?



1 answer

0 votes

Sounds like someone HAS done something to your server - they've probably re-installed git or upgraded it and answered 1 or 2 for the installation question.  Or they've messed with the path.

You'll need to locate the correct git.exe on your system and adjust your path so that it is the first one to be included (ideally, I'd bin any others found too)

Thanks Nic for the answer, but I've already tried all that stuff... Trying to launch git.exe from its proper folder, no change... Tested all combinations of paths added to environment PATH... no way... :/

And I'm the only one to connect to that machine, so nobody should have been able to update anything. Also it was during holidays so nobody was in and working on it. I was more thinking about some Windows updates that changed something, or stuff like that...

Well, if you're sure there was no access, a windows update is about the only option. Sadly, because it's Windows and they botch so much, I've got no idea what they could have done to break it!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

244 views 0 12
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