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.
Just tried yum clean all but receive exactly the same error message:
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:
I do not remember the last yum update (a couple of weeks ago) going wrong but finishing as expected.
Suggestions or ideas?
Thank you.
Hakan
On 04/05/14 09:32 pm, Darr247 wrote:
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. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 04/07/2014 05:51 PM, H wrote:
Just tried yum clean all but receive exactly the same error message:
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:
I do not remember the last yum update (a couple of weeks ago) going wrong but finishing as expected.
Suggestions or ideas?
Thank you.
Hakan
On 04/05/14 09:32 pm, Darr247 wrote:
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.
it's an rpm problem not a yum problem you've been told to try rpm --rebuilddb , did you?
and please don't top-post. As you can see it screws things up. Some people just ignore top-posters, I know I often do. You'll get more help if you follow the list rules.
On 04/07/14 12:01 pm, Nicolas Thierry-Mieg wrote:
On 04/07/2014 05:51 PM, H wrote:
Just tried yum clean all but receive exactly the same error message:
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:
I do not remember the last yum update (a couple of weeks ago) going wrong but finishing as expected.
Suggestions or ideas?
Thank you.
Hakan
On 04/05/14 09:32 pm, Darr247 wrote:
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.
it's an rpm problem not a yum problem you've been told to try rpm --rebuilddb , did you?
and please don't top-post. As you can see it screws things up. Some people just ignore top-posters, I know I often do. You'll get more help if you follow the list rules.
Same error messages after running: yum clean all
rpm --rebuilddb:
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)
Could one of the last updates have created this?
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Mon, 07 Apr 2014 20:27:17 -0400 H wrote:
rpm --rebuilddb:
rpmdb: unable to join the environment
When I run that error message through google, this is the very first result:
http://sysadmingear.blogspot.ca/2008/08/how-to-fix-rpmdb-unable-to-join.html
On 08 April 2014 @00:34 zulu, Frank Cox wrote:
On Mon, 07 Apr 2014 20:27:17 -0400 H wrote:
rpm --rebuilddb:
rpmdb: unable to join the environment
When I run that error message through google, this is the very first result:
http://sysadmingear.blogspot.ca/2008/08/how-to-fix-rpmdb-unable-to-join.html
In case that blog site goes down in the future and you found this list's archives in google, the recommended fix there is deleting any files locking the RPM database. e.g. # rm -f /var/lib/rpm/__db*
Or, from user level $ sudo rm -f /var/lib/rpm/__db* or $ su -c rm -f /var/lib/rpm/__db*
Then use the rpm --rebuilddb command again to rebuild the database, which could have been corrupted during the same crash that left the (typically zero-byte) semaphore file[s] as detritus.
Thank you. I have now rebuilt the database and also secured the server against the heartbleed bug. I do wonder, however, why the rpm database crashed? It completed the last yum update just fine.
On April 8, 2014 2:46:59 PM EDT, Darr247 darr247@gmail.com wrote:
On 08 April 2014 @00:34 zulu, Frank Cox wrote:
On Mon, 07 Apr 2014 20:27:17 -0400 H wrote:
rpm --rebuilddb:
rpmdb: unable to join the environment
When I run that error message through google, this is the very first
result:
http://sysadmingear.blogspot.ca/2008/08/how-to-fix-rpmdb-unable-to-join.html
In case that blog site goes down in the future and you found this list's archives in google, the recommended fix there is deleting any files locking the RPM database. e.g. # rm -f /var/lib/rpm/__db*
Or, from user level $ sudo rm -f /var/lib/rpm/__db* or $ su -c rm -f /var/lib/rpm/__db*
Then use the rpm --rebuilddb command again to rebuild the database, which could have been corrupted during the same crash that left the (typically zero-byte) semaphore file[s] as detritus. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
H wrote:
Thank you. I have now rebuilt the database and also secured the server against the heartbleed bug. I do wonder, however, why the rpm database crashed? It completed the last yum update just fine.
Top posting yet again. This is a disease that apparently has no cure!!!
Tsk, tsk, ak.
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.