rpmdb: Lock table is out of available locker entries
If up2date throws some horrible Python errors and rpm says “rpmdb: Lock table is out of available locker entries”, you can restore your system to normality with the following:
The errors:
Make a backup of /var/lib/rpm in case you break something:
tar cvzf rpmdb-backup.tar.gz /var/lib/rpm
Remove the Berkeley databases that rpm uses:
Make rpm rebuild the databases from scratch (may take a short while):
Now, check rpm to make sure everything is okay:
Why does this happen?
When rpm accesses the Berkeley database files, it makes temporary locker entries within the tables while it searches for data. If you control-c your rpm processes often, this issue will occur much sooner because the locks are never cleared.
Update: As of February 2009, this post received five times the visits of my next most popular post. This situation must happen very often!
rpmdb: Lock table is out of available locker entries
If up2date throws some horrible Python errors and rpm says “rpmdb: Lock table is out of available locker entries”, you can restore your system to normality with the following:
The errors:
Make a backup of /var/lib/rpm in case you break something:
tar cvzf rpmdb-backup.tar.gz /var/lib/rpm
Remove the Berkeley databases that rpm uses:
Make rpm rebuild the databases from scratch (may take a short while):
Now, check rpm to make sure everything is okay:
Why does this happen?
When rpm accesses the Berkeley database files, it makes temporary locker entries within the tables while it searches for data. If you control-c your rpm processes often, this issue will occur much sooner because the locks are never cleared.
Update: As of February 2009, this post received five times the visits of my next most popular post. This situation must happen very often!