1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| Vyacheslav Napadovsky :satellite_orbital: @slavanap · 1 year ago I faced the same error. After short investigation, I've found that folder /path/to/folder.tmp created instead folder referenced in cd /path/to/folder
I did sudo chown gitlab-runner:gitlab-runner -R /etc/gitlab-runner after installation. Runner was launched as systemd service under gitlab-runner user with this command:
/usr/lib/gitlab-runner/gitlab-runner --debug "run" "--working-directory" "/home/gitlab-runner" "--config" "/etc/gitlab-runner/config.toml" "--service" "gitlab-runner" "--syslog" Fixed my issue with changing command line to
/usr/lib/gitlab-runner/gitlab-runner --debug "run" "--working-directory" "/home/gitlab-runner" "--config" "/etc/gitlab-runner/config.toml" Here's how my modified /etc/systemd/system/gitlab-runner.service file looks like now.
[Unit] Description=GitLab Runner After=syslog.target network.target ConditionFileIsExecutable=/usr/lib/gitlab-runner/gitlab-runner
[Service] StartLimitInterval=5 StartLimitBurst=10 ExecStart=/usr/lib/gitlab-runner/gitlab-runner --debug "run" "--working-directory" "/home/gitlab-runner" "--config" "/etc/gitlab-runner/config.toml" User=gitlab-runner Group=gitlab-runner WorkingDirectory=/home/gitlab-runner StandardInput=tty-force StandardOutput=inherit StandardError=inherit
Restart=always RestartSec=120
[Install] WantedBy=multi-user.target gitlab-runner doesn't work as user-limited systemd service without tty-force.
Edited by Vyacheslav Napadovsky 1 year ago
|