Has anyone seen this before?
[root@shelob rpm]# yum update 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
Trying to rebuild the rpm database results in a similar error. Any suggestions would be greatly appreciated as this is a remote system that isn't easy for me to get physical access to. 8-(
Cheers,
Chris
On Wed, 2005-07-20 at 06:39 -0400, Chris Mauritz wrote:
Has anyone seen this before? [root@shelob rpm]# yum update rpmdb: Program version 4.2 doesn't match environment version
That's not good IIRC. Might be the reason why the rest is an issue.
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 Trying to rebuild the rpm database results in a similar error.
Are you saying the rebuild completes, but yum still fails? Or the rebuild doesn't complete?
Any suggestions would be greatly appreciated as this is a remote system that isn't easy for me to get physical access to. 8-(
On Wed, 2005-07-20 at 06:39 -0400, Chris Mauritz wrote:
Has anyone seen this before?
[root@shelob rpm]# yum update 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
Trying to rebuild the rpm database results in a similar error. Any suggestions would be greatly appreciated as this is a remote system that isn't easy for me to get physical access to. 8-(
Cheers,
Chris
Try removing the files /var/lib/rpm/__db.00* and then rebuilding the database with the command:
rpm --rebuilddb
Johnny Hughes wrote:
On Wed, 2005-07-20 at 06:39 -0400, Chris Mauritz wrote:
TypeError: rpmdb open failed
Trying to rebuild the rpm database results in a similar error. Any suggestions would be greatly appreciated as this is a remote system that isn't easy for me to get physical access to. 8-(
Cheers,
Chris
Try removing the files /var/lib/rpm/__db.00* and then rebuilding the database with the command:
rpm --rebuilddb
That did it! Thanks guys.
Cheers,
C
On Wed, 2005-07-20 at 07:41 -0400, Chris Mauritz wrote:
That did it! Thanks guys.
Sorry, I had assumed you did the removal of the __db files when you said you had rebuilt the RPM db. That's been pretty standard operating procedure since RHL8/RPM4. (now I guess I posted too little ;-)
On 7/20/05, Bryan J. Smith b.j.smith@ieee.org wrote:
On Wed, 2005-07-20 at 07:41 -0400, Chris Mauritz wrote:
That did it! Thanks guys.
Sorry, I had assumed you did the removal of the __db files when you said you had rebuilt the RPM db. That's been pretty standard operating procedure since RHL8/RPM4. (now I guess I posted too little ;-)
I'm curious. Is this something we all have to look forward to, or is it merely something the user did to break RPM?
On 7/21/05, Phil Schaffner Philip.R.Schaffner@nasa.gov wrote:
On Wed, 2005-07-20 at 19:43 -0600, Collins Richey wrote:
... I'm curious. Is this something we all have to look forward to,
Probably.
or is it merely something the user did to break RPM?
Probably. This is not a new issue - almost a FAQ.
You could save us all a lot of searching if you could be a little more verbose and perhaps even prepare an FAQ. I haven't encountered any problems with yum/rpm since my original 4.0 install. Now up-to-4.1-snuff and still no problems, so it would be nice to know what to avoid.
On Thu, 2005-07-21 at 18:57 -0600, Collins Richey wrote:
On 7/21/05, Phil Schaffner Philip.R.Schaffner@nasa.gov wrote:
On Wed, 2005-07-20 at 19:43 -0600, Collins Richey wrote:
... I'm curious. Is this something we all have to look forward to,
Probably.
or is it merely something the user did to break RPM?
Probably. This is not a new issue - almost a FAQ.
You could save us all a lot of searching if you could be a little more verbose and perhaps even prepare an FAQ. I haven't encountered any problems with yum/rpm since my original 4.0 install. Now up-to-4.1-snuff and still no problems, so it would be nice to know what to avoid.
Sorry if I was a bit too terse/cute. If I knew precisely what to avoid I'd write the FAQ. As far as the fix, seemed to me that at least two good answers in the current thread would suffice.
Cheers, Phil.
Le Wed, 20 Jul 2005 06:39:05 -0400 Chris Mauritz chrism@imntv.com écrivait:
Has anyone seen this before?
Yes. It's because of an update of libdb ... So you have to delete __db.XXX files in /var/lib/rpm directory, and do a rpm --rebuilddb and it should be fine.
[root@shelob rpm]# yum update rpmdb: Program version 4.2 doesn't match environment version error: db4 error(22) from dbenv->open: Invalid argument
[...]