YUM or DNF update fails with "Failed to synchronize cache for repo" on hosts registered to Red Hat Satellite or Capsule

Solution Verified - Updated -

Issue

  • While performing yum/dnf update, it throws the following error.

    Error: Failed to synchronize cache for repo '<repo_id>'
    
  • While trying to fetch the repositories from Satellite/Capsule using yum/dnf repolist, it throws the following error.

    Updating Subscription Management repositories.
    Error: Cache-only enabled but no cache for '<repo_id>'
    

Environment

  • Red Hat Enterprise Linux
  • Red Hat Satellite 6
  • Red Hat Capsule 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content