Troubleshooting Corrupt Repositories

The information in the repository metadata files can become corrupt or out of date. This can create problems with updating clients. You can fix this by removing the files and regenerating it. With an new repository data file, updates should operate as expected.

Procedure: Resolving Corrupt Repository Data
  1. Remove all files from /var/cache/rhn/repodata/<channel-label>. If you do not know the channel label, you can find it in the Uyuni Web UI, by navigating to Software  Channels  Channel Label.

  2. On the container host, from the command line, execute the following command to regenerate the file in the container:

    mgrctl exec -ti -- spacecmd softwarechannel_regenerateyumcache <channel-label>