OpenVZ Forum


Home » General » Support » yum troubles on centos 5 x86_64
yum troubles on centos 5 x86_64 [message #21490] Tue, 09 October 2007 21:16 Go to previous message
sub0 is currently offline  sub0
Messages: 1
Registered: October 2007
Junior Member
hello,

i'm having yum troubles... platform is centOS 5 x86_64 with Centos 4.4 VEs (based on the default templates)

two different problems:

1. i installed yum into a VE using vzyum, but when running yum from within the VE i get:

[root@boinc06 ~]# yum install joe

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 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 80, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 170, in getOptionsConfig
self.doConfigSetup(fn=opts.conffile, root=root)
File "__init__.py", line 82, in doConfigSetup
File "config.py", line 273, in __init__
File "config.py", line 385, in _getsysver
TypeError: rpmdb open failed


any ideas about what's going on?

...second problem is:


2. after running vzmigrate --online vzyum fails on the new node. it also keeps failing if i move it back to the original node:

[root@joycamp ~]# vzyum 202 install joe
exec /usr/bin/yum -c /vz/template/centos/4/x86_64/config/yum.conf --installroot /vz/root/202 install joe
rpmdb: Program version 4.3 doesn't match environment version
error: db4 error(-30974) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db3 - (-30974)
error: cannot open Packages database in /vz/root/202/var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 82, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 206, in getOptionsConfig
errorlevel=opts.errorlevel)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 132, in doConfigSetup
self.conf = config.readMainConfig(startupconf)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 598, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 661, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed


the output is for two different VEs.

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Missing Crontab pkg for Ubuntu OS template.
Next Topic: Understanding CPU Units
Goto Forum:
  


Current Time: Tue Jul 23 00:29:16 GMT 2024

Total time taken to generate the page: 0.02321 seconds