moved hd and vzyum dosn't work [message #30794] |
Fri, 06 June 2008 17:22 |
lcslouis
Messages: 26 Registered: September 2006
|
Junior Member |
|
|
i have a problem with vzyum
/etc/sysconfig/vz-scripts//102.conf: line 16: USA: command not found
exec /usr/share/vzyum/bin/yum -c /vz/template/fedora-core/4/i386/config/yum.conf --installroot /vz/root/102 --vps=102 install libssl.so
rpmdb: unable to initialize mutex: Invalid argument
rpmdb: PANIC: Invalid argument
rpmdb: PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
error: db4 error(-30977) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30977)
error: cannot open Packages database in /vz/root/102/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
i moved the vz to vz2/private/102/
how can i fix this?
|
|
|
|
|
|
|
Re: moved hd and vzyum dosn't work [message #30830 is a reply to message #30827] |
Sat, 07 June 2008 15:18 |
maratrus
Messages: 1495 Registered: August 2007 Location: Moscow
|
Senior Member |
|
|
Hi,
please go there, then press "diff" - here is the patch.
then press "raw" save the patch.
then apply it to /usr/share/vzpkg/functions
(patch -p1 /usr/share/vzpkg/functions < PATCH_NAME)
P.S. If it's some problem with applying pay attention to the order of arches in this string
ARCHES="i386 x86_64 ia64 x86"
Everything should work.
|
|
|