<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Racker Hacker &#187; bdb</title>
	<atom:link href="http://rackerhacker.com/tag/bdb/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com</link>
	<description>Words of wisdom from a server administrator</description>
	<lastBuildDate>Wed, 16 May 2012 12:55:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>rpmdb: Lock table is out of available locker entries</title>
		<link>http://rackerhacker.com/2007/05/27/rpmdb-lock-table-is-out-of-available-locker-entries/</link>
		<comments>http://rackerhacker.com/2007/05/27/rpmdb-lock-table-is-out-of-available-locker-entries/#comments</comments>
		<pubDate>Sun, 27 May 2007 16:38:32 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[bdb]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[emergency]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[up2date]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2007/05/27/rpmdb-lock-table-is-out-of-available-locker-entries/</guid>
		<description><![CDATA[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: rpmdb: Lock table is out of available locker entries error: db4 error(22) from db-&#62;close: Invalid argument error: cannot open Packages index using db3 - [...]<p><a href="http://rackerhacker.com/2007/05/27/rpmdb-lock-table-is-out-of-available-locker-entries/">rpmdb: Lock table is out of available locker entries</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>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:</p>
<p>The errors:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">rpmdb: Lock table is out of available locker entries
error: db4 error(22) from db-&gt;close: Invalid argument
error: cannot open Packages index using db3 - Cannot allocate memory (12)
error: cannot open Packages database in /var/lib/rpm</pre></div></div>

<p>Make a backup of /var/lib/rpm in case you break something:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">tar cvzf rpmdb-backup.tar.gz /var/lib/rpm</pre></div></div>

<p>Remove the Berkeley databases that rpm uses:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">rm /var/lib/rpm/__db.00*</pre></div></div>

<p>Make rpm rebuild the databases from scratch (may take a short while):</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">rpm --rebuilddb</pre></div></div>

<p>Now, check rpm to make sure everything is okay:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">rpm -qa | sort</pre></div></div>

<p><b>Why does this happen?</b><br />
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.</p>
<p><a href="http://rackerhacker.com/2007/05/27/rpmdb-lock-table-is-out-of-available-locker-entries/">rpmdb: Lock table is out of available locker entries</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2007/05/27/rpmdb-lock-table-is-out-of-available-locker-entries/feed/</wfw:commentRss>
		<slash:comments>58</slash:comments>
		</item>
	</channel>
</rss>

