vzpkgcache issues on amd64 [message #1641] |
Fri, 17 February 2006 14:48 |
scooter
Messages: 38 Registered: December 2005 Location: Texas
|
Member |
|
|
got an new opteron running rhel64
Evertything seems fine except trying to build the OS cache on centos 4.2
Creating cache for centos-4-i386-default OS template
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 /vz/root/100001/var/lib/rpm
Traceback (most recent call last):
File "/usr/share/vzyum/bin/yum", line 28, in ?
yummain.main(sys.argv[1:])
File "/usr/share/vzyum/yum-cli/yummain.py", line 75, in main
base.getOptionsConfig(args)
File "/usr/share/vzyum/yum-cli/cli.py", line 172, in getOptionsConfig
self.doConfigSetup(fn=opts.conffile, root=root, vps=opts.vps)
File "/usr/share/vzyum/lib/yum/__init__.py", line 82, in doConfigSetup
self.conf = config.yumconf(configfile=fn, root=root, vps=vps)
File "/usr/share/vzyum/lib/yum/config.py", line 271, in __init__
self.yumvar['releasever'] = self._getsysver()
File "/usr/share/vzyum/lib/yum/config.py", line 384, in _getsysver
idx = ts.dbMatch('provides', self.getConfigOption('distroverpkg'))
TypeError: rpmdb open failed
ERROR: yum failed with 1 exit code
[root@vps2 openvz]#
i did comment out the PYTHON path which i found in this forum, i then had python-celementtree-1.0.5-1.2.el4.rf.x86_64.rpm installed but it griped about couldn't find the cElementtree.so module, so i tried python-elementtree-1.2.6-6.2.el4.rf.x86_64.rpm and i get the above errors.
First time working with a 64 bit system, not sure if i'm doing something wrong or not.
scooter
|
|
|
|
|
|
|
Re: vzpkgcache issues on amd64 [message #2100 is a reply to message #1937] |
Mon, 20 March 2006 06:43 |
|
I can suggest several workarounds
(1) Use precreated templates, so you will not need vzpkgcache at all.
(2) Modify cache-os script as it was described somewhere here at the forum (use search). That way it will use host system's rpm. The downside is you will only be able to use the same version of rpm in VPS as you have on the host system.
Kir Kolyshkin
|
|
|