Hi,

I successfully setup Spacewalk 1.5 with PostgreSQL on a CentOS 5.6 (64 bit)
VM.
But when I try to add content, repo-sync fails me.
I have added a Centos6 x86_64 Channel, linked to the official Centos6-x86_64
Repository,
together with correct GPG key and fingerprint.
The Spacewalk VM is sitting behing a proxy, whose setting I have applied
system wide (/etc/profile)
and also to the Spacewalk GUI.
I can access the repository's URL without problem.

But when try to actually issue a sync request (either via GUI or with
spacewalk-repo-sync)
it will always fail instantly with this error:
----------
[root@det-repos-1 repodata]# spacewalk-repo-sync -c centos6-x86_64 --url
http://mirror.centos.org/centos-6/6/os/x86_64/ --type yum
Traceback (most recent call last):
  File "/usr/bin/spacewalk-repo-sync", line 70, in ?
    sys.exit(abs(main() or 0))
  File "/usr/bin/spacewalk-repo-sync", line 64, in main
    sync.main()
  File
"/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/reposync.py",
line 111, in main
    self.import_packages(plugin, url)
  File
"/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/reposync.py",
line 311, in import_packages
    packages = plug.list_packages()
  File
"/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/repo_plugins/yum_src.py",
line 119, in list_packages
    sack.populate(repo, 'metadata', None, 0)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 168, in
populate
    if self._check_db_version(repo, mydbtype):
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 226, in
_check_db_version
    return repo._check_db_version(mdtype)
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1233, in
_check_db_version
    repoXML = self.repoXML
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1406, in
<lambda>
    repoXML = property(fget=lambda self: self._getRepoXML(),
  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1402, 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
----------

/var/satellite/redhat is NOT being filled.
/var/cache/rhn/repodata/centos6-x86_64 does have some XML files,
but the timestamp indicates, that they were copied at the time of entering
the repository in the GUI. I tried the sync later.

Initially I tried Spacewalk 1.5 on a CentOS 6.0 Server, which did not work
out.
When I saw a post from Jan saying that they'd "kind of expect 6.1" I
re-installed
on Scientific Linux 6.1. But it shows exactly the same error.

What can I do?
Thank you,

Dirk Lohbeck
HRS - Hotel Reservation Service
Cologne / Germany
_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to