ownCloud: can't reset the admin password, can't find 'occ' binary

I have searched the forum for similar issues

on

This category is for issues regarding specific apps, NOT general issues with YunoHost.

on

This form is written in English but feel free to write in French if you’re more comfortable!

on

What app is this about, and its version

owncloud, 8.2.0~ynh1

What YunoHost version are you running

12.1.41.2

What type of hardware are you using

Old laptop or computer

Describe your issue

hi hello

i lost the admin password of my ownCloud, so i was trying to recover it. Apparently, i have to use the “occ” binary, but it doesn’t exist anywhere on my machine. I tried:
$ docker compose exec owncloud occ user:resetpassword admin → command “docker” doesn’t exist
and $ php occ user:resetpassword admin → “Could not open input file: occ”
both as the ‘owncloud’ user.

i see that there is the ‘ocis’ binary, but idk if it’s supposed to be able to reset the admin password and i didn’t find anything about it..

thanks for the help

Share relevant logs or error messages

(it’s not a specific error with logs associated, not sure what to put here)

Hello @imzy
First, update your version to 8.2.0~ynh2

yunohost app upgrade owncloud -u https://github.com/YunoHost-Apps/owncloud_ynh

Then

systemctl stop owncloud 
yunohost app shell owncloud
./ocis idm resetpassword -u admin
# set the new admin password
exit
systemctl start owncloud