Symptoms
- Plesk installation/update/upgrade fails with the following error in
/var/log/plesk/install/autoinstaller3.log
:CONFIG_TEXT: Error: Cannot open file /var/cache/yum/x86_64/7/epel/packages/log4cplus-1.1.3-0.4.rc3.el7.x86_64.rpm: [Errno 2] No such file or directory: ‘/var/cache/yum/x86_64/7/epel/packages/log4cplus-1.1.3-0.4.rc3.el7.x86_64.rpm
- The system updates on SSH console are not working with the same error:
# yum update
Error: Cannot open file /var/cache/yum/x86_64/7/epel/packages/log4cplus-1.1.3-0.4.rc3.el7.x86_64.rpm: [Errno 2] No such file or directory: ‘/var/cache/yum/x86_64/7/epel/packages/log4cplus-1.1.3-0.4.rc3.el7.x86_64.rpm - Attempt to clean cache of yum with the following command also returns the same error:
# yum clean all
- Output of the command below shows that there are no third-party repositories configured:
# yum repolist | grep -a10 “repo id” | grep -a10 “repo name” | awk ‘{if(NR>5)print}’
repo id repo name status
PLESK_17_PHP71 PHP 7.1 for Plesk 17 38
PLESK_17_PHP72 PHP 7.2 for Plesk 17 37
PLESK_17_PHP73 PHP 7.3 37
PLESK_18_0_14-extras PLESK_18_0_14 extras 34
base/7/x86_64 CentOS-7 – Base 10019
extras/7/x86_64 CentOS-7 – Extras 435
plesk-migrator Plesk packages for migrator 9
plesk-migrator-tp Plesk 3d-party packages for migrator 0
updates/7/x86_64 CentOS-7 – Updates 2500NOTE: Repositories with PLESK prefixes are Plesk repositories which are not considered as third party. The number of PLESK repos in the above output may be different depending on environment
Cause
Corrupted yum cache.
Resolution
NOTE: The following procedure requires root access to the server. If you do not have access, please, contact your system administrator.
- Connect server via SSH;
-
Create a backup of the current yum cache:
#Â mv /var/cache/yum/x86_64/7/ /var/cache/yum/x86_64/7_back
-
Clean yum cache:
#Â yum clean all
- Re-run installation/update/upgrade of Plesk:
# plesk installer update –repatch