While trying to update my nextcloud install from 12.02 to 12.03, the web updater displays the following:
Initializing
Current version is 12.0.2.
Update to Nextcloud 12.0.3 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-12.0.3.zip
Retry update
Check for expected files
Check for write permissions
Enable maintenance mode
Create backup
Could not copy “/var/www/nextcloud/config/config.old” to “/var/www/nextcloud-data//updater-oc7ocyzpooo6/backups/nextcloud-12.0.2.0/config/config.old”
The TWO // in the error line is not a type. That is what the error message says.
My server is Ubuntu 16.04 LTS SERVER running in an ESXi 6.5 VM.
I’ve set maintenance mode back to false in the config.php, updated the OS, rebooted, and I still get the error. This was initially a 10.x install that has been updated multiple times, without a single error.
Nice catch, but I"m sad to say after making that change the error message doesn’t have the double //, but it still fails.
Create backup
Could not copy “/var/www/nextcloud/config/config.old” to “/var/www/nextcloud-data/updater-oc7ocyzpooo6/backups/nextcloud-12.0.2.0/config/config.old”
Just to be sure… Is the data-directory ( in your case /var/www/netxcloud-data ) writeable?
This means you need at least a rwx------ permission. I use 750 (rwxr-x—)
So I would go with: chmod u+rwx /var/www/nextcloud-data
Perhaps there is something useful in the nextcloud.log file: can you find share some parts of it?
Next move could be: mkdir -p /var/www/nextcloud-data/updater-oc7ocyzpooo6/backups/nextcloud-12.0.2.0/config/ chown -R www-data:www-data /var/www/nextcloud-data/updater-oc7ocyzpooo6
I don’t understand… if /var/www/nextcloud-data/updater-oc7ocyzpooo6/backups/nextcloud-12.0.2.0 is empty, where the listing above came from?
Moreover I think there is a bit of confusion between the installation directory and the data directory.
Can you list the content of the installation directory, with special attention to the config directory? I suppose you have a config.old file not readable by www-data.
root@vm-Nextcloud:/var/www/nextcloud-data/updater-oc7ocyzpooo6/backups/nextcloud-12.0.2.0# cd config
root@vm-Nextcloud:/var/www/nextcloud-data/updater-oc7ocyzpooo6/backups/nextcloud-12.0.2.0/config# ls -l
total 0
root@vm-Nextcloud:/var/www/nextcloud-data/updater-oc7ocyzpooo6/backups/nextcloud-12.0.2.0/config#