Centos 8 - Fails to download metadata for the source repo

Hello there,

after migrating my vServer to Centos 8 I wanted to reinstall my Gitlab instance.
Sadly, there seems to be a problem, as yum can not download the metadata for the source repo:

Generating yum cache for gitlab_gitlab-ce-source…
Failed to download metadata for repo ‘gitlab_gitlab-ce-source’
Error: Failed to download metadata for repo ‘gitlab_gitlab-ce-source’

Oddly, there seems to be no problem at the regular gitlab_gitlab-ce repository, as it generates its cache just fine.

Is there currently a problem with the centos 8 repositories for gitlab, or might it be a problem on my system?

Best regards,

Darklux / Niklas

Hi @Darklux, welcome to the GitLab Community Forum!

Thanks for bringing this to our attention. I was able to reproduce this error on both CentOS8 and RHEL 8.

It appears that the gitlab_gitlab-ce-source and gitlab_gitlab-ee-source upstream repos did not have their GPG keys rotated yet. We are working on this now.

A temporary workaround is to disable the -source repo : https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/5226#confirmed-workaround

This workaround should allow you to install the GitLab package without being blocked by the failed to download metadata error.

Let us know how it goes, and if you have any questions or concerns!

1 Like

Hello Greg,

first of all, thank you for your kind and fast response!
Of course, disabling it does the trick for now. Could have thought of that earlier, but if there was a real problem thats being fixed now thats, of course, the better outcome. I’ll follow the issue and will enable the source repo again, once the issue is fixed.

Best regards,

Niklas

1 Like

Hi again @Darklux !

The issue has been fixed. You can now safely re-enable the gitlab-source repo by reverting the temporary changes made to /etc/yum.repos.d/gitlab_gitlab-ee.repo

Thanks again for bringing this to our attention!

1 Like

Hello,
I am facing similar problem. I get this response in attempt to run the script
https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh

Please, advise.

sudo ./script.rpm.sh

Detected operating system as centos/8.
Checking for curl…
Detected curl…
Downloading repository file: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/config_file.repo?os=centos&dist=8&source=script
done.
Installing yum-utils…
gitlab_gitlab-ce-source 0.0 B/s | 0 B 00:04
Errors during downloading metadata for repository ‘gitlab_gitlab-ce-source’: