Tue, 17 Feb 2009 13:09:31 -0800 (PST)
Hello,
I moved from a centos4 to centos5 based system. The new system is a DHozak kernel:
2.6.22.19-vs2.3.0.34.1 and I'm running is util-vserver-0.30.216-1.pre2793.
I copied over /etc/vservers and /vservers to the new host using tar since there are
symbolic links. However, now that I'm on the new host, I am unable to run vyum on any
of my guests. They are a combination of centos 4 and 5. I was running an older version
of util-vserver on the previous host; I do not know the exact version now.
This is the error I get:
[root@servernew ~]# vyum j_hia -- check-update
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 /vservers/j_hia/.rpmdb
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 85, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 163, in getOptionsConfig
disabled_plugins=self.optparser._splitArg(opts.disableplugins))
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 706, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 776, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed
Any help would be appreciated in being able to use vyum again.
Thanks!
Eric
Hello,
I moved from a centos4 to centos5 based system. The new system is a DHozak kernel: 2.6.22.19-vs2.3.0.34.1 and I'm running is util-vserver-0.30.216-1.pre2793.
I copied over /etc/vservers and /vservers to the new host using tar since there are symbolic links. However, now that I'm on the new host, I am unable to run vyum on any of my guests. They are a combination of centos 4 and 5. I was running an older version of util-vserver on the previous host; I do not know the exact version now.
This is the error I get:
[root@servernew ~]# vyum j_hia -- check-update
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 /vservers/j_hia/.rpmdb
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 85, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 163, in getOptionsConfig
disabled_plugins=self.optparser._splitArg(opts.disableplugins))
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 706, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File
"/usr/lib/python2.4/site-packages/yum/config.py", line 776, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed
Any help would be appreciated in being able to use vyum again.
Thanks!
Eric