Yum failing on Red Hat Satellite 6 clients with '[Errno 14] HTTPS Error 404 - Not Found Trying other mirror' error.

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.x
  • Red Hat Enterprise Linux 5.x, 6.x, 7.x.

Issue

  • yum commands fail with below error on Satellite 6.x clients:
https://satellite.domain.com/pulp/repos/test/Library/content/dist/rhel/server/6/6Server/x86_64/os/repodata /repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

Resolution

  • Set the correct release version on the content host to resolve the issue:

    • On Satellite GUI > Hosts > Content Hosts > click on the affected client > Details section > edit Content Host Content and select the appropriate release version (7Server in this example) and lifecycle environment:
    • Refer the below image describing the above changes on satellite GUI:

      alt text

  • Alternatively, on the content host, the correct release version can be set using subscription-manager as well:

    # cat /etc/redhat-release                                -->  Verify the host RHEL release :
    # subscription-manager release --show                --> Verify the subscription manager release set
    # subscription-manager release --set=7Server            --> Set the correct release 
    # yum clean all 
    # yum repolist
    

Root Cause

  • Incorrect subscription manager release is set for the host.

Diagnostic Steps

  • Run yum repolist command on the client which is subscribed to the Satellite 6 server. The command results in the following output:

    [root@client1 ~] # yum repolist
    Loaded plugins: package_upload, product-id, refresh-packagekit, security, subscription-manager
    This system is receiving updates from Red Hat Subscription Management.
    https://satellite.domain.com/pulp/repos/test/Library/content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml:   [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    repo id                                       repo name                                                           status
    rhel-6-server-rpms                            Red Hat Enterprise Linux 6 Server (RPMs)                            0
    repolist: 0
    
  • The /var/log/foreman/production.log file on the satellite server shows the following error:

    ActionController::RoutingError (No route matches [GET] "/pulp/repos/test/Library/content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml"):
    /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
    /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
    /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
    /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'
    

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