[Spacewalk-list] two Maven servers have broken yum
Clouse, Raymond
raymond.clouse at hireright.com
Wed Feb 28 01:03:26 UTC 2018
On one of our environments we have two Maven servers (stage & prod) and on both yum seems to have broken:
$ yum list | grep salt
Traceback (most recent call last):
File "/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 370, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 179, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 583, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 659, in doCommand
repoid=repoid)
File "/usr/share/yum-cli/cli.py", line 1410, in returnPkgLists
ignore_case=True, repoid=repoid)
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2973, in doPackageLists
avail = self.pkgSack.returnNewestByNameArch(patterns=patterns,
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1074, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 778, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.7/site-packages/yum/repos.py", line 386, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 263, in populate
dobj = repo_cache_function(xml, csum)
File "/usr/lib64/python2.7/site-packages/sqlitecachec.py", line 46, in getPrimary
self.repoid))
TypeError: Can not create requiresname index: unable to open database file
Googling the last line gives me variations on rebuilding the yum database:
yum clean all
rm -f /var/lib/rpm/__db*
rpm --rebuilddb
But that doesn't fix the problem.
Perhaps Spacewalk has a separate database for yum and that needs to be rebuilt? But then why is it just the Maven servers? (the rest of the servers on the environment have no problem, approximately 50 VMs)
Anyone else seen this kind of issue?
--
Ray Clouse | Senior Systems Application Engineer | 3349 Michelson Drive Suite 150 | Irvine, CA 92612
949.428.5880 [o] | 949.870.6935 [m]
[cid:image003.png at 01D20E7A.0BAA12E0]<http://www.hireright.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20180228/85279a25/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4242 bytes
Desc: image001.png
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20180228/85279a25/attachment.png>
More information about the Spacewalk-list
mailing list