Not able to reset user password via gui or CLI

:uk:/:us: Message template (english)

Hi there,
I’m trying to log in to my Nextcloud as as my non-admin user. I can log in to Yunohost as admin fine (web or CLI). Dav5X is logging in fine with an app password. Diagnostics show fine for web / internet access. When I try to log in with the standard user and password though it complains that the password is wrong. When I try to update the user password with:
sudo -u nextcloud php /var/www/nextcloud/occ user:resetpassword user

…it asks me to enter and confirm a new password, but comes up with an error:

“Error while resetting password!”.

There’s nothing in the logs. When I try updating the password via the GUI, it says it worked onscreen, but the new password still doesn’t work. Logs:

2021-09-06 08:12:54,723 DEBUG    geventwebsocket.handler (unknown function) - Validating WebSocket request
2021-09-06 08:12:54,723 DEBUG    geventwebsocket.handler (unknown function) - Attempting to upgrade connection
2021-09-06 08:12:54,723 DEBUG    geventwebsocket.handler (unknown function) - WebSocket request accepted, switching protocols
2021-09-06 08:12:54,727 DEBUG    geventwebsocket.handler (unknown function) - Initializing WebSocket
2021-09-06 08:12:54,727 DEBUG    geventwebsocket.handler (unknown function) - Validating WebSocket request
2021-09-06 08:12:54,727 DEBUG    geventwebsocket.handler (unknown function) - Can only upgrade connection if using GET method.
2021-09-06 08:12:54,727 DEBUG    moulinette.authenticator.ldap (unknown function) - initialize authenticator 'default' with: uri='ldap://localhost:389', base_dn='dc=yunohost,dc=org', user_rdn='cn=admin,dc=yunohost,dc=org'
2021-09-06 08:12:54,728 DEBUG    moulinette.core acquire - acquiring lock...
2021-09-06 08:12:54,728 DEBUG    moulinette.core acquire - lock has been acquired
2021-09-06 08:12:54,728 DEBUG    moulinette.actionsmap process - loading python module yunohost.user took 0.000s
2021-09-06 08:12:54,728 DEBUG    moulinette.actionsmap process - processing action [520.19]: yunohost.user.update with args={'username': 'user', 'firstname': None, 'lastname': None, 'mail': None, 'change_password': None, 'add_mailforward': None, 'remove_mailforward': None, 'add_mailalias': None, 'remove_mailalias': None, 'mailbox_quota': '0'}
2021-09-06 08:12:54,733 DEBUG    moulinette.authenticator.ldap (unknown function) - Nothing to update in LDAP
2021-09-06 08:12:54,733 SUCCESS  yunohost.user (unknown function) - [520.19] User info changed
2021-09-06 08:12:54,746 DEBUG    yunohost.app (unknown function) - [520.19] SSOwat configuration regenerated
2021-09-06 08:12:54,771 DEBUG    yunohost.log (unknown function) - [520.19] Full log of this operation: '<a href="#/tools/logs/20210906-121254-user_update-user" style="text-decoration:underline">Update info for user 'user'</a>'
2021-09-06 08:12:54,775 DEBUG    moulinette.actionsmap process - action [520.19] executed in 0.047s
2021-09-06 08:12:54,775 DEBUG    moulinette.core release - lock has been released
2021-09-06 08:12:54,775 INFO     geventwebsocket.handler (unknown function) - 127.0.0.1 - - [2021-09-06 08:12:54] "PUT /users/user HTTP/1.1" 200 462 0.048132
2021-09-06 08:12:54,775 DEBUG    geventwebsocket.handler (unknown function) - Closed WebSocket
2021-09-06 08:12:54,776 DEBUG    geventwebsocket.handler (unknown function) - Failed to write closing frame -> closing socket
2021-09-06 08:12:54,776 DEBUG    geventwebsocket.handler (unknown function) - Closed WebSocket

I notice that First name, last name and password change are all blank, despite these fields being filled in and that it says there’s nothing to do in the password change. I’m wondering if this might be to do with the LDAP port 389 being blocked (only 80/443/the Matrix ports are unblocked).

I looked for similar posts on the forum and in the docs but only found references to resetting the admin password (which is working fine for me).

My YunoHost server

Hardware: VM Using 4 gig of RAM and 220gb HDD.
YunoHost version: 4.2.6.1 (stable)
I have access to my server : Through SSH, the webadmin and direct access via keyboard / screen.
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no special tweaks. It’s been upgraded a couple of times though.

The issue got fixed a couple weeks ago in version 4.2.8 if i remember correctly

OMG, just did an upgrade and then updated the password again and it worked perfectly. THANK YOU! :two_hearts:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.