Bitbucket Server Fails To Start on Windows, Please add git version 1.7.6 or higher to the PATH
Symptoms
mysysGit is installed on Windows but Bitbucket Server fails to start with the following message:
2012-07-10 14:31:33,656 ERROR [main] c.a.s.i.scm.PluginScmClientProvider git was not found on the PATH for Bitbucket Server. Please add git version 1.7.6 or higher to the PATH and restart Bitbucket Server.
Cause
The mysysGit installer modifies the environment variable %PATH% such that <...>\Git\cmd
precedes <...>\Git\bin
and Bitbucket Server is currently configured to check for Git using "git version
" which calls <...>\Git\cmd\git.cmd
and fails. The following bug has been raised to correct the call:
- BSERV-2536Getting issue details... STATUS
Resolution
Modify the %PATH% environment variable so the path <...>\Git\bin
comes before <...>\Git\cmd
.