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
The thing is, since you do not use vzrpmxx (and you can not, since we do not provide them for amd64) vzpkgcache uses the host rpm -- and it that case host rpm should be of the same version as the VPS rpm -- and in your case this seems to be false.
Are you going to provide vzrpm for x86-64?
In the future, yes. Currently there are some problems with that architecture. The question is when it will happen. I hope in a month or two...
So why offer x86_64 packages at all? Can you suggest some workaround for now, short of tearing down my 64-bit server and throwing a 32-bit OS on there?
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.