OpenVZ Forum


Home » General » Support » vzyum database recovery -- was vzpkgcache fail
vzyum database recovery -- was vzpkgcache fail [message #22087] Fri, 19 October 2007 18:28 Go to previous message
dranch is currently offline  dranch
Messages: 33
Registered: August 2007
Member
Hello Everyone,

Per the Russian forum, another user had an issue with "vzyum" where it would fail. I've noticed the following and I was curious if there is a fix for this issue.


What was the solution to this problem (the answer isn't in English)? I've noticed that vzyum will always stop working but if I go into each VE and locally run "yum update", things get cleaned up for vzyum to run again without issue for a while more. But, a day later, the issue comes back.


Below I show that:

1. "vzyum update" fails
2. I enter the VE, locally run "yum update"
3. I exit the VE, rerun "vzyum 100 update" and it works (for
some period of time


1. "vzyum 100 update" fails
---------------------------------------------------------
# vzyum 100 install am-utils
exec /usr/share/vzyum/bin/yum -c /vz/template/centos/5/i386/config/yum.conf --installroot /vz/root/100 --vps=100 install am-utils
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/100/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


2. Enter VE and run "yum update"
--------------------------------------------------------
# /usr/sbin/vzctl enter 100
entered into VE 100
dolly-centos5-A:/# yum update
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
base 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
No Packages marked for Update/Obsoletion


3. Exit the VE and again run "vzyum 100 update" and it works
for some period of time
------------------------------------------------------------
# exit
logout

exited from VE 100
dolly-centos5-openvz:/etc# vzyum 100 install am-utils
exec /usr/share/vzyum/bin/yum -c /vz/template/centos/5/i386/config/yum.conf --installroot /vz/root/100 --vps=100 install am-utils
Setting up Install Process
Setting up repositories
centos5-vz-addons 100% |=========================| 951 B 00:00
centos5-updates-released 100% |=========================| 951 B 00:00
centos5-base 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do"
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: kernel Problem
Next Topic: [solved] How to determine which HN a VE is running on
Goto Forum:
  


Current Time: Sat Aug 31 23:39:38 GMT 2024

Total time taken to generate the page: 0.06125 seconds