Results 1 to 6 of 6

Thread: Yum and Webmin

  1. #1
    Join Date
    Apr 2005
    Location
    Oz
    Posts
    3,498

    Yum and Webmin

    Hi all,
    I have a server with CentOS 3.4 installed and the webmin control panel.
    Last night I updated with yum, and this morning yum seems broken. I get this error...

    Code:
    rpmdb: Program version 4.2 doesn't match environment version
    error: db4 error(22) from dbenv->open: Invalid argument
    error: cannot open Packages index using db3 - Invalid argument (22)
    error: cannot open Packages database in /var/lib/rpm
    Traceback (most recent call last):
      File "/usr/bin/yum", line 30, in ?
        yummain.main(sys.argv[1:])
      File "/usr/share/yum/yummain.py", line 163, in main
        (log, errorlog, filelog, conf, cmds) = parseCmdArgs(args)
      File "/usr/share/yum/yummain.py", line 75, in parseCmdArgs
        conf=yumconf(configfile=yumconffile)
      File "/usr/share/yum/config.py", line 155, in __init__
        self.yumvar['releasever'] = self._getsysver()
      File "/usr/share/yum/config.py", line 285, in _getsysver
        idx = ts.dbMatch('provides', self.distroverpkg)
    TypeError: rpmdb open failed
    Can anyone help me?
    Thanks,

  2. #2
    Join Date
    Apr 2005
    Location
    Oz
    Posts
    3,498
    Hm, odd. A simple reboot took care of it.
    Nevermind then!

  3. #3
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    464
    I think your rpm-python version does not match your rpm version, or something like that.
    Net Logistics Web Hosting - Solutions Through Innovation

  4. #4
    Join Date
    Apr 2005
    Location
    Oz
    Posts
    3,498
    I have no idea what it was, but whatever it was it was fixed with a simple reboot.
    It was the first time I had updated the server after install, so that may be part of it.

  5. #5
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,290
    for future reference:

    rm -f /var/lib/rpm/__db*
    rpm -v -v --rebuilddb

    would have fixed that error
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  6. #6
    Join Date
    Apr 2005
    Location
    Oz
    Posts
    3,498
    Thanks, I'll make sure I write that down

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •