installation nextcloud via snap

Bonjour, J’ai suivi la proc (, 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.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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:

Regards, Alex