Bug 476549 - TB0e4166fe config.py:755:_getsysver:TypeError: rpmdb open failed
TB0e4166fe config.py:755:_getsysver:TypeError: rpmdb open failed
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: pirut (Show other bugs)
x86_64 Linux
low Severity medium
: rc
: ---
Assigned To: James Antill
Depends On:
  Show dependency treegraph
Reported: 2008-12-15 10:17 EST by Gerardo Fontes
Modified: 2013-03-12 16:24 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-03-12 16:24:17 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Gerardo Fontes 2008-12-15 10:17:54 EST
Description of problem:
Component: pirut
Summary: TB0e4166fe config.py:755:_getsysver:TypeError: rpmdb open failed

Traceback (most recent call last):
  File "/usr/sbin/pup", line 617, in ?
  File "/usr/sbin/pup", line 609, in main
    pup = PackageUpdater(not options.autoapply, options.config)
  File "/usr/sbin/pup", line 84, in __init__
    GraphicalYumBase.__init__(self, False, config)
  File "/usr/lib/python2.4/site-packages/pirut/__init__.py", line 137, in __init__
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 118, in doConfigSetup
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 164, in _getConfig
    self._conf = config.readMainConfig(startupconf)
  File "/usr/lib/python2.4/site-packages/yum/config.py", line 685, in readMainConfig
    yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
  File "/usr/lib/python2.4/site-packages/yum/config.py", line 755, in _getsysver
    idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed

Local variables in innermost frame:
installroot: /
ts: <rpmUtils.transaction.TransactionWrapper instance at 0x146eb290>
distroverpkg: redhat-release

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

How reproducible:
Each time I try to update packages.

Steps to Reproduce:
1. Login.
2. Click on Software Updater.
3. Enter password.
Actual results:
A dialog box containing the description of the problem appears and I cannot update any packages.

Expected results:
Package updater list.

Additional info:
[gerardo@mx29idme ~]$ cat /etc/redhat-release 
Red Hat Enterprise Linux Client release 5.2 (Tikanga)
[gerardo@mx29idme ~]$ uname -a
Linux mx29idme 2.6.18-92.1.13.el5 #1 SMP Thu Sep 4 03:51:21 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
[gerardo@mx29idme ~]$
Comment 1 James Antill 2013-03-12 16:24:17 EDT
 The above implies some problem with your rpmdb ... so none of rpm/yum/etc. would work.

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