Repository not working - 404 error

Solution Verified - Updated

Environment

Red Hat Satellite 6.x up to 6.9

Issue

I recently upgraded our soon-to-be new satellite server to 6.4. Upgrade was fine and everything works normally except for the RHEL 7 Supplementary repo. It is enabled, newly synced, but when I go to a VM and try to do a yum update it fails with HTTP 404 error for the Supplementary repo. I can see it enabled and synced in Satellite WebUI.

Resolution

There are two options, depending on the customer's environment:

  1. If the customer has a second satellite server, then you can use the same /repodata/repomd.xml file from the same path. The reason that this works is that the XML file contains identical checksums for the files listed.
  2. If the customer does not have a second satellite server, then they can proceed through the process of removing the repository from content views, activation keys, etc, and then remove the content from the satellite, then re-sync the repository. This should pull down the /repodata/repomd.xml portion of the repository.

In either case, the repository would need to be removed from the content view(s), a new version of the content view(s) be published and promoted. Then, proceed with either of the above options, then add the repository back to the content view(s), publish a new version of the content view(s), then re-populate the yum cache on the host.

For more KB articles/solutions related to Red Hat Satellite 6.x Repository Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Repository Issues.

Root Cause

The satellite server did not have the /repodata/repomd.xml file in the repository's path. All of the packages were there, but the repomd.xml file was not present.

Diagnostic Steps

We found that content was missing the /repodata/repomd.xml from the path, so the 404 error is valid.

# yum repolist enabled
Loaded plugins: langpacks, product-id, subscription-manager
https://example.satellite.com/published/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.

Checking the satellite server, the packages are there, but the /repodata/repomd.xml file is not.

SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.