java.io.IOException - Cannot run program "git": java.io.IOException: error=2, No such file or directory

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs 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

When the following ERROR appears when trying to add a gitrepository:

1 2 3 4 5 6 7 8 9 Exception executing command "git ls-remote -h <REPO> " java.io.IOException: Cannot run program "git": java.io.IOException: error=2, No such file or directory com.atlassian.fisheye.plugins.scm.utils.process.ProcessException - java.io.IOException: Cannot run program "git": java.io.IOException: error=2, No such file or directory java.io.IOException - Cannot run program "git": java.io.IOException: error=2, No such file or directory java.io.IOException - java.io.IOException: error=2, No such file or directory

Cause

Fisheye can't find the GIT Executable: http://confluence.atlassian.com/display/FISHEYE/Git+Client

Resolution

Install git on the Server where Fisheye is installed:

  • Debian Like:

    apt-get install git

  • RedHat Like:

    yum install git

Updated on April 11, 2025

Still need help?

The Atlassian Community is here for you.