• Hi,

    I tried to update my wordpress installation and it seems to have failed due to permission issue the following error is repeating a lot:

    Warning: chmod(): Operation not permitted in /home/sowapps/www/cartman34/wp-admin/includes/class-wp-filesystem-direct.php on line 173

    There is nothing after this repeating error message.
    My wordpress is now stuck in Maintenance mode

    Indisponibilité temporaire pour cause de maintenance. Veuillez revenir dans un instant.

    It could be about ACL permissions, www-data is having writing permissions on folder but this is not the owner/group of files.
    Should I add some chmod permission or change ACL configuration ?

    I am now pasting the details:

    web2:~/www/website$ ls -la
    total 260
    drwxrwx---+  5 myuser  myuser   4096 Sep  3 07:52 .
    drwxr-xr-x  15 myuser  myuser   4096 Jun 20  2021 ..
    -rwxrwxr--+  1 myuser  myuser    591 May 17 06:31 .gitignore
    -rw-rwxr--+  1 myuser  myuser    561 Jun 20  2021 .htaccess
    -rw-rwxr--+  1 myuser  myuser    405 Jan 26  2022 index.php
    -rw-rwxr--+  1 myuser  myuser  19915 Aug 30 20:44 license.txt
    -rw-rwxr--+  1 www-data www-data    33 Sep  3 07:52 .maintenance
    -rw-rwxr--+  1 myuser  myuser   8852 Aug 30 20:44 readme.html
    -rw-rwxr--+  1 myuser  myuser     34 May 16 12:47 README.md
    -rw-rwxr--+  1 myuser  myuser   7165 Jan 26  2022 wp-activate.php
    drwxrwxr-x+  9 myuser  myuser   4096 Apr  6 06:42 wp-admin
    -rw-rwxr--+  1 myuser  myuser    351 Jan 26  2022 wp-blog-header.php
    -rw-rwxr--+  1 myuser  myuser   2338 Jan 26  2022 wp-comments-post.php
    -rw-rwxr--+  1 myuser  myuser   3881 May 17 07:37 wp-config.php
    -rw-rwxr--+  1 myuser  myuser   3538 Jan 26  2022 wp-config-sample.php
    drwxrwxr-x+  8 myuser  myuser   4096 Jan 26  2022 wp-content
    -rw-rwxr--+  1 myuser  myuser   3939 Jan 26  2022 wp-cron.php
    drwxrwxr-x+ 26 myuser  myuser  12288 Jan 26  2022 wp-includes
    -rw-rwxr--+  1 myuser  myuser   2496 Jan 26  2022 wp-links-opml.php
    -rw-rwxr--+  1 myuser  myuser   3900 Jan 26  2022 wp-load.php
    -rw-rwxr--+  1 myuser  myuser  48498 Sep  3 07:52 wp-login.php
    -rw-rwxr--+  1 myuser  myuser   8582 Jan 26  2022 wp-mail.php
    -rw-rwxr--+  1 myuser  myuser  23025 Jan 26  2022 wp-settings.php
    -rw-rwxr--+  1 myuser  myuser  31959 Jan 26  2022 wp-signup.php
    -rw-rwxr--+  1 myuser  myuser   4748 Sep  3 07:52 wp-trackback.php
    -rw-rwxr--+  1 myuser  myuser   3236 Jan 26  2022 xmlrpc.php
    web2:~/www/website$ getfacl .
    # file: .
    # owner: myuser
    # group: myuser
    user::rwx
    user:www-data:rwx
    user:myuser:rwx
    group::r-x
    mask::rwx
    other::---
    default:user::rwx
    default:user:www-data:rwx
    default:user:myuser:rwx
    default:group::r-x
    default:mask::rwx
    default:other::r-x
    web2:~/www/website$ getfacl wp-content/
    # file: wp-content/
    # owner: myuser
    # group: myuser
    user::rwx
    user:www-data:rwx
    user:myuser:rwx
    group::r-x
    mask::rwx
    other::r-x
    default:user::rwx
    default:user:www-data:rwx
    default:user:myuser:rwx
    default:group::r-x
    default:mask::rwx
    default:other::r-x
    web2:~/www/website$ getfacl wp-content/plugins
    # file: wp-content/plugins
    # owner: myuser
    # group: myuser
    user::rwx
    user:www-data:rwx
    user:myuser:rwx
    group::r-x
    mask::rwx
    other::r-x
    default:user::rwx
    default:user:www-data:rwx
    default:user:myuser:rwx
    default:group::r-x
    default:mask::rwx
    default:other::r-x

    I removed the .maintenance file but the installation is broken now.
    As quick fix, I will upgrade it manually, but I need a permanent solution please.

    Wordpress is a professional tool and I am very annoyed that is not able to check permissions and abilities before upgrading installation.

    • This topic was modified 2 years, 9 months ago by Jan Dembowski.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue updating WordPress using ACL permissions’ is closed to new replies.