Can't start update through updater

I run nextcloud on a share host.

When I start updater, nexcloud displays the page here after and I donā€™t know how to proceed. Can anybody help ?

Authentication

To login you need to provide the unhashed value of ā€œupdater.secretā€ in your config file.

If you donā€™t know that value, you can access this updater directly via the Nextcloud admin screen or generate your own secret:

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

2 Likes

This problem also occurred to me when trying to update from 15.0.0 to 15.0.2

1 Like

Same problem on a share host with PHP 7.1 from 14.0.4 to 15.0.2

+1 | upgrade 15.0.2 > 15.0.4 | :confused:
These steps solved it:

  • open server console and run suggested command php -r '$password = trim(shell_exec(ā€¦ (OpenSSL must be installed)
  • It returns two values
    • updater.secret write into the config.php
    • fill the web field with the plaintext value

(Nevertheless my upgrade failed at 6 step with error ā€œParsing response failedā€. Iā€™ve completed upgrade manually with these instructions)

1 Like