Yum fails on all Red Hat Satellite Server Clients subscribed to Custom Channel with "[Errno 14] HTTP Error 404: Status 404".

Solution Verified - Updated -

Environment

  • Red Hat Satellite 5.x
  • Red Hat Enterprise Server
  • Custom Channel

Issue

  • Yum update on Clients subscribed to Custom channel is failing with this error message:
[root@client /]# yum update
:
:
"Error Downloading Packages:
  1:yum-updatesd-0.9-5.el5.noarch: failed to retrieve getPackage/yum-updatesd-0.9-5.el5.noarch.rpm from Custom-rh5-base
error was [Errno 14] HTTP Error 404: Status 404"

Resolution

  • Clear the channel repodata on the Red Hat Satellite Server for the Custom Channel in question:
   # rm -rf /var/cache/rhn/repodata/<Custom-channel-label>/*

For eg:
   # rm -rf /var/cache/rhn/repodata/Custom-rh5-base/*
  • Then restart the taskomatic service by runing this command:
   # service taskomatic restart 
  • Now the cache generation will start on satellite server, you can monitor the files under directory /var/cache/rhn/repodata/<Custom-channel-label>/ . At start you may see files with *.new extension. Once all files with *.new extension get removed then follow bellow steps on client machine.

  • Run these commands on the Red Hat Enterprise Linux Client System:

   # rm -rf /var/cache/yum/* 
   # yum update package-name 

Root Cause

  • Channel repodata on the Red Hat Satellite Server was corrupt which caused yum to fail on the Client,cleaning and regenerating the repodata fixed the issue.

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.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.