osmie / openstreetmapIE

OpenStreetMap Ireland - service configs
http://www.openstreetmap.ie
MIT License
2 stars 1 forks source link

Wordpress | Update of UpdraftPlus plugin failing #19

Closed donalhunt closed 2 years ago

donalhunt commented 2 years ago

Wordpress has been struggling to update the updraftplus plugin for a few days...

This is the error when manually updating the plugin (the chmod warning is repeated many times):

Update failed: Warning: chmod(): Operation not permitted in /var/www/www.openstreetmap.ie/public/wp-admin/includes/class-wp-filesystem-direct.php on line 173

...

{"success":false,"data":{"update":"plugin","slug":"updraftplus","oldVersion":"Version 1.16.63","newVersion":"","plugin":"updraftplus\/updraftplus.php","pluginName":"UpdraftPlus - Backup\/Restore","errorCode":"files_not_writable","errorMessage":"The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions."}}
donalhunt commented 2 years ago
# find . -name updraftplus.php | xargs ls -al
-rw-r--r-- 1 root     root      7777 Oct 26 03:05 ./wp-content/plugins/updraftplus/central/updraftplus.php
-rw-r--r-- 1 root     root     13527 Oct 26 03:05 ./wp-content/plugins/updraftplus/updraftplus.php
-rw-r--r-- 1 www-data www-data  7777 Oct 24 09:57 ./wp-content/updraft/plugins-old/updraftplus/central/updraftplus.php
-rw-r--r-- 1 www-data www-data 13527 Oct 24 09:57 ./wp-content/updraft/plugins-old/updraftplus/updraftplus.php
-rw-r--r-- 1 www-data www-data  7777 Nov 27 14:25 ./wp-content/upgrade/updraftplus.1.16.65-IfDXYJ/updraftplus/central/updraftplus.php
-rw-r--r-- 1 www-data www-data 13527 Nov 27 14:25 ./wp-content/upgrade/updraftplus.1.16.65-IfDXYJ/updraftplus/updraftplus.php

fixed with the following ownership change:

# chown -R www-data:www-data ./wp-content/plugins/updraftplus/

Plugin is now updated to version 1.16.65

jonnymccullagh commented 2 years ago

Donal, Just to point out that a specific plugin for backups is not required. I have been backing up and restoring wordpress for years with just a mysql dump and a tar of the web files.