Installation of gitlabrunner on rocky8.10

Hi Team,

We are trying to install gitlab runner on rocky 8.10 but unable to install as it is throwing GPG keys error. please find below the repository we used and command.

Installation error

$ dzdo /bin/yum install gitlab-runner

Please help on this. Thanks in advance.

Thanks

Here we have commented the GPG and SSL lines in the repository and GPGKEY also set to 0 and trier even it is throwing error.

Seems stramge, I ran the gitlab-runner intsall as per this link: Install GitLab Runner using the official GitLab repositories | GitLab

curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh" | sudo bash

and the gitlab-runner packages installed fine. I even have GPG enabled and FIPS. Check:

update-crypto-policies --show

to see if someone has changed it from the default. However, if you disable GPG in the yum repo files like you did with gpgcheck and repo_gpgcheck, then it shouldn’t be using it. Sounds like something on your system is incorrectly configured.

[root@rocky8 ~]# rpm -qa | grep -i gitlab-runner
gitlab-runner-helper-images-17.8.1-1.noarch
gitlab-runner-17.8.1-1.x86_64

[root@rocky8 ~]# update-crypto-policies --show
FIPS
[root@rocky8 ~]# 

or perhaps your system was installed with a security profile enabled, and this is blocking you from disabling GPG and also blocking the use of Gitlab’s GPG key. In that case, it would require getting Gitlab to fix their GPG repository keys to higher grade ones that security profiles will not block them from being used.

But to identify if that is the cause you’d need to explain more about your server configuration.

Hi,

Thanks for the information.

First point we do not have root privileges but, we have privileges to run some commands using dzdo. sudo will not work for us.

i got error while executing above script with sh instead of bash shell.

dzdo /bin/curl -L “https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh” | dzdo bash
Sorry, user svc-packer is not allowed to execute ‘/usr/bin/bash’ as root on pckrda6003.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
51 7983 51 4098 0 0 26269 0 --:–:-- --:–:-- --:–:-- 26269
curl: (23) Failed writing body (1367 != 1369)

dzdo /bin/curl -L “https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh” | dzdo sh

$ update-crypto-policies --show
DEFAULT

could you please suggest is there any manual way to install gitlab runner instead of running this script

curl -L “https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh” | sudo bash

Thanks

Hi,

we are able to install this with option --nogpgcheck with yum install.

Thank you.

2 Likes