Reset admin password ->"no configuration file provided"

Dear community,
i misplaced my admin pw, and since I installed the AIO via docker I read that I have to adjust the occ command to this:
root@XXX:/var/lib/docker# docker compose exec -u www-data nextcloud php occ user:resetpassword admin
this gives me:
no configuration file provided: not found
PHP is installed and up-to-date.
How can I provide that configuration file?
Thanks a lot!

@edit: I get this answer for every OCC command i try

@edit2: just for the fun of it i tried the usual command in the OCC location and got another failure:

root@XX:/var/lib/docker/volumes/nextcloud_aio_nextcloud/_data# sudo -u www-data php occ  user:resetpassword admin
PHP Warning:  require_once(/var/lib/docker/volumes/nextcloud_aio_nextcloud/_data/console.php): Failed to open stream: Permission denied in /var/lib/docker/volumes/nextcloud_aio_nextcloud/_data/occ on line 33
PHP Fatal error:  Uncaught Error: Failed opening required '/var/lib/docker/volumes/nextcloud_aio_nextcloud/_data/console.php' (include_path='.:/usr/share/php') in /var/lib/docker/volumes/nextcloud_aio_nextcloud/_data/occ:33
Stack trace:
#0 {main}
  thrown in /var/lib/docker/volumes/nextcloud_aio_nextcloud/_data/occ on line 33

if anyone can do something with that?or is that the reason one uses the other docker compose exec command?

See AIO: How to run occ

1 Like

doh… thanks, that was too easy…

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