yum fail on Red Hat satellite 5 clients with message [Errno 14] HTTPS Error 404 - Not Found

Solution Verified - Updated -

Environment

  • Red Hat Satellite 5.x

Issue

  • Installing packages on satellite 5.x clients failing with following error:
Error downloading packages:
  osa-common-5.11.63-14.el7sat.noarch: failed to retrieve getPackage/osa-common-5.11.63-14.el7sat.noarch.rpm from az-rhn-tools-rhel-x86_64-server-7
error was [Errno 14] HTTP Error 404 - Not Found
  • Unable to downalod packages from satellite WebUI.
  • File System Path is missing for some packages.

Resolution

  • To list the packages without filesystem path:
# spacewalk-sql -i
  rhnschema=# select * from rhnpackage where path is null;
  • For satellite 5.7 and below resync the channels:
# rm -rf /var/cache/rhn/satsync/* 
# satellite-sync  --force-all-errata  --force-all-packages
  • For satellite 5.8:
# cdn-sync --clear-cache
# cdn-sync --force-all-errata

Root Cause

  • Repodata contains package details but the package was actually missing from filesystem.

Diagnostic Steps

  • sample output:
=============================================================================================================================================
 Package                    Arch                   Version                              Repository                                      Size
=============================================================================================================================================
Updating:
 osa-common                 noarch                 5.11.63-14.el7sat                    rhn-tools-rhel-x86_64-server-7                  48 k
 osad                       noarch                 5.11.63-14.el7sat                    rhn-tools-rhel-x86_64-server-7                  47 k

Transaction Summary
=============================================================================================================================================
Upgrade  2 Packages

Total size: 95 k
Total download size: 48 k
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.


Error downloading packages:
  osa-common-5.11.63-14.el7sat.noarch: failed to retrieve getPackage/osa-common-5.11.63-14.el7sat.noarch.rpm from rhn-tools-rhel-x86_64-server-7
error was [Errno 14] HTTPS Error 404 - Not Found

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.

Comments