<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RPM DB Troubleshooting in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567268#M18182</link>
    <description>&amp;gt; Most actions create those lock files &lt;BR /&gt;&amp;gt; (even a simple query).&lt;BR /&gt;&amp;gt; They don't normally get removed either &lt;BR /&gt;&amp;gt; (as they aren't so much lock files as &lt;BR /&gt;&amp;gt; temporary data files which get locked), &lt;BR /&gt;&amp;gt; so it's not unusual for them to exist.&lt;BR /&gt;&lt;BR /&gt;OK, I thought that they should be there only during an rpm operation/action and get removed after that. Now that you sais that I checked some other RHEL3 servers I manage and you are absulutely right; I saw the lock files on all of them.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; It's a corruption that occurs in those &lt;BR /&gt;&amp;gt; temporary files which causes RPM actions &lt;BR /&gt;&amp;gt; to lock up.&lt;BR /&gt;&lt;BR /&gt;How do you tell if you have corruption in them? &lt;BR /&gt;&lt;BR /&gt;&amp;gt; What sort of actions are you doing that's &lt;BR /&gt;&amp;gt; causing these lockups? &lt;BR /&gt;&lt;BR /&gt;The problem that I see is when I try to run apt-get install or apt-get upgrade (yes, I'm using apt4rpm). apt complains about "The following packages have unmet dependencies" and then lists almost half of the installed packages.&lt;BR /&gt;</description>
    <pubDate>Mon, 20 Jun 2005 20:12:23 GMT</pubDate>
    <dc:creator>Ross Minkov</dc:creator>
    <dc:date>2005-06-20T20:12:23Z</dc:date>
    <item>
      <title>RPM DB Troubleshooting</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567264#M18178</link>
      <description>Linux Gurus,&lt;BR /&gt;&lt;BR /&gt;Here is how I've been dealing with RPM DB problems. Sometimes when a process is killed it may leave some small corruption behind in the RPM database. Usually the simple "rm -f /var/lib/rpm/__db*" removes the files which hold lock state information. When this does not clear up the problem then I try "rpm -vv --rebuilddb" (after I make a backup of /var/lib/rpm) and if the problem is still there I try "rpm -vv --initdb". Today I had a problem where none of the above methods fixed it. So I tried deleting /var/lib/rpm/ directory first and then running "rpm -vv --rebuilddb". That worked. After I did that I asked myself -- since I deleted the RPM DB directory, should I had used "rpm -vv --initdb" instead of "rpm -vv --rebuilddb"? Does it matter which one you use? What do you think?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Ross&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Jun 2005 17:57:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567264#M18178</guid>
      <dc:creator>Ross Minkov</dc:creator>
      <dc:date>2005-06-20T17:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: RPM DB Troubleshooting</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567265#M18179</link>
      <description>Well, the man page say that 'initdb' will just create a new database, not populate it.  I think you should *follow* it with a 'rebuilddb'.&lt;BR /&gt;&lt;BR /&gt;What version of RPM (on what platform) are you using?  You seem to be having a fair bit of RPM troubles.  I know that RH8 had a fair bit which was eventually cleared up with eratta, but.. ?</description>
      <pubDate>Mon, 20 Jun 2005 19:15:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567265#M18179</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-06-20T19:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: RPM DB Troubleshooting</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567266#M18180</link>
      <description>Sorry, I forgot to mention that -- I'm using RHEL3 with rpm-4.2.3-13.&lt;BR /&gt;&lt;BR /&gt;I think I remember the rpm problems around RHL8 -- this was when they split rpmbuild from rpm iirc.&lt;BR /&gt;&lt;BR /&gt;Actually I think that what I did before (deleting the rpm dir and running rpm --rebuilddb) did not not help. I also tried rpm --initdb and had no luck. I ended up restoring the rpm db back, so now I still have the original problem. Any rpm action I try creates the 3 lock files in /var/lib/rpm -- __db.00x (x=1,2,3).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Jun 2005 19:27:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567266#M18180</guid>
      <dc:creator>Ross Minkov</dc:creator>
      <dc:date>2005-06-20T19:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: RPM DB Troubleshooting</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567267#M18181</link>
      <description>Most actions create those lock files (even a simple query).  They don't normally get removed either (as they aren't so much lock files as temporary data files which get locked), so it's not unusual for them to exist.&lt;BR /&gt;&lt;BR /&gt;It's a corruption that occurs in those temporary files which causes RPM actions to lock up.&lt;BR /&gt;&lt;BR /&gt;I have a number of machines with that version of RPM and haven't yet seen such an issue.  What sort of actions are you doing that's causing these lockups?</description>
      <pubDate>Mon, 20 Jun 2005 19:51:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567267#M18181</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-06-20T19:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: RPM DB Troubleshooting</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567268#M18182</link>
      <description>&amp;gt; Most actions create those lock files &lt;BR /&gt;&amp;gt; (even a simple query).&lt;BR /&gt;&amp;gt; They don't normally get removed either &lt;BR /&gt;&amp;gt; (as they aren't so much lock files as &lt;BR /&gt;&amp;gt; temporary data files which get locked), &lt;BR /&gt;&amp;gt; so it's not unusual for them to exist.&lt;BR /&gt;&lt;BR /&gt;OK, I thought that they should be there only during an rpm operation/action and get removed after that. Now that you sais that I checked some other RHEL3 servers I manage and you are absulutely right; I saw the lock files on all of them.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; It's a corruption that occurs in those &lt;BR /&gt;&amp;gt; temporary files which causes RPM actions &lt;BR /&gt;&amp;gt; to lock up.&lt;BR /&gt;&lt;BR /&gt;How do you tell if you have corruption in them? &lt;BR /&gt;&lt;BR /&gt;&amp;gt; What sort of actions are you doing that's &lt;BR /&gt;&amp;gt; causing these lockups? &lt;BR /&gt;&lt;BR /&gt;The problem that I see is when I try to run apt-get install or apt-get upgrade (yes, I'm using apt4rpm). apt complains about "The following packages have unmet dependencies" and then lists almost half of the installed packages.&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Jun 2005 20:12:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567268#M18182</guid>
      <dc:creator>Ross Minkov</dc:creator>
      <dc:date>2005-06-20T20:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: RPM DB Troubleshooting</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567269#M18183</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;may be it is a problem with apt4rpm which corrupts the rpm database. Try to use rpm/yum to install the packages.&lt;BR /&gt;&lt;BR /&gt;Also check up with apt4rpm website for any known issues on particular rpm version you are using.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Gopi</description>
      <pubDate>Tue, 21 Jun 2005 06:25:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567269#M18183</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-06-21T06:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: RPM DB Troubleshooting</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567270#M18184</link>
      <description>Hi Ross,&lt;BR /&gt;&lt;BR /&gt;Sounds like the database is corrupted or rpm thinks there is a pending transaction. Maybe the database file is on hold with a dead install process.&lt;BR /&gt;&lt;BR /&gt;I'm assuming this condition continues after a boot or you can not boot the machine.&lt;BR /&gt;&lt;BR /&gt;I've been told apt is the best installer for working with rpm.&lt;BR /&gt;&lt;BR /&gt;I've had some success with yum. If a product needs to be reinstalled and calculating the dependencies gives me a headache, I do a yum -y install rpm-name and it calculates dependencies and gets them all.&lt;BR /&gt;&lt;BR /&gt;It is not foolproof(take it from a fool). I corrupted an rpm database so badly yesterday I had to redo the system.&lt;BR /&gt;&lt;BR /&gt;Fell asleep before finishing this post last night, hope its still relevent.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 21 Jun 2005 07:54:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567270#M18184</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-06-21T07:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: RPM DB Troubleshooting</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567271#M18185</link>
      <description>'I am but a fool, and have never claimed otherwise'.. ;) from something I wrote about 6-7 years ago ;)</description>
      <pubDate>Tue, 21 Jun 2005 09:31:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567271#M18185</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-06-21T09:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: RPM DB Troubleshooting</title>
      <link>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567272#M18186</link>
      <description>&lt;BR /&gt;It's A Fool's World&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.heavylyrics.com/lyrics/korovakill_lyrics_912/its_a_fools_world_lyrics_29126.html" target="_blank"&gt;http://www.heavylyrics.com/lyrics/korovakill_lyrics_912/its_a_fools_world_lyrics_29126.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;:)&lt;BR /&gt;-Ross</description>
      <pubDate>Tue, 21 Jun 2005 10:13:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/rpm-db-troubleshooting/m-p/3567272#M18186</guid>
      <dc:creator>Ross Minkov</dc:creator>
      <dc:date>2005-06-21T10:13:20Z</dc:date>
    </item>
  </channel>
</rss>

