Problems with yum update on 7.8

Latest response

Hello
I tried today to update an test server and i'm unable to do it because an metadata error
Till now i did the following:
- i unregistered and registered again with subscription-manager
- yum clean and rm on /var/cache/yum
- yum --enablerepo=rhel-7-server-rpms clean metadata
- disable and enable the rhel-7-server-rpms repo
- added 7.8 on /etc/yum/vars/releasever, previously was empty (found it on a post here)

# cat /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.8 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.8"
PRETTY_NAME="Red Hat Enterprise Linux"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.8:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.8
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.8"

First error

rhel-7-server-rpms/7Server/x86 FAILED                                                                   90% [====================================================================================-         ] 8.2 MB/s |  77 MB  00:00:01 ETA
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/05cbfc3401c3e04fcfe166abc9a1b361fecae11e-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum=======-         ] 8.2 MB/s |  77 MB  00:00:01 ETA
Trying other mirror.
(10/11): epel/x86_64/primary_db                                                                                                                                                                                       | 6.9 MB  00:00:23
rhel-7-server-rpms/7Server/x86 FAILED                                                                   98% [============================================================================================- ] 8.5 MB/s |  71 MB  00:00:00 ETA
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/05cbfc3401c3e04fcfe166abc9a1b361fecae11e-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum===============- ] 8.5 MB/s |  71 MB  00:00:00 ETA
Trying other mirror.
rhel-7-server-rpms/7Server/x86_64/primary_db                                                                                                                                                                          |  72 MB  00:00:07
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/05cbfc3401c3e04fcfe166abc9a1b361fecae11e-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum
Trying other mirror.


 One of the configured repositories failed (Red Hat Enterprise Linux 7 Server (RPMs)),

With 7.8 set

rhel-7-server-rpms/7Server/x86 FAILED                                                                    9% [========-                                                                                     ] 1.4 MB/s | 7.9 MB  00:00:55 ETA
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/50e73da6d0fd05e148e90203d45541ab8cb98dcc-updateinfo.xml.gz: [Errno -1] Metadata file does not match checksum                  ] 1.4 MB/s | 7.9 MB  00:00:55 ETA
Trying other mirror.
(8/11): epel/x86_64/updateinfo                                                                                                                                                                                        | 1.0 MB  00:00:03
rhel-7-server-rpms/7Server/x86 FAILED                                                                   88% [==================================================================================-           ] 8.2 MB/s |  75 MB  00:00:01 ETA
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/05cbfc3401c3e04fcfe166abc9a1b361fecae11e-primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum=====-           ] 8.2 MB/s |  75 MB  00:00:01 ETA
Trying other mirror.
(9/11): epel/x86_64/primary_db                                                                                                                                                                                        | 6.9 MB  00:00:15
rhel-7-server-rpms/7Server/x86_64/primary_db                                                                                                                                                                          |  72 MB  00:00:08


 One of the configured repositories failed (Unknown),

Currently i'm getting the first error, i reverted the files

Responses

Hello Ioan Mircea Pop,

The steps that you had tried should help you to get the system registered. You may execute the below steps in the same order which would make sure that there are no old/cached subscriptions related data in the system and would re-register the system:

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

After this check the status using the command "subscription-manager status" and this should say that it is current & if you run "yum repolist" that would generate the repositories available/enabled.

If there is still an error then you may check the /var/log/rhsm/rhsm.log for any clue or hints. Also, you could better log a case with Red Hat Technical Team for a quick help and fix.

All the best!

Hello !

I have exactly the same problems for this repo "rhel-7-server-rpms" (error with primary-sqlite.bz2 and updateinfo.xml.gz ...). I cleared all caches, did all the commands above, does not fix the problem ...

I can I fix the issue ?