Error fe-ssh.sh - Permission denied - unable to fork when cloning Git repository
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
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
Problem
Fisheye/Crucible is unable to clone a Git repository over SSH and the following error appears in the atlassian-fisheye-YYYY-MM-DD.log
:
Mon Jan 18 14:22:40 GMT-500 2016: Unable to clone remote repository: ssh://git@bitbucket.company.com:7999/project/repo.git - [fatal: cannot exec '/opt/atlassian/fisheye/fecru-3.9.0/bin/fe-ssh.sh': Permission denied, fatal: unable to fork] - Cloning into bare repository 'clone'...
Cause
The user running Fisheye/Crucible does not have permission to execute the fe-ssh.sh
script.
Resolution
Set the permissions correctly on <FISHEYE_INSTALLATION>/bin/fe-ssh.sh
so that the user running Fisheye/Crucible can execute the file. This can likely be accomplished with chmod +x fe-ssh.sh
.