Articles in this section

Unable to remove a file or folder from ".trash" directory in the Plesk File manager: [[actionError]]

Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux

Symptoms

  • When trying to remove a file or folder from trash in Plesk File manager, it fails with the following error:

    PLESK_ERROR: [[actionError]]

  • The following error message appears in /var/log/plesk/panel.log:

    CONFIG_TEXT: rm: cannot remove ‘/var/www/vhosts/example.com/.trash/temporary/PaymentScheduleType.IntervalAType.yml’: Permission denied

Cause

The action fails due to the file or directory having incorrect ownership.

Resolution

In order to resolve it, one needs to fix the ownership of the files in question:

  1. Connect to the Plesk server via SSH.

  2. Fix ownership of all files and folders in the .trash directory with the following commands:

    # find /var/www/vhosts/example.com/.trash/ -type f -exec chown john_doe:psacln {} \;
    # find /var/www/vhosts/example.com/.trash/ -type d -exec chown john_doe:psacln {} \;

  3. Delete the required folders again
Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.