SUSE Support

Here When You Need Us

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

This document (7017920) is provided subject to the disclaimer at the end of this document.

Environment


SUSE Manager 3

Situation

The repository sync fails even of the repository is set up properly and repomd.xml is downloaded via e.g. curl.

../rhn/reposync/<reponame>:
Sync started: Thu Aug  4 12:13:51 2016
['/usr/bin/spacewalk-repo-sync', '-c', '<reponame>', '--url=http://<reposerver>/<reponame>/']
RepoError: Cannot retrieve repository metadata (repomd.xml) for repository: <reponame>. Please verify its path and try again 

Resolution

Configure proxy to allow connections to the repository.

Cause

Proxy prevents accessing the repository.

/etc/rhn/spacewalk-repo-sync/yum.conf contains proxy settings. Tracing would show:

strace -s 256 -o reposync.trace spacewalk-repo-sync...
recvfrom(10, "HTTP/1.1 502 Proxy Error ( No data record is available.  )\r\n\r\nConnection: close\r\nProxy-Connection: close\r\nPragma: 

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7017920
  • Creation Date: 05-Aug-2016
  • Modified Date:03-Mar-2020
    • SUSE Manager

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.