[Yum] Errors when running needs-restarting

Philip Cook mouseskowitz at yahoo.com
Fri Apr 26 02:49:26 UTC 2019


I found one other use posting this problem on the zammad github, but no solution. I'm really hoping someone here can help. 
I am running CentOS Linux release 7.6.1810 (Core) and get the following error when running sudo needs-restarting or sudo needs-restarting -s.
Traceback (most recent call last):  File "/bin/needs-restarting", line 240, in <module>    sys.exit(main(sys.argv))  File "/bin/needs-restarting", line 209, in main    for oldpkg in my.pkgSack.searchFiles(just_fn): # ghostfiles are always bogons  File "/usr/lib/python2.7/site-packages/yum/packageSack.py", line 468, in searchFiles    return self._computeAggregateListResult("searchFiles", name)  File "/usr/lib/python2.7/site-packages/yum/packageSack.py", line 595, in _computeAggregateListResult    sackResult = apply(method, args)  File "/usr/lib/python2.7/site-packages/yum/sqlitesack.py", line 46, in newFunc    return func(*args, **kwargs)  File "/usr/lib/python2.7/site-packages/yum/sqlitesack.py", line 957, in searchFiles    self.populate(repo, mdtype='filelists')  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 251, in populate    xml = repo_get_function()  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1922, in getFileListsXML    return self.retrieveMD('filelists')  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1819, in retrieveMD    return self._retrieveMD(mdtype)  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1827, in _retrieveMD    thisdata = self.repoXML.getData(mdtype)  File "/usr/lib/python2.7/site-packages/yum/repoMDObject.py", line 208, in getData    raise RepoMDError, "requested datatype %s not available" % typeyum.Errors.RepoMDError: requested datatype filelists not available
The issue seems to be limited to just one of my servers, works normally on an identical install. I have tried removing and reinstalling yum-utils with no change. Running sudo needs-restarting -r returns normal results. 
How do I return this to a normal functioning state?
-Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum/attachments/20190426/a0022209/attachment.html>


More information about the Yum mailing list