Failed to create backup during update

I am trying to update my nextcloud instance on my rpi. I am getting this error: " * ## Create backup

Could not copy “/var/www/html/nextcloud/config/config.php.backup” to “/var/www/html/nextcloud/data/updater-ocr0cuv6mub8/backups/nextcloud-17.0.1.1/config/config.php.backup”. Source /var/www/html/nextcloud/config/config.php.backup is not readable. Destination /var/www/html/nextcloud/data/updater-ocr0cuv6mub8/backups/nextcloud-17.0.1.1/config/config.php.backup is not writable"
Here is my directory settings & permissions:
drwxr-xr-x 2 www-data www-data 4.0K Nov 24 02:00 config

1 Like

I think your /var/www/html/nextcloud/config/config.php.backup is owned by user pi. I can only see your config.php file owner in your post… Which is www-data.
So sudo chown www-data:www-data /var/www/html/nextcloud/config/config.php.backup helps.

5 Likes

Mt config.php.bkup file was owned by root. This fix allowed me to continue the upgrade.

2 Likes

where is the backup created?