gitlab-runner only run pipeline when `gitlab-runner run` is on

I registered a runner on local gitlab environment. The runner will only execute the pipeline when there is a process is running the command of gitlab-runner run.

Once the process stops running the command, jobs will remain pending.

It is a linux(ubuntu) runner with shell executor, I tried to run systemctl start gitlab-runner && systemctl enable gitlab-runner && systemctl restart gitlab-runner but seems not work.

One of the thing is that gitlab-runner run will pick up jobs only being runed not as root.

I’m having the same issue… That started happening after our local gitlab server was updated to v16.x

Following these instructions solved it !!!