Can't change user admin password using occ in docker container?

Hi, i got a docker nextcloud when i try to reset a password for user admin using “php occ user:resetpassword” it tell me “Successfully reset password” but when i try to login using the new password it doesn’t work !!, any ideas what might be the problem?

I’m using docker container with postgres, and attaching the volume /var/www/html to my local folder.

Have you tried restarting the docker container? Also, check your nextcloud.log under /var/www within your container for details on why a password reset isn’t working.

Thanks, i got this from logs

{“reqId”:“RLrhozYIccCHozxR7zQ1”,“level”:2,“time”:“2021-10-24T08:24:04+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“Temporary directory /tmp is not present or writable”,“userAgent”:"–",“version”:“22.0.0.11”}

So i gave the folder /tmp enough permissions for user www-data than i reset the password and restarted docker container and now i can access my admin user.

Thanks for the help.

1 Like