Symptoms
-
The following errors appear at the log when Upgrading to Plesk Obsidian
Error: Cannot open file /var/cache/yum/x86_64/6/PLESK_17_PHP70/packages/plesk-php70-sodium-2.0.13-0centos.6.181207.1259.x86_64.rpm: [Errno 2] No such file or directory: '/var/cache/yum/x86_64/6/PLESK_17_PHP70/packages/plesk-php70-sodium-2.0.13-0centos.6.181207.1259.x86_64.rpm'
...
TypeError: an integer is required
error: python callback <bound method RPMTransaction.callback of <yum.rpmtrans.RPMTransaction instance at 0x6324e18>> failed, aborting!
processTransaction event: 10 (Downloading Packages)
processTransaction event: 11 (unknown)
processTransaction event: 20 (Check Package Signatures)
processTransaction event: 30 (Running Test Transaction)
processTransaction event: 40 (Running Transaction) -
There are multiple Plesk packages duplicated
# package-cleanup –dupes
Complementos cargados:fastestmirror
psa-watchdog-18.0-2.centos.6+p18.0.21.0+t191118.1201.x86_64
psa-watchdog-17.8.11-cos6.build1708190221.14.x86_64
passenger-5.3.5.1-centos6.19061317.x86_64
passenger-6.0.2-2.centos.6+p18.0.18.0+t190821.1600.x86_64
psa-courier-unicode-2.0-0centos.6.180301.1930.x86_64
psa-courier-unicode-2.1-2.centos.6+p18.0.20.0+t191016.1156.x86_64
psa-autoinstaller-3.22.14-0centos.6.190117.1649.x86_64
psa-autoinstaller-3.23.21-1centos.6.191111.1307.x86_64
psa-courier-authlib-0.68.0-0centos.6.180301.1930.x86_64
psa-courier-authlib-0.69.1-2.centos.6+p18.0.21.0+t191101.1400.x86_64
psa-selinux-17.8.11-cos6.build1708190226.15.noarch
psa-selinux-18.0.6-2.centos.6+p18.0.21.0+t191115.1758.noarch
Cause
Missing files at the Yum Cache folder located at /var/cache/yum/x86_64
.
According to PPP-45429, it’s not considered as a bug.
Resolution
-
Connect to the server via SSH
-
Check for duplicate packages with the command below
# package-cleanup –dupes
Note:
package-cleanup
utility is provided byyum-utils
package. If package is not installed useyum install yum-utils
-
Make sure that important packages will not be removed and then remove duplicates using the following method
Warning: It’s highly advised to have a full server backup before proceed with further steps of this article.
# package-cleanup –cleandupes
-
Re-check duplicates
# package-cleanup –dupes
-
If any package still reported, remove it manually
# rpm -e –nodeps –noscripts <package_name>
-
-
Complete the upgrade:
# plesk installer update –repatch