Skip to content

Fixes gitlab-runner user not owning gitlab-runner exec

McDonnell, Marshall requested to merge hotfix-gitlab-runner-exec-ownership into main

This is a hotfix for an issue that arose using Rocky 9 image for this module in a project.

Yet, this issue is not specific to that OS it would appear.

Mainly, the gitlab-runner doesn't own the /usr/bin/local/gitlab-runner executable but instead it is still owned by root.

Example:

[cloud@espd-blue-gitlab-ci-runner-1 ~]$ ls -lath /usr/local/bin/gitlab-runner 
-rwx------. 1 root root 89M Oct 15 13:25 /usr/local/bin/gitlab-runner

This caused issues in pipelines with the following error:

Missing /usr/local/bin/gitlab-runner. Artifacts downloading is disabled.

Artifact upload / download were both broken due to this issue.

The fix in this MR:

  • Run a chown so we swap ownership to gitlab-runner for that executable; still needs to be tested but fairly confident we can cut a release and then I'll try it out immediately on ESPD project.

Merge request reports

Loading