Bug 523145 - improve debuginfo-install's error handling for yum and other exceptions
Summary: improve debuginfo-install's error handling for yum and other exceptions
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-09-14 09:00 UTC by Michal Nowak
Modified: 2014-01-21 23:11 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-04-30 13:14:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michal Nowak 2009-09-14 09:00:28 UTC
Description of problem:

When bug 523140 is trigged, but via debuginfo-installit spits this horrible traceback:

newman abrt-root $ sudo debuginfo-install totem
rpmdb: Thread/process 25047/3087275712 failed: Thread died in Berkeley DB library
error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 -  (-30974)
error: cannot open Packages database in /var/lib/rpm
/usr/lib/python2.6/site-packages/yum/config.py:894: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  raise Errors.YumBaseError("Error: " + e.message)
Traceback (most recent call last):
  File "/usr/bin/debuginfo-install", line 145, in <module>
    util = DebugInfoInstall()
  File "/usr/bin/debuginfo-install", line 46, in __init__
    self.main()
  File "/usr/bin/debuginfo-install", line 50, in main
    opts = self.doUtilConfigSetup()
  File "/usr/share/yum-cli/utils.py", line 84, in doUtilConfigSetup
    self.conf
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 705, in <lambda>
    conf = property(fget=lambda self: self._getConfig(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 242, in _getConfig
    startupconf = config.readStartupConfig(fn, root)
  File "/usr/lib/python2.6/site-packages/yum/config.py", line 798, in readStartupConfig
    startupconf.releasever = _getsysver(startupconf.installroot, startupconf.distroverpkg)
  File "/usr/lib/python2.6/site-packages/yum/config.py", line 894, in _getsysver
    raise Errors.YumBaseError("Error: " + e.message)
yum.Errors.YumBaseError: Error: rpmdb open failed


Can it be shaped in some way to one line error msg?

Version-Release number of selected component (if applicable):

yum-3.2.24-3.fc12.noarch
rpm-4.7.1-4.fc12.i686
yum-utils-1.1.23-3.fc12.noarch

Comment 1 seth vidal 2009-09-16 12:13:28 UTC
Same root cause has been fixed in 523140. However, having debuginfo-install do a better job catching errors is still on the list.

Comment 2 Bug Zapper 2009-11-16 12:21:13 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Tim Lauridsen 2010-04-30 13:14:28 UTC
YumBaseError catching was fixed in yum-3.2.26.


Note You need to log in before you can comment on or make changes to this bug.