[Spacewalk-list] First 'spacewalk-repo-sync' failed with "Cannot retrieve repository metadata (repomd.xml)"

Marcelo Moreira de Mello mmello at redhat.com
Tue May 29 14:59:50 UTC 2012


Hello Luiz, 

  What is the URL configured on the Spacewalk?

  You might need to point to this address: http://mirror.centos.org/centos/6/os/x86_64/ instead http://mirror.centos.org/centos/6/os/x86_64/repodata/repomd.xml
 
  Does your environment/server runs behind a proxy? 
  
Marcelo Moreira de Mello
RHCA RHCSS RHCVA
Senior Software Maintenance Engineer - SEG

gpg id: 2048/FDB110E5
gpg fingerprint: 3BE7 EF71 4DD7 6812 D309  8F18 BD42 D095 FDB1 10E5

On 29/05/2012, at 07:55, Luiz Alfredo Baggiotto wrote:

> Hello,
>  
> I´m just installing a spacewalk system following the documentation in:
>  
> https://fedorahosted.org/spacewalk/wiki/UserDocs#Installation
>  
> Everything was going on until the step where I need to use ‘spacewalk-repo-sync’ to get packages from mirror repositories. I´m receiving the following error:
>  
> # spacewalk-repo-sync --channel centos6-x86_64
> Traceback (most recent call last):
>   File "/usr/bin/spacewalk-repo-sync", line 100, in <module>
>     sys.exit(abs(main() or 0))
>   File "/usr/bin/spacewalk-repo-sync", line 93, in main
>     sync.sync()
>   File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py", line 100, in sync
>     self.import_packages(plugin, repo_id, url)
>   File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py", line 303, in import_packages
>     packages = plug.list_packages(filters)
>   File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/repo_plugins/yum_src.py", line 151, in list_packages
>     self.sack.populate(self.repo, 'metadata', None, 0)
>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 164, in populate
>     if self._check_db_version(repo, mydbtype):
>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 222, in _check_db_version
>     return repo._check_db_version(mdtype)
>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1263, in _check_db_version
>     repoXML = self.repoXML
>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1462, in <lambda>
>     repoXML = property(fget=lambda self: self._getRepoXML(),
>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1458, in _getRepoXML
>     raise Errors.RepoError, msg
> yum.Errors.RepoError: Cannot retrieve repository metadata (repomd.xml) for repository: centos6-x86_64. Please verify its path and try again
>  
> I was suspecting a network or proxy misconfiguration, however when I try with curl it works fine:
>  
> # curl http://mirror.centos.org/centos/6/os/x86_64/repodata/repomd.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <repomd xmlns="http://linux.duke.edu/metadata/repo" xmlns:rpm="http://linux.duke.edu/metadata/rpm">
>   <revision>1324003045</revision>
>   <data type="other_db">
>     <location href="repodata/dac021223305025646e6aa2e9c14e711555eaa83dc7fc99b91f38f54c66bbe9c-other.sqlite.bz2"/>
>     <checksum type="sha256">dac021223305025646e6aa2e9c14e711555eaa83dc7fc99b91f38f54c66bbe9c</checksum>
>     <timestamp>1324003066.81</timestamp>
>     <size>2708871</size>
>     <open-size>11743232</open-size>
>     <open-checksum type="sha256">58e13ea7c4ddfed062023279252a958335997e3ee0f196d402108112b319bf95</open-checksum>
>     <database_version>10</database_version>
>   </data>
>   <data type="other">
>> </repomd>
>  
> The channel was generated with this command:
>  
> # spacewalk-common-channels -v -u <admin_user> -p <password> -a x86_64 -k unlimited 'centos6*' 'spacewalk-nightly-client*'
>  
> I´m using a VM CentOS machine with these specs:
>  
> # cat /etc/redhat-release
> CentOS Linux release 6.0 (Final)
> #
> # cat /etc/spacewalk-release
> Spacewalk release 1.7 (Smile)
>  
> Do you have any idea or suggestion about how to troubleshoot this issue? I´ve already checked some tips I´ve found in this forum (system is enabled  in “Admin” – “Spacewalk configuration” and I removed “http://” from proxy configuration in “/etc/rhn/rhn.conf”) however nothing worked yet.
>  
> Thanks in advance,
>  
> Luiz
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20120529/bf237f75/attachment.htm>


More information about the Spacewalk-list mailing list