Plesk backup: Apache keeps restarting, while backup

  • Symptoms: Customer creates a backup, but it does not contain the site’s content upon completion.

    Failed to pack files server_backup_…
    Warning: hosting “test.com”
    /bin/tar: /tmp/fileBCmvZe: No such file or directory
    /bin/tar: Error is not recoverable: exiting now

     

  • Cause: http://kb.parallels.com/en/114752 Backups and chrooted shell access for FTP users may work improperly on CloudLinux Server OS if package “cagefs” is installed and enabled for all users.

    When Plesk backup uses ‘su’ cagefs makes “chroots” (without actually using chroot() system call) into /usr/share/cagefs-skeleton and because of that “chrooting”, files in /tmp are inaccessible and error occurs.

    Such modification to ‘su’ is done by adding module pam_lve to ‘/etc/pam.d/su’.

 

  • Resolution:
    Remove pam_lve from /etc/pam.d/su.

 

  • Note:
    Disabling pam_lve in /etc/pam.d/su will not affect cron jobs/etc., it will only affect su commands. Basically it has no negative security implications at all.

Leave a Reply

Your email address will not be published. Required fields are marked *