Gitlab Runner Fails when Run as service but works with run command

Replace this template with your information

Describe your question in as much detail as possible:

When I run my GitLab Runner with the command like below, it works without any problem.

sudo gitlab-runner run

But when I register it as a service like below, it gives me an error

sudo gitlab-runner install --user=gitlab-runner
sudo gitlab-runner start

Preparing environment
( on master-1…
( Job failed (system failure): prepare environment: exit status 1. Check Shells supported by GitLab Runner | GitLab for more information

The CI configuration file which I have is

- General**
- echo Hello World 61**

I removed .bash_logout file but it didn’t helped