<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Yum on nagg.eu</title><link>https://nagg.eu/tags/yum/</link><description>Recent content in Yum on nagg.eu</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 29 Aug 2017 12:23:37 +0000</lastBuildDate><atom:link href="https://nagg.eu/tags/yum/index.xml" rel="self" type="application/rss+xml"/><item><title>CentOS and yum - Error: rpmdb open failed</title><link>https://nagg.eu/centos-and-yum-error-rpmdb-open-failed/</link><pubDate>Tue, 29 Aug 2017 12:23:37 +0000</pubDate><guid>https://nagg.eu/centos-and-yum-error-rpmdb-open-failed/</guid><description>&lt;p&gt;Today I had Ansible reporting an error on one of my CentOS machines while performing the usual upgrade procedure.&lt;br&gt;
I SSH&amp;rsquo;d into the host to check what was wrong and run &lt;code&gt;yum clean all &amp;amp;&amp;amp; yum update&lt;/code&gt; manually just to be greeted with the following error:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;rpmdb: PANIC: fatal region error detected; run recovery
error: db3 error(-30974) from dbenv-&amp;gt;open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30974)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

Error: rpmdb open failed
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The solution to the issue luckily was fairly simple and quick:&lt;/p&gt;</description></item></channel></rss>