• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

error: Unable to open /usr/lib/rpm/rpmrc for reading: No such file or directory

R_A_IIT

New Pleskian
Hi all,

My problem started when I wanted to upgrade PHP 5.3.x to 5.4.x

I followed this Parallels guide "How to upgrade PHP to PHP 5.4 on CentOS 5 from remi repository" found here http://kb.parallels.com/en/115833

After executing step 4 which is:
4. Remove all PHP 5.3 components and the PHP 5.3 configurator:
Code:
rpm -e --nodeps `rpm -qa | grep psa-php53-configurator-`

	rpm -e `rpm -qa | grep 'php53-' | xargs`

I've lost the following:
1- yum
2- rpm
3- plesk access

1- when I type yum, i get:
[root~]# yum
error: Unable to open /usr/lib/rpm/rpmrc for reading: No such file or directory.
error: no dbpath has been set
error: cannot open Packages database in /%{_dbpath}
CRITICAL:yum.main:

Error: rpmdb open failed
[root~]#


2- When I type rpm, I get:
[root~]# rpm
-bash: rpm: command not found
[root~]#


3- when accessing plesk via he web, I get:

ERROR: Service_Agent_Exception
Up Level
Unable to read components configuration from the service node: error: Unable to open /usr/lib/rpm/rpmrc for reading: No such file or directory.
Fatal error: plesk::InternalRpmError(Internal RPM error: Unable to open /usr/lib/rpm/rpmrc for reading: No such file or directory.
)




Please help me I am in serious trouble as this server is very important for us and we invested a lot of time to prepare it for the launch of our websites and online operations.


I am running Centos 6.4 64bit.

Regards,
RA
 
I just had this exact same thing happen to me 10 minutes ago!

I have a few boxes running the exact same setup, so I had to copy over the /usr/lib/rpm directory and of course add the symbolic links and finally added rpm to /bin.

This should fix it but I'd still run : yum install rpm-build.x86_64
 
Last edited:
After executing step 4 which is:
4. Remove all PHP 5.3 components and the PHP 5.3 configurator:
Code:
rpm -e --nodeps `rpm -qa | grep psa-php53-configurator-`

	rpm -e `rpm -qa | grep 'php53-' | xargs`

You must have executed this as a single command, while this should have been two separate commands:

# rpm -e --nodeps `rpm -qa | grep psa-php53-configurator-`

# rpm -e `rpm -qa | grep 'php53-' | xargs`

When ran as a single command rpm just removed itself.
 
Back
Top