Changing gitlab-ci-multi-runner home directory not reflected in gl-ci-m-r configuration
Summary
- Create a runner -- in this case I used the shell executor, assigned to a single project
- Runner working correctly, communicating with CI server and executing builds
- As root, change the home directory of the runner:
usermod -m -d /new_home/gitlab_ci_multi_runner gitlab_ci_multi_runner
- Runner now unable to communicate to CI server, following message from
/var/log/syslog
Aug 19 14:26:00 staging systemd[1]: gitlab-runner.service holdoff time over, scheduling restart. Aug 19 14:26:00 staging systemd[1]: Started GitLab Runner. Aug 19 14:26:00 staging systemd[1]: Starting GitLab Runner... Aug 19 14:26:01 staging gitlab-runner[3710]: 0 Starting multi-runner from /etc/gitlab-runner/config.toml ... Aug 19 14:26:01 staging gitlab-ci-multi-runner[3710]: time="2015-08-19T14:26:01+01:00" level=info msg="0 Starting multi-runner from /etc/gitlab-runner/config.toml ..." Aug 19 14:26:01 staging gitlab-runner[3710]: chdir /home/gitlab_ci_multi_runner: no such file or directory Aug 19 14:26:01 staging gitlab-ci-multi-runner[3710]: time="2015-08-19T14:26:01+01:00" level=error msg="chdir /home/gitlab_ci_multi_runner: no such file or directory"
System info:
- Ubuntu server 15.04, running under VirtualBox, Linux host
- GitLab and CI server running on a separate virtual machine
- gl-ci-m-r 0.5.2
- GL / CI 7.12.0 baa699a
I can't see anywhere in either /etc/gitlab-runner/config.toml
or ~gitlab-ci-multi-runner/config.toml
where this configuration is picked up. Would it be possible to use the $HOME
environment variable for the gl-ci-m-r user?