I cant update to nextcloud

MY VERSION: NC 20.0.0
when I try to update the nextcloud the following error appears:

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

If you don’t have ssh access, install php on any computer. Then run the exact php command from the error message. it will give you two passwords, one hashed one to put into your nextclod config file (updater.secret) and the other plaintext password that you can then use in the webinterface.

what program do you recommend for access ssh?

I run the php command in ssh program? and… do I run in the nextcloud folder or in the root?

you can run the php command anywhere.

i try execute the command but return:could not execute openssl. my nextcloud have https and certificate…

-bash-4.2$ 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”;};’
Could not execute OpenSSL.
-bash-4.2$

Can you install openssl? If not, maybe do this on a local (linux) computer?

You could also use this site for creating the random string (length 48):

and this for the hashed password:
https://phppasswordhash.com/