spacewalk-repo-sync fails with " Cannot retrieve repository metadata (repomd.xml) for repository "

Solution Verified - Updated -


  • spacewalk-repo-sync command fails with " Cannot retrieve repository metadata (repomd.xml) for repository "

    # spacewalk-repo-sync --channel cp-addons-rhel5-x86_64 --type yum -u
    Traceback (most recent call last):
      File "/usr/bin/spacewalk-repo-sync", line 72, in ?
        sys.exit(abs(main() or 0))
      File "/usr/bin/spacewalk-repo-sync", line 66, in main
      File "/usr/share/rhn/satellite_tools/", line 103, in main
        self.import_packages(plugin, url)
      File "/usr/share/rhn/satellite_tools/", line 135, in import_packages
        packages = plug.list_packages()
      File "/usr/share/rhn/satellite_tools/repo_plugins/", line 73, in list_packages
        sack.populate(repo, 'metadata', None, 0)
      File "/usr/lib/python2.4/site-packages/yum/", line 168, in populate
        if self._check_db_version(repo, mydbtype):
      File "/usr/lib/python2.4/site-packages/yum/", line 226, in _check_db_version
        return repo._check_db_version(mdtype)
      File "/usr/lib/python2.4/site-packages/yum/", line 1226, in _check_db_version
        repoXML = self.repoXML
      File "/usr/lib/python2.4/site-packages/yum/", line 1399, in <lambda>
        repoXML = property(fget=lambda self: self._getRepoXML(),
      File "/usr/lib/python2.4/site-packages/yum/", line 1395, in _getRepoXML
        raise Errors.RepoError, msg
    yum.Errors.RepoError: Cannot retrieve repository metadata (repomd.xml) for repository: cp-addons-rhel5-x86_64. Please verify its path and try again.


  • Red Hat Network (RHN) Satellite

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