Gitlab-runner installer not allowing the runner to run as a service with version 17.5.0
On a fresh installation of Ubuntu Server 22.04 installing 17.5.0 does not allow gitlab-runner to run as a service.
Following the 3 steps on this page https://docs.gitlab.com/runner/install/linux-repository.html
Log return the following error.
Oct 18 16:36:45 host_pc systemd[1]: gitlab-runner.service: Scheduled restart job, restart counter is at 4.
Oct 18 16:36:45 host_pc systemd[1]: Stopped GitLab Runner.
Oct 18 16:36:45 host_pc systemd[1]: Started GitLab Runner.
Oct 18 16:36:45 host_pc gitlab-runner[9030]: FATAL: failed to get user home dir: $HOME is not defined
Oct 18 16:36:45 host_pc systemd[1]: gitlab-runner.service: Main process exited, code=exited, status=1/FAILURE
Oct 18 16:36:45 host_pc systemd[1]: gitlab-runner.service: Failed with result 'exit-code'.
Work around is to just install 17.4.1 over the top.
Edited by Giles Babich