Nextcloud updates can be typically performed over the graphical administration interface.
In most cases updates are running very smooth but in other cases, some issues can occurred with the nextcloud remote download servers or the PHP-Backend or because something is running in a timeout. The update experience over the command line interface is much reliable and faster. Just try it out.
Go to your Nextcloud instance updater-directory, where the updater.phar file is located.
cd /var/www/nextcloud/updater
Run the updater with your webserver user, typically it’s www-data:
sudo -u www-data php updater.phar
The updater will prompt you approximately 3 times for your input:
Nextcloud Updater - version: v18.0.6-11-g50bdca3 dirty
Current version is 19.0.3.
Update to Nextcloud 19.0.4 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-19.0.4.zip
Steps that will be executed:
[ ] Check for expected files
[ ] Check for write permissions
[ ] Create backup
[ ] Downloading
[ ] Verify integrity
[ ] Extracting
[ ] Enable maintenance mode
[ ] Replace entry points
[ ] Delete old files
[ ] Move new files in place
[ ] Done
Start update? [y/N]
Should the "occ upgrade" command be executed? [Y/n]
Keep maintenance mode active? [y/N]
Fernando says
Thanks! It helped a lot, I was looking for how to do this update, with more than 50 users it’s practically mandatory if you don’t want to have problems…