You probably registered it using sudo because the top example on the documentation page has sudo as it’s for Linux but Mac does not. Here is how to fix it…

The fix

You need to get rid of the config. Easiest way to do that is to uninstall using sudo since that’s what caused this mess. Then install as a standard user.

sudo gitlab-runner uninstall
gitlab-runner install
gitlab-runner start
gitlab-runner register --non-interactive --executor 'shell' --url 'https://gitlab.com/' --registration-token 'TOKEN_GOES_HERE'
  • Remember to tweak the parameters to match your environment

Note: Description and tags can be added via the gitlab UI later under CI/CD

Ref

https://docs.gitlab.com/runner/install/osx.html

https://docs.gitlab.com/runner/register/index.html

https://gitlab.com/gitlab-org/gitlab-runner/issues/3528

bogdandrema at gmail dot com
Terms and conditions reserved