Issues recovering admin password

Hello.

I am new to nextcloud, and apparantly i lost my password even thoug im quite sure its the right one.
Anyhow, i wanted to reset the password.
Im running a nextcloud instance on my ubuntu 20.04 server.

I tried to run the command i found in the documentation:
sudo -u www-data php /var/www/nextcloud/occ user:resetpassword admin

so i ran this command:
sudo -u www-data php /var/www/nextcloud/occ user:resetpassword bro
[sudo] password for bro:
Could not open input file: /var/www/nextcloud/occ

Am i using the command wrong ? or is occ located somwhere else, if so how do i find it?

Really hoping for some help here, since i cant use nextcloud atm…

Hey, I fould a fix. I had the issue as well. Run these
cd /var/www/nextcloud
sudo -u www-data ./occ user:resetpassword bro

The location of the occ depends on HOW you installed Nextcloud.

Try searching for it

sudo find / -name occ