Report this

What is the reason for this report?

installation nextcloud via snap

Posted on September 1, 2021

Bonjour, J’ai suivi la proc (https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-nextcloud-on-ubuntu-20-04-fr), qui c’est passée sans anicroches, mais au moment de la connexion sur Nextcloud, le mot de passe admin ne fonctionne pas. Pensant avoir fait une erreur j’ai recommencé, mais toujours avec le même pb a la fin, il ne reconnait pas le login ou le mot de passe. Quand a la réinitialisation du mot de passe, ça ne fonctionne pas suite a une erreur php. Une idée? Merci d’avance. Hervé F.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello, @globo

Can you share the exact PHP error that is logged when you try to use the Password reset option?

The normal ways to recover a lost password are:

  • Click the password reset link on the login screen; this appears after a failed login attempt. This works only if you have entered your email address on your Personal page in the Nextcloud Web interface so that the Nextcloud server can email a reset link to you.
  • Ask another Nextcloud server admin to reset it for you.

If neither of these is an option, then you have a third option, and that is using the occ command. See Using the occ command to learn more about using the occ command.

  1. sudo -u www-data php /var/www/nextcloud/occ user:resetpassword admin

Enter a new password: Confirm the new password: Successfully reset password for admin

Note: If your Nextcloud username is not admin, then substitute your Nextcloud username.

You can check the official docs on resetting the admin password:

https://docs.nextcloud.com/server/latest/admin_manual/configuration_user/reset_admin_password.html

Regards, Alex

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.