OpenVZ Forum


Home » General » Support » vzpkgcache issues on amd64
vzpkgcache issues on amd64 [message #1641] Fri, 17 February 2006 14:48 Go to next message
scooter is currently offline  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 #1642 is a reply to message #1641] Fri, 17 February 2006 15:23 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

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.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: vzpkgcache issues on amd64 [message #1823 is a reply to message #1642] Mon, 27 February 2006 08:50 Go to previous messageGo to next message
Eric is currently offline  Eric
Messages: 6
Registered: September 2005
Junior Member
Are you going to provide vzrpm for x86-64?
Re: vzpkgcache issues on amd64 [message #1824 is a reply to message #1823] Mon, 27 February 2006 08:52 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

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...


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: vzpkgcache issues on amd64 [message #1937 is a reply to message #1824] Thu, 09 March 2006 01:15 Go to previous messageGo to next message
vladanian is currently offline  vladanian
Messages: 1
Registered: March 2006
Junior Member
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?
Re: vzpkgcache issues on amd64 [message #2100 is a reply to message #1937] Mon, 20 March 2006 06:43 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

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
http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: Installing Software within VPS
Next Topic: GameServer out of memory
Goto Forum:
  


Current Time: Sun Aug 11 10:13:24 GMT 2024

Total time taken to generate the page: 0.02957 seconds