Symptoms
- Plesk upgrade fails:
PLESK_ERROR: Error unpacking rpm package plesk-core-17.5.3-cos7.build1705170317.16.x86_64
plesk-core-12.5.30-cos7.build1205150826.19.x86_64 was supposed to be removed but is not! - Errors inÂ
/tmp/autoinstaller3.log
:error: unpacking of archive failed on file /etc/cron.monthly/50plesk-monthly;5a095bb2: cpio: open
- The following permissions are set to the file mentioned in the error:
# lsattr /etc/cron.monthly/50plesk-monthly
—-i——–e– /etc/cron.monthly/50plesk-monthly
Cause
Immutable bit restricts access to the file.
Resolution
- Connect to Plesk server using SSH;
- Remove immutable attribute from required file or directory, i.e.:
# chattr -i /etc/cron.monthly/50plesk-monthly
If it is needed to remove immutable flag from all files, for example, in
directory:
/usr/bin/
# lsattr /usr/bin/* | grep “-i-” | awk ‘{print $2}’ | while read d; do chattr -i $d;done
Additional information
Plesk upgrade failed with error: cpio: rename failed – Operation not permitted