OpenVZ Forum


Home » General » Support » ERROR: OSTEMPLATE is not set
Re: ERROR: OSTEMPLATE is not set [message #30620 is a reply to message #22726] Fri, 30 May 2008 09:25 Go to previous messageGo to previous message
ittec is currently offline  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? Embarassed
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 49 VE as limit?
Next Topic: Install problem : 'vz' is not a valid service name
Goto Forum:
  


Current Time: Sat Aug 02 14:00:46 GMT 2025

Total time taken to generate the page: 0.96872 seconds