Plesk

Plesk update failed: error: unpacking of archive failed on file /var/lib/psa/dumps: cpio: chown failed – Permission denied

Symptoms

Error unpacking rpm package psa-18.0.35-2.centos.7+p18.0.35.1+t210430.1108.x86_64
psa-18.0.35-2.centos.7+p18.0.35.0+t210414.1515.x86_64 was supposed to be removed but is not!
Exception: Scriptlet or other non-fatal errors occurred during transaction.
error: unpacking of archive failed on file /var/lib/psa/dumps: cpio: chown failed - Permission denied
Verify: 1/2: psa.x86_64 0:18.0.35-2.centos.7+p18.0.35.1+t210430.1108 - u
Verify: 2/2: psa.x86_64 0:18.0.35-2.centos.7+p18.0.35.0+t210414.1515 - ud

Cause

Incorrect permissions on /var/lib/psa/dumps directory:

# ls -ld /var/lib/psa/dumps
drwxr-xr-x. 1 jdoe psacln 155648 May 10 08:43 /var/lib/psa/dumps

Resolution

  1. Connect to a Plesk server via SSH.
  2. Unmount the directory and set the correct permissions psaadm:psaadm on it on the remote server.
  3. Mount the directory again.
  4. Re-run the upgrade:

# plesk installer --select-release-latest --upgrade-installed-components

Exit mobile version