I am running CentOS 6.5 in a VZ container and today when I wanted to run yum update command I receive the following error messages: rpmdb: unable to join the environment error: db3 error(11) from dbenv->open: Resource temporarily unavailable error: cannot open Packages index using db3 - Resource temporarily unavailable (11) error: cannot open Packages database in /var/lib/rpm CRITICAL:yum.main: Googling the message I find several-year old posts where it seems that the database has been corrupted (or similar.) Has anyone else seen this recently and is there a recommended fix? Thank you. Hakan
On 06 April 2014 @00:46 zulu, H wrote:> Googling the message I find several-year old posts where it seems that > the database has been corrupted (or similar.) Has anyone else seen this > recently and is there a recommended fix? >If you're in the /etc/sudoers file... $ sudo yum clean all $ sudo rpm --rebuilddb otherwise, try $ su -c yum clean all $ su -c rpm --rebuilddb NB there are 2 dashes in front of rebuilddb.
On 04/05/2014 08:46 PM, H wrote:> I am running CentOS 6.5 in a VZ container and today when I wanted to run > yum update command I receive the following error messages: > > rpmdb: unable to join the environment > error: db3 error(11) from dbenv->open: Resource temporarily unavailable > error: cannot open Packages index using db3 - Resource temporarily > unavailable (11) > error: cannot open Packages database in /var/lib/rpm > CRITICAL:yum.main:We have in the past seen openvz containers with thread restrictions which prevent yum/rpm from functioning properly. If the host is implementing a thread limit it's entirely possible that this is the cause, as yum and rpm start quite a few threads. -- Jim Perrin The CentOS Project | http://www.centos.org twitter: @BitIntegrity | GPG Key: FA09AD77