Updating NextCloud with the Open Updater button does not work

Updated the items below as not working. Much easier to navigate to the nextcloud folder and execute

sudo -u www-data php updater/updater.phar

————-

If the “Open Updater” button does not work then try this.

Go to /updater/login.php

Open terminal window and execute php -r ‘$password = trim(shell_exec(“openssl rand -base64 48”));if(strlen($password) === 64) {$hash = password_hash($password, PASSWORD_DEFAULT) . “\n”; echo “Insert as \”updater.secret\”: “.$hash; echo “The plaintext value is: “.$password.”\n”;}else{echo “Could not execute OpenSSL.\n”;};’

Check that the updater.secret is as the hashed version in the config.php file for next cloud.

Enter the non hashed version as the password if requested on the login.php page.

It should then work.

It is also possible to run this manually from the next cloud home directory like this …..

sudo -u www-data php /media/www/nextcloud/updater/updater.phar
sudo -u www-data php occ upgrade
sudo -u www-data php occ maintenance:mode –off