• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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