Nextcloud – updater.secret needed

If you run into the issue needing to enter an ‘updater.secret’ you have to do the following:

Enter the plain-text version of the string assigned to ‘updater.secret’ in your config.php!

If you do not know the plain-text version anymore you can easily run the php-command given by nextcloud in any linux console where php and openssl is installed!

On any Linux Console, where php and openssl is installed, run:

# 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";};'

You get the following output:

Insert as "updater.secret": $2y$10$blAGPpTLqAbV0SE8C/KooeeygLEsFVEtMu..m15E2uC8wfqgP6Zhi
The plaintext value is: tIVe8CJhn56TNs4MaEh24ABZPruYQf1nFPM1OqNWMXmNq13k6lQ45kWU+MfCZ4ot

Both strings are just examples! You have to replace them with the ones you generated!

So you have to ensure that within your config/config.php the relevant line is:

'updater.secret' => '$2y$10$blAGPpTLqAbV0SE8C/KooeeygLEsFVEtMu..m15E2uC8wfqgP6Zhi',

and within your web-updater under enter the plaintext:


Finally, you should be able to re-enter your web-based Nextcloud Updater!

Schreibe einen Kommentar