Git was not found on the PATH for Bitbucket

I develop a plugin for Bitbucket server. For example, I do not receive an error when working on versions 5.16.0 or 6.10.17, but I receive the following error when working on version 7.6.0;

A fatal error has occurred
The following problem occurred, which prevents Atlassian Bitbucket from starting:
Git was not found on the PATH for Bitbucket. Install Git 2.11.0+, excluding 2.12.2, and restart Bitbucket.

What is the reason for this and how can I solve it?

If you type “git version” on your machine what does it say?

Also, are you using “atlas-run” to bring up Bitbucket ?