Home > General > Fixing RPM Database

Fixing RPM Database

January 13th, 2009

Warning: file_get_contents(http://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService&AWSAccessKeyId=1TJ8QTQ6ZFCVAJ3X1T02&AssociateTag=ii0c3-20&Operation=ItemSearch&SearchIndex=Books&ResponseGroup=Small,Images&Keywords=corrupt) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /home/manusia2/public_html/wp-content/plugins/amazonfeed/php/amazonfeed.class.php on line 271

I have got 3 servers that give problems when running yum update, ouch :( seems all update is failed.. anyway i try to searching on internet and found it.

1. Check for processes holding the rpm database open (usually in MUTEX/FUTEX states):

lsof | grep /var/lib/rpm

If it finds any, kill -9 them all.

2. Delete any temporary DB files:

rm -fv /var/lib/rpm/__*

3. Rebuild your RPM database:

rpm –rebuilddb -v -v

If you still have problems, a reboot is probably quickest, then repeat steps 2 and 3 above.

also don;t forget to kill all process yum and rpmq

At least i dont have to rebooted the server. after doing those command and try to run update again.. it’s work smoothly :)

Tags: corrupt, database, General, rpm, yum update

Related posts

General , , ,

  1. No comments yet.
  1. No trackbacks yet.