|
|
|
Re: ERROR: OSTEMPLATE is not set [message #22726 is a reply to message #22691] |
Fri, 02 November 2007 08:49 |
|
Hello,
What is the node ID, in which you going to install a package using vzyum ?
# vzlist -a , will give you the list of nodes
suppose '101 ' is the vEID then you can install httpd in that node as follows,
# vzyum 101 install httpd
Before that, please ensure that the os template is included in the conf
# grep -i OSTEMPLATE /etc/sysconfig/vz-scripts/101.conf
OSTEMPLATE="centos-4-i386-minimal"
#vzpkgls |grep centos-4-i386-minimal
centos-4-i386-minimal
Also " man vzyum " will help you
Sherinmon A,
|
|
|
|
Re: ERROR: OSTEMPLATE is not set [message #30620 is a reply to message #22726] |
Fri, 30 May 2008 09:25 |
ittec
Messages: 41 Registered: February 2008
|
Member |
|
|
Hi
I have same trouble with vzyum.
Kernel: Linux 2.6.18-53.1.13.el5.028stab053.10PAE #1 SMP Tue Apr 1 15:44:34 MSD 2008 i686 i686 i386 GNU/Linux
Templates:
centos-5-i386-minimal
centos-5-i386-default
centos-4-i386-minimal
centos-4-i386-default
But its very strange. I have followed the answers of mastersherin to find a solution. I found some errors in some vz.conf of some templates, some of them hasn't OSTEMPLATE configured. Currently I have 9 VE running. But there are containers that is impossible to update with vzyum. Error is :
exec /usr/share/vzyum/bin/yum -c /vz/template/centos/5/i386/config/yum.conf --installroot /vz/root/249032 --vps=249032 update
rpmdb: unable to initialize mutex: Argumento inválido
rpmdb: PANIC: Argumento inválido
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/249032/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
Conf file with vzyum error:
# grep OSTEMPLATE /etc/sysconfig/vz-scripts/249032.conf
OSTEMPLATE="centos-5-i386-minimal"
this template is installed in /vz/template/cache...any more ideas to solve this?
|
|
|
|
Re: ERROR: OSTEMPLATE is not set [message #30630 is a reply to message #30620] |
Fri, 30 May 2008 12:14 |
maratrus
Messages: 1495 Registered: August 2007 Location: Moscow
|
Senior Member |
|
|
Hi,
did this problem appear unexpectedly or this is a persistent problem with centos-5-i386-minimal template? Can you reproduce it with newly created VE based on that template?
May be somebody corrupted rpm database inside VE.
May be it's worth rebuild data base inside VE?
"rpm --rebuilddb"
|
|
|