Fresh installation of version 13.8.0 is failing from RPM repository
Summary
When trying to install the GitLab runner in the version 13.8.0 from the RPM repository on an Amazon Linux 2 instance it fails.
Steps to reproduce
curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh" | sudo bash
export GITLAB_RUNNER_DISABLE_SKEL=true; sudo -E yum install gitlab-runner
Actual behavior
Isn't installing the GitLab runner in version 13.8.0.
Expected behavior
Installs the GitLab runner in version 13.8.0
Relevant logs and/or screenshots
[root@ip-10-138-186-251 ~]# yum install gitlab-runner
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core | 3.7 kB 00:00:00
amzn2extra-docker | 3.0 kB 00:00:00
runner_gitlab-runner/x86_64/signature | 862 B 00:00:00
runner_gitlab-runner/x86_64/signature | 1.0 kB 00:00:00 !!!
runner_gitlab-runner-source/signature | 862 B 00:00:00
runner_gitlab-runner-source/signature | 951 B 00:00:00 !!!
(1/5): amzn2-core/2/x86_64/group_gz | 2.5 kB 00:00:00
(2/5): amzn2-core/2/x86_64/updateinfo | 326 kB 00:00:00
(3/5): amzn2extra-docker/2/x86_64/primary_db | 74 kB 00:00:00
(4/5): amzn2extra-docker/2/x86_64/updateinfo | 76 B 00:00:00
(5/5): amzn2-core/2/x86_64/primary_db | 48 MB 00:00:00
(1/2): runner_gitlab-runner-source/primary | 175 B 00:00:01
(2/2): runner_gitlab-runner/x86_64/primary | 8.3 kB 00:00:01
runner_gitlab-runner 89/89
Resolving Dependencies
--> Running transaction check
---> Package gitlab-runner.x86_64 0:13.8.0-1 will be installed
--> Processing Dependency: git for package: gitlab-runner-13.8.0-1.x86_64
--> Running transaction check
---> Package git.x86_64 0:2.23.3-1.amzn2.0.1 will be installed
--> Processing Dependency: perl-Git = 2.23.3-1.amzn2.0.1 for package: git-2.23.3-1.amzn2.0.1.x86_64
--> Processing Dependency: git-core-doc = 2.23.3-1.amzn2.0.1 for package: git-2.23.3-1.amzn2.0.1.x86_64
--> Processing Dependency: git-core = 2.23.3-1.amzn2.0.1 for package: git-2.23.3-1.amzn2.0.1.x86_64
--> Processing Dependency: emacs-filesystem >= 25.3 for package: git-2.23.3-1.amzn2.0.1.x86_64
--> Processing Dependency: perl(Term::ReadKey) for package: git-2.23.3-1.amzn2.0.1.x86_64
--> Processing Dependency: perl(Git::I18N) for package: git-2.23.3-1.amzn2.0.1.x86_64
--> Processing Dependency: perl(Git) for package: git-2.23.3-1.amzn2.0.1.x86_64
--> Processing Dependency: libsecret-1.so.0()(64bit) for package: git-2.23.3-1.amzn2.0.1.x86_64
--> Running transaction check
---> Package emacs-filesystem.noarch 1:25.3-3.amzn2.0.2 will be installed
---> Package git-core.x86_64 0:2.23.3-1.amzn2.0.1 will be installed
---> Package git-core-doc.noarch 0:2.23.3-1.amzn2.0.1 will be installed
---> Package libsecret.x86_64 0:0.18.5-2.amzn2.0.2 will be installed
---> Package perl-Git.noarch 0:2.23.3-1.amzn2.0.1 will be installed
--> Processing Dependency: perl(Error) for package: perl-Git-2.23.3-1.amzn2.0.1.noarch
---> Package perl-TermReadKey.x86_64 0:2.30-20.amzn2.0.2 will be installed
--> Running transaction check
---> Package perl-Error.noarch 1:0.17020-2.amzn2 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================
Installing:
gitlab-runner x86_64 13.8.0-1 runner_gitlab-runner 63 M
Installing for dependencies:
emacs-filesystem noarch 1:25.3-3.amzn2.0.2 amzn2-core 64 k
git x86_64 2.23.3-1.amzn2.0.1 amzn2-core 135 k
git-core x86_64 2.23.3-1.amzn2.0.1 amzn2-core 5.0 M
git-core-doc noarch 2.23.3-1.amzn2.0.1 amzn2-core 2.4 M
libsecret x86_64 0.18.5-2.amzn2.0.2 amzn2-core 153 k
perl-Error noarch 1:0.17020-2.amzn2 amzn2-core 32 k
perl-Git noarch 2.23.3-1.amzn2.0.1 amzn2-core 47 k
perl-TermReadKey x86_64 2.30-20.amzn2.0.2 amzn2-core 31 k
Transaction Summary
==============================================================================================================================================================================
Install 1 Package (+8 Dependent packages)
Total size: 71 M
Total download size: 63 M
Installed size: 131 M
Is this ok [y/d/N]: y
Downloading packages:
gitlab-runner-13.8.0-1.x86_64. FAILED ========================================================= ] 0.0 B/s | 59 MB --:--:-- ETA
https://packages.gitlab.com/runner/gitlab-runner/el/6/x86_64/gitlab-runner-13.8.0-1.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=runner_gitlab-runner clean metadata
Trying other mirror.
Error downloading packages:
gitlab-runner-13.8.0-1.x86_64: [Errno 256] No more mirrors to try.
Possible fixes
Only fresh installations of the GitLab runner in version 13.8.0 are failing. It looks like the latest RPM package isn't correctly signed. When installing it with:
export GITLAB_RUNNER_DISABLE_SKEL=true; sudo -E yum install gitlab-runner-13.7.0-1
and updating it afterwards with yum update
it actually updates the version:
[root@ip-10-138-186-251 ~]# gitlab-runner --version
Version: 13.8.0
Git revision: 775dd39d
Git branch: 13-8-stable
GO version: go1.13.8
Built: 2021-01-20T13:32:47+0000
OS/Arch: linux/amd64
Edited by Simon Stamm