Help - Search - Members - Calendar
Full Version: WARNING! 7.1.6 RHE3 new update = problem !?
The Planet Forums > Control Panels > Plesk
x007
Not sure what is the relation here,


but after installing the new RHE3 update plesk failed to load..
Get an error RPM db error blabla..


fixed this whit a reboot then;

rpm --rebuilddb

Now plesk load properly..

If this can help some other...
x007
Same prob whit a 7.04 server i just updated...

Btw it have more than this.. ;

THis apear to corrupt the rpm database completly, so after
if you do a "rpm -q kernel" for example you will got error...


So to fix this thing ;


cd /var/lib/rpm/

if you want to keep a copy of the database ;

mv __* /var/lib/rpm/olddatadabasesave/

then ;

rpm --rebuilddb



Then apear to be ok now..

Hope this help icon_wink.gif
Gravity
This does not fix the problem.

Either up2date is broken or Plesk is broken...
x007
i know...

This prob will goes worst when all PPL start updating there Plesk box whit the RHE3 patch...

I dont know what the fix will be but need one for sure...
x007
REverting to the old package do the trick ...

up2date --get rpm-4.2.3-10 rpm-python-4.2.3-10 rpm-build-4.2.3-10 rpm-devel-4.2.3-10 rpm-libs-4.2.3-10

cd /var/spool/up2date

rpm -Uvh --oldpackage rpm-4.2.3-10.i386.rpm rpm-build-4.2.3-10.i386.rpm rpm-devel-4.2.3-10.i386.rpm rpm-libs-4.2.3-10.i386.rpm rpm-python-4.2.3-10.i386.rpm

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

rpm --rebuilddb


Also i suggest to put rpm* in the up2date skiplist...
Anyway rpm doesnt have any impact on security at all..


Yeha icon_biggrin.gif icon_wink.gif
rufusstalin
Thanks x007, had the same problem and did exactly what you said and its working now, you da' man.

Cheers
Rufo
x007
QUOTE
Originally posted by rufusstalin
Thanks x007, had the same problem and did exactly what you said and its working now, you da' man.

Cheers
Rufo



No prob icon_wink.gif
nacarls
still doesnt fix the problem for me.

after trying to download the rpms i get the following error:

Fetching package list for channel: rhel-*
########################################
The following packages are not available:
rpm-4.2.3-10
rpm-python-4.2.3-10
rpm-build-4.2.3-10
rpm-devel-4.2.3-10
rpm-libs-4.2.3-10

$>rpm -q rpm
rpm-4.2.1-4.2
x007
Check in /var/spool/up2date, the older rpm are probably in there..


QUOTE
Originally posted by nacarls
still doesnt fix the problem for me.

after trying to download the rpms i get the following error:

Fetching package list for channel: rhel-*
########################################
The following packages are not available:
rpm-4.2.3-10
rpm-python-4.2.3-10
rpm-build-4.2.3-10
rpm-devel-4.2.3-10
rpm-libs-4.2.3-10

$>rpm -q rpm
rpm-4.2.1-4.2
nacarls
they are all *.hdr files though. No rpms are in this folder.

after trying the command

rpm -Uvh --oldpackage rpm-4.2.3-10.i386.rpm rpm-build-4.2.3-10.i386.rpm rpm-devel-4.2.3-10.i386.rpm rpm-libs-4.2.3-10.i386.rpm rpm-python-4.2.3-10.i386.rpm

it tells me there are no such files or folders.
x007
take a look on rpmfind.net may be..
nacarls
ok i did a reinstall of the base plesk rpms with a force to it and it went through ok. But the problem still existed. So i sent it over to ev1 techs to see if they could figure it out.

Not long later they replied to the ticket, saying they just reinstalled the base rpms of plesk again and it worked.

figure that one out.

As always ev1 has the magic touch and fixed it quicker then i could post about it.

thanks again guys.
_z_
thanks x007 -- your rpm revert trick seems to have worked. Been struggling with this for a while -- rming the __ db files, running up2date and then finding plesk not loading.. doing rpm -rebuilddb and so on..

Cheers

-z
x007
QUOTE
Originally posted by _z_
thanks x007 -- your rpm revert trick seems to have worked.  Been struggling with this for a while -- rming the __ db files, running up2date and then finding plesk not loading.. doing rpm -rebuilddb and so on..

Cheers

-z


noprob happy it have helpded...
icon_wink.gif
Macao
rpm -Uvh --oldpackage rpm-4.2.3-10.i386.rpm rpm-build-4.2.3-10.i386.rpm rpm-devel-4.2.3-10.i386.rpm rpm-libs-4.2.3-10.i386.rpm rpm-python-4.2.3-10.i386.rpm

