Git was not found Bitbucket

Hello, I get an error after trying to upgrade from Stash 3.10 to Bitbucket 4.14.11

The following problem occurred, which prevents Atlassian Bitbucket from starting:
Git was not found on the PATH for Bitbucket. Install Git 1.8.0+, excluding 1.8.4.3, 2.0.2, 2.0.3, and restart Bitbucket.

I am running RHEL. Bitbucket should be running under bitbucket user.

I have found and read all related topics, but non of them has actual answer.

[root@server1]# git --version
git version 2.9.3
[root@server1]# which git
/opt/rh/rh-git29/root/usr/bin/git
[root@server1]# su bitbucket
[bitbucket@server1]$ git --version
git version 2.9.3
[bitbucket@server1]$ which git
/opt/rh/rh-git29/root/usr/bin/git
[bitbucket@server1]$ echo $PATH
/opt/rh/rh-git29/root/usr/bin:/opt/rh/rh-git29/root/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin
[bitbucket@server1]$

 

1 answer

1 accepted

Funny, Stash was working without this link

ln -s /opt/rh/rh-git29/root/usr/bin/git /usr/bin/git

solution Source 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

2,374 views 9 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