[Spacewalk-list] Error when trying to update Spacewalk server from itself.

Matthew Madey mattmadey at gmail.com
Thu Dec 11 17:21:38 UTC 2014


I assume you've already tried running "yum clean metadata" on the Spacewalk
server you're trying to patch? Did you register it directly to itself, or
via a Spacewalk Proxy?


On Thu, Dec 11, 2014 at 10:53 AM, Matt Bayliss <aarrgghh765 at gmail.com>
wrote:

> I am testing a Spacewalk 2.2 server with a connected proxy and three hosts
> connected via the proxy.  I can successfully update packages both on the
> proxy and hosts connected though it.
>
> I have added my Spacewalk 2.2 server to itselff, using its DNS FQDN rather
> than localhost, however when I try to update packages for it I get the
> following error in /var/log/up2date:
>
> Cannot retrieve repository metadata (repomd.xml) for repository:
> centos6-base-x86_64
>
> I have checked the httpd logs and can't spot a relevant error, what could
> be the problem?
>
> Regards,
>
> Matt
>
> Full /var/log/up2date log:
>
>
> [Thu Dec 11 13:43:42 2014] up2date logging into up2date server
> [Thu Dec 11 13:43:42 2014] up2date successfully retrieved authentication
> token from up2date server
> [Thu Dec 11 13:43:44 2014] up2date updateLoginInfo() login info
> [Thu Dec 11 13:43:44 2014] up2date logging into up2date server
> [Thu Dec 11 13:43:44 2014] up2date successfully retrieved authentication
> token from up2date server
> [Thu Dec 11 13:43:44 2014] up2date updateLoginInfo() login info
> [Thu Dec 11 13:43:44 2014] up2date logging into up2date server
> [Thu Dec 11 13:43:44 2014] up2date successfully retrieved authentication
> token from up2date server
> [Thu Dec 11 13:43:44 2014] up2date updateLoginInfo() login info
> [Thu Dec 11 13:43:44 2014] up2date logging into up2date server
> [Thu Dec 11 13:43:44 2014] up2date successfully retrieved authentication
> token from up2date server
> [Thu Dec 11 13:43:44 2014] up2date
> Traceback (most recent call last):
>   File "/usr/sbin/rhn_check", line 351, in __run_action
>     (status, message, data) = CheckCli.__do_call(method, params, kwargs)
>   File "/usr/sbin/rhn_check", line 343, in __do_call
>     method = getMethod.getMethod(method, "/usr/share/rhn/", "actions")
>   File "/usr/share/rhn/up2date_client/getMethod.py", line 78, in getMethod
>     actions = __import__(modulename)
>   File "/usr/share/rhn/actions/packages.py", line 273, in <module>
>     yum_base = YumAction()
>   File "/usr/share/rhn/actions/packages.py", line 67, in __init__
>     self.doSackSetup()
>   File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 649, in
> doSackSetup
>     return self._getSacks(archlist=archlist, thisrepo=thisrepo)
>   File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 686, in
> _getSacks
>     self.repos.populateSack(which=repos)
>   File "/usr/lib/python2.6/site-packages/yum/repos.py", line 319, in
> populateSack
>     sack.populate(repo, mdtype, callback, cacheonly)
>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 165, in
> populate
>     if self._check_db_version(repo, mydbtype):
>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 223, in
> _check_db_version
>     return repo._check_db_version(mdtype)
>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1260, in
> _check_db_version
>     repoXML = self.repoXML
>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1459, in
> <lambda>
>     repoXML = property(fget=lambda self: self._getRepoXML(),
>   File "/usr/share/yum-plugins/rhnplugin.py", line 580, in _getRepoXML
>     return YumRepository._getRepoXML(self)
>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1455, in
> _getRepoXML
>     raise Errors.RepoError, msg
> <class 'yum.Errors.RepoError'>: Cannot retrieve repository metadata
> (repomd.xml) for repository: centos6-base-x86_64. Please verify its path
> and try again
>
> [Thu Dec 11 16:11:07 2014] up2date logging into up2date server
> [Thu Dec 11 16:11:07 2014] up2date successfully retrieved authentication
> token from up2date server
> [Thu Dec 11 16:11:10 2014] up2date updateLoginInfo() login info
> [Thu Dec 11 16:11:10 2014] up2date logging into up2date server
> [Thu Dec 11 16:11:10 2014] up2date successfully retrieved authentication
> token from up2date server
> [Thu Dec 11 16:11:10 2014] up2date updateLoginInfo() login info
> [Thu Dec 11 16:11:10 2014] up2date logging into up2date server
> [Thu Dec 11 16:11:10 2014] up2date successfully retrieved authentication
> token from up2date server
> [Thu Dec 11 16:11:10 2014] up2date updateLoginInfo() login info
> [Thu Dec 11 16:11:10 2014] up2date logging into up2date server
> [Thu Dec 11 16:11:10 2014] up2date successfully retrieved authentication
> token from up2date server
> [Thu Dec 11 16:11:10 2014] up2date
> Traceback (most recent call last):
>   File "/usr/sbin/rhn_check", line 351, in __run_action
>     (status, message, data) = CheckCli.__do_call(method, params, kwargs)
>   File "/usr/sbin/rhn_check", line 343, in __do_call
>     method = getMethod.getMethod(method, "/usr/share/rhn/", "actions")
>   File "/usr/share/rhn/up2date_client/getMethod.py", line 78, in getMethod
>     actions = __import__(modulename)
>   File "/usr/share/rhn/actions/packages.py", line 273, in <module>
>     yum_base = YumAction()
>   File "/usr/share/rhn/actions/packages.py", line 67, in __init__
>     self.doSackSetup()
>   File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 649, in
> doSackSetup
>     return self._getSacks(archlist=archlist, thisrepo=thisrepo)
>   File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 686, in
> _getSacks
>     self.repos.populateSack(which=repos)
>   File "/usr/lib/python2.6/site-packages/yum/repos.py", line 319, in
> populateSack
>     sack.populate(repo, mdtype, callback, cacheonly)
>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 165, in
> populate
>     if self._check_db_version(repo, mydbtype):
>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 223, in
> _check_db_version
>     return repo._check_db_version(mdtype)
>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1260, in
> _check_db_version
>     repoXML = self.repoXML
>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1459, in
> <lambda>
>     repoXML = property(fget=lambda self: self._getRepoXML(),
>   File "/usr/share/yum-plugins/rhnplugin.py", line 580, in _getRepoXML
>     return YumRepository._getRepoXML(self)
>   File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1455, in
> _getRepoXML
>     raise Errors.RepoError, msg
> <class 'yum.Errors.RepoError'>: Cannot retrieve repository metadata
> (repomd.xml) for repository: centos6-base-x86_64. Please verify its path
> and try again
>
>
>
> _______________________________________________
> 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/20141211/2de8d81d/attachment.htm>


More information about the Spacewalk-list mailing list