gives:
error: cannot open Packages index using db3 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm

any ideas?
x007
QUOTE (Macao)
rpm -Uvh --oldpackage rpm-4.2.3-10.i386.rpm rpm-build-4.2.3-10.i386.rpm rpm-devel-4.2.3-10.i386.rpm rpm-libs-4.2.3-10.i386.rpm rpm-python-4.2.3-10.i386.rpm

gives:  
error: cannot open Packages index using db3 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm

any ideas?


Are you whit user root may be ?
Macao
yep. should I switch to admin? :confused: :eek:
x007
no .. if you are root its ok.. just wanted to make sure..

may be try rebuild the db;
rpm --rebuilddb
Macao
rpm -rebuilddb

error: failed to replace old database with new database!
error: replace files in /var/lib/rpm with files from /var/lib/rpmrebuilddb.1771 to recovererror: failed to remove directory /var/lib/rpmrebuilddb.1771: Directory not empty

I tried deleting the database files from rpm directory, and also chowning them to rpm.rpm instead of root.root, nothing worked.
x007
QUOTE (Macao)
rpm -rebuilddb

error: failed to replace old database with new database!
error: replace files in /var/lib/rpm with files from /var/lib/rpmrebuilddb.1771 to recovererror: failed to remove directory /var/lib/rpmrebuilddb.1771: Directory not empty  

I tried deleting the database files from rpm directory, and also chowning them to rpm.rpm instead of root.root, nothing worked.


in var/lib/rpm
rename all __db.XXX __db.xxx.save

then retry rebuild the db
those file should be root:root and the db should rebuild as well..


i cant tell you very mutch more if this is not working.. hard to tell more at first look.. may be someone else can help you..
Macao
deleted the files in /var/lib/rpm
did rpm --rebuilddb

error: failed to replace old database with new database!
error: replace files in /var/lib/rpm with files from /var/lib/rpmrebuilddb.26406 to recovererror: failed to remove directory /var/lib/rpmrebuilddb.26406: Directory not empty

but though i get the error, the __db.* files are re-created.

"rpm -qa kernel" - works

"rpm -e package-name" - doesn't work
error: cannot open Packages index using db3 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm

"rpm -uvh package-name" - doesn't work
error: cannot open Packages index using db3 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm


I researched it in Google and most solved the problem (database corruption) with --rebuilddb, then for those that this didn't did the rpm upgrade with -uvh, and solved it, but that doesn't work either. Now EV1 says we need to update the SSL certificates to use up2date, but you guessed it - rpm -Uvh doesn't work icon_sad.gif

Could it have anything to do with upgrading MySQL? That's the one and only thing I used rpm to upgrade and it worked. Are the mysql/rpm databases connected somehow?
x007
i dont think this has to do whit mysql.. but if your prob have started
after you have upgrade mysql, may be its the cause..
if you can't do a rpm -Uvh ... well its a problem then..
i dont know what to tell to you, make a search whit "rebuilddb"
in the forum here or in the plesk forum may be you will find someting helpfull.


QUOTE (Macao)
deleted the files in /var/lib/rpm
did rpm --rebuilddb

error: failed to replace old database with new database!
error: replace files in /var/lib/rpm with files from /var/lib/rpmrebuilddb.26406 to recovererror: failed to remove directory /var/lib/rpmrebuilddb.26406: Directory not empty

but though i get the error, the __db.* files are re-created.

"rpm -qa kernel" - works

"rpm -e package-name" - doesn't work
error: cannot open Packages index using db3 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm

"rpm -uvh package-name" - doesn't work
error: cannot open Packages index using db3 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm


I researched it in Google and most solved the problem (database corruption) with --rebuilddb, then for those that this didn't did the rpm upgrade with -uvh, and solved it, but that doesn't work either. Now EV1 says we need to update the SSL certificates to use up2date, but you guessed it - rpm -Uvh doesn't work  :(  

Could it have anything to do with upgrading MySQL? That's the one and only thing I used rpm to upgrade and it worked. Are the mysql/rpm databases connected somehow?
sander815
is there a working solution now?
just had a new box with centos 3.5 and 7.1.7 and, very nice, getting this error icon_sad.gif
Macao
QUOTE (sander815)
is there a working solution now?
just had a new box with centos 3.5 and 7.1.7 and, very nice, getting this error icon_sad.gif


What control panel? Or plain redhat?
sander815
well, since this is a plesk forum, plesk on centos 3.5 icon_smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.