Cannot download from specific repo when other repos work - RHEL8

Latest response

Hello.

As the title suggests, I am unable to download from a specific repo on a newly installed RHEL8 instance and i'm seeking some guidance. BaseOS and AppStream repos work fine.

Repo:

[rhel-8-for-x86_64-sap-solutions-rpms]
name = Red Hat Enterprise Linux 8 for x86_64 - SAP Solutions (RPMs)
baseurl = https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/sap-solutions/os
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
sslverify = 1
sslcacert = /etc/rhsm/ca/redhat-uep.pem
sslclientkey = /etc/pki/entitlement/2847652156063783164-key.pem
sslclientcert = /etc/pki/entitlement/2847652156063783164.pem
metadata_expire = 86400
enable_metadata = 0
ui_repoid_vars = releasever

Error:
Error: Failed to synchronize cache for repo 'rhel-8-for-x86_64-sap-solutions-rpms'

Debug:
Cannot download 'https://cdn.redhat.com/content/dist/rhel8/8/x86_64/sap-solutions/os': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried.

I am also not using squid proxy (or any proxy) so I do not feel the below solutions/discussions would apply:

https://access.redhat.com/solutions/3726131
https://bugzilla.redhat.com/show_bug.cgi?id=1654531

Responses

Hi Justin,

Possibly the rhel-8-for-x86_64-sap-solutions-rpms repository isn't populated with software packages.
I experienced the same with the Ansible repository until the ansible package was available (yesterday).
You can check with the Red Hat Package Browser, if the packages you want to install are available ... :)

Regards,
Christian

thanks for the response. i used the link you provided and searched for one of the packages and I see that it is NOT currently available in any RHEL 8 repo (It is available in RHEL 7).

You're welcome, Justin ! I suggest that you disable this repository until it is populated. :)

Regards,
Christian

May be that there was a temporary glitch.

I just tried this on one of VMs here and was able to successfully enable the 'rhel-8-for-x86_64-sap-solutions-rpms' repository.

First, find out the corresponding pool ID that shows 'Red Hat Enterprise Linux for SAP HANA for x86_64' (# subscription-manager list --available ) then attach that subscription, enable repos as shown below:

[root@rhel8 ~]# subscription-manager attach --pool=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1 local certificate has been deleted.
Successfully attached a subscription for: Red Hat Developer Subscription
1 local certificate has been deleted.

[root@rhel8 ~]# subscription-manager repos --list|grep -i sap
Repo ID:   rhel-8-for-x86_64-sap-solutions-source-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - SAP Solutions (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/sap-solutions/source/SRPMS
Repo ID:   rhel-8-for-x86_64-sap-netweaver-source-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - SAP NetWeaver (Source RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/sap/source/SRPMS
Repo ID:   rhel-8-for-x86_64-sap-solutions-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - SAP Solutions (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/sap-solutions/os
Repo ID:   rhel-8-for-x86_64-sap-solutions-debug-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - SAP Solutions (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/sap-solutions/debug
Repo ID:   rhel-8-for-x86_64-sap-netweaver-debug-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - SAP NetWeaver (Debug RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/sap/debug
Repo ID:   rhel-8-for-x86_64-sap-netweaver-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - SAP NetWeaver (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/sap/os

[root@rhel8 ~]# subscription-manager repos --enable rhel-8-for-x86_64-sap-solutions-rpms
Repository 'rhel-8-for-x86_64-sap-solutions-rpms' is enabled for this system.

[root@rhel8 ~]# subscription-manager repos --list-enabled
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-8-for-x86_64-sap-solutions-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - SAP Solutions (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/sap-solutions/os
Enabled:   1

Repo ID:   rhel-8-for-x86_64-baseos-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/baseos/os
Enabled:   1

Repo ID:   rhel-8-for-x86_64-appstream-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/appstream/os
Enabled:   1

I hope this helps. If there is still problem then you may try to clear/delete subscriptions and register it again :

Clear and clean subscription details :


# subscription-manager remove --all
# subscription-manager unregister
# subscription-manager clean
# yum clean all
# rm -rf /var/cache/yum/*
# subscription-manager register
# yum repolist

Remember to attach and enable required SAP repository after this.

Hi Sadashiva,

Enabling the repository is not the problem here - so the commands won't solve it in this case, I'm afraid ... :)

Regards,
Christian

I agree with you Christian. The particular repository is not getting populated though repo is enabled.

Hi Justin and Sadashiva,

One additional information : In my second response to Justin I suggested to disable the repo until it is populated.
Why ? Because otherwise running dnf upgrade might fail unless you execute it with the --disablerepo option ... :)
sudo dnf upgrade --disablerepo=rhel-8-for-x86_64-sap-solutions-rpms ... A lot to type - right ? :D

Regards,
Christian

Yes Christian, that is true.