Symptoms
Plesk upgrade or update procedure fails with errors like the following:
cpio: open failed - Permission denied
Cause
The OS package manager and/or autoinstaller can’t update directories/files because of an immutable attribute for Plesk directories/files.
It is possible to diagnose it with the method below.
This command returns a non-empty result:
# lsattr -R /usr/local/psa/ 2>/dev/null |awk ‘{split($1, a, “”); if (a[5] ~ /i/) {print;}}’
—-i——–e- /usr/local/psa/immutable-file
—-i——–e- /usr/local/psa/admin/immutable-dir
Resolution
Connect to the server via SSH and remove the immutable attribute from Plesk directories/files:
# chattr -iR /usr/local/psa/