Unable to update WordPress: Application deployment failed, unable to change mode, operation not permitted

Created:

2016-11-16 13:18:26 UTC

Modified:

2017-08-08 13:19:39 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Unable to update WordPress: Application deployment failed, unable to change mode, operation not permitted

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk 12.0 for Linux

Symptoms

One of the following errors is shown in Plesk when trying to update WordPress and in /var/log/plesk/panel.log :

ERR [panel] Application deployment failed: Unable to change mode for /var/www/vhosts/example.com/httpdocs/wp-content/plugins/example: Operation not permitted
Filesystem error: boost::filesystem::remove: Permission denied: "/var/www/vhosts/example.com/httpdocs/wp-content/plugins/example/.htaccess"(system:13)

Installation "subscription_name": Warning: Could not create directory.
{"err_code":0,"err_message":"Updated 0/1 plugins."}

 or

While updating WordPress theme or plugin the following error occurs in Plesk:

Installation "Example": Warning: Download failed. "Service Unavailable" {"err_code":0,"err_message":"No themes updated."}

Cause

Incorrect permissions on a directory.

Resolution

1. Check permissions for the affected directory:

    # ls -ld /var/www/vhosts/example.com/httpdocs/wp-content/plugins/example/
drwxr-xr-x 4 user1 psacln 4096 Feb 17 20:34 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/example/

2. Determine what username should be set by executing the following command:

# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -e "select login as username from sys_users where home like '%/example.com%';"
+----------+
| username |
+----------+
| user2    |
+----------+

3. In case username is different, modify permissions by following:

# chown -R user2.psacln /var/www/vhosts/example.com/httpdocs/wp-content/
Have more questions? Submit a request
Please sign in to leave a comment.