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
00:00
(http://192.168.1.19/root/gitlab-ci-cd-raspberry-pi-listener/-/jobs/35#L7)Running on master-1…
(http://192.168.1.19/root/gitlab-ci-cd-raspberry-pi-listener/-/jobs/35#L9)ERROR: 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

demo_job_1:
tags:
- General**
script:
- echo Hello World 61**

I removed .bash_logout file but it didn’t helped