Question

installation nextcloud via snap

Posted September 1, 2021 106 views
UbuntuStorageUbuntu 20.04

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.

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.

×
Submit an Answer
1 answer

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.

  • 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

  • Hi, Alex
    Thanks for your response. I find the trouble. First, I try for administrator login other thing than admin… not work. I reinstalled with the login admin, and now, that work correctly.
    The command don’t work because I install by snap maybe…

    Thanks a lot.

    Regards,
    Hervé