On 07/01/2013 03:58 PM m.roth@5-cent.us wrote:
ken wrote:
On 07/01/2013 03:34 PM Eero Volotinen wrote:
try strace -f rpm -vv -V rpm
Because it looked like the source of the problem (at least one problem) I mv'd off /var/lib/rpm/Packages and did a 'rpm --rebuilddb'. Now it's not hanging anymore, but now...
<snip> One step at a time. Did you do a yum clean all after the rebuild?
# yum clean all Loaded plugins: aliases, allowdowngrade, changelog, downloadonly, fastestmirror, : filter-data, kernel-module, keys, kmod, list-data, merge-conf, : priorities, security, tsflags, verify Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 309, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 157, in main base.getOptionsConfig(args) File "/usr/share/yum-cli/cli.py", line 187, in getOptionsConfig self.conf File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 665, in <lambda> conf = property(fget=lambda self: self._getConfig(), File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 240, in _getConfig self._conf = config.readMainConfig(startupconf) File "/usr/lib/python2.4/site-packages/yum/config.py", line 805, in readMainConfig yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg) File "/usr/lib/python2.4/site-packages/yum/config.py", line 884, in _getsysver hdr = idx.next() StopIteration
Pretty much the same happens here too:
# yum info firefox Loaded plugins: aliases, allowdowngrade, changelog, downloadonly, fastestmirror, : filter-data, kernel-module, keys, kmod, list-data, merge-conf, : priorities, security, tsflags, verify Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 309, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 157, in main base.getOptionsConfig(args) File "/usr/share/yum-cli/cli.py", line 187, in getOptionsConfig self.conf File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 665, in <lambda> conf = property(fget=lambda self: self._getConfig(), File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 240, in _getConfig self._conf = config.readMainConfig(startupconf) File "/usr/lib/python2.4/site-packages/yum/config.py", line 805, in readMainConfig yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg) File "/usr/lib/python2.4/site-packages/yum/config.py", line 884, in _getsysver hdr = idx.next() StopIteration
# cat -n /usr/bin/yum ... 26 sys.path.insert(0, '/usr/share/yum-cli') 27 try: 28 import yummain 29 yummain.user_main(sys.argv[1:], exit_code=True) 30 except KeyboardInterrupt, e: 31 print >> sys.stderr, "\n\nExiting on user cancel." 32 sys.exit(1) [eof]
I don't do python, but it looks like a library file is called at line 29, I'm guessing /usr/share/yum-cli/yummain.py
That's a long file too... well, a bit over 300 lines. And then it calls another python library, which bails with a "StopIteration". I'm in the woods now.