Following these instruction I have installed a GitLab runner on Digital Ocean. First I tried a docker runner and that worked well. Then I tried a “shell” runner following these instructions
Every time I ran a pipeline I got an error ERROR: Job failed (system failure): prepare environment: exit status 1. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information
I stopped the runner using gitlab-runner stop
and started it using gitlab-runner run
.
That time the Pipeline worked fine. When I started it again using gitlab-runner start
it does not work again.
Of course I don’t want to run it in the foreground, so how can I fix this?