Bitbucket Fails To Start on Windows, Please add git version 1.7.6 or higher to the PATH
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
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-2536 - msysgit installed on Windows, still get "git was not found on the PATH for Stash"
Resolution
Modify the %PATH% environment variable so the path <...>\Git\bin
comes before <...>\Git\cmd
.