Can't login to adguard

What app is this about, and its version: adguardhome 0.107.74~ynh1
What YunoHost version are you running: 12.1.40.1 (stable)
What type of hardware are you using: Old laptop or computer

Describe your issue

I had to move my server to another house with a new internet connection, so i figured that i had to tweak some settings on my router and adguardhome. However i cannot log into adguard, i tried changing the admin password, stopping and restarting adguard service and reinstalling it.

I bump into either 403 wrong username or password or a 15 minutes delay…

I’m using the default username (admin) and the password that i changed from the app admin panel but it never goes through…

Share relevant logs or error messages

Hello @Aristid

First of all, are you sure your admin user is admin? You can check this in /var/www/adguardhome/AdGuardHome.yaml

If you can’t change your password from webadmin you can try this

python3 -c "import bcrypt; print(bcrypt.hashpw(b\"your_new_password\", bcrypt.gensalt(rounds=10)).decode())"

Copy the generated hash and paste it in /var/www/adguardhome/AdGuardHome.yaml

users:
  - name: your_user
    password : generated_hash

Then

yunohost app setting  adguardhome password -v 'generated_hash'
systemctl restart adguardhome

Thanks a lot, it appears that my old adguard was created at a time where the yunohost admin user was still a thing.

When reinstalling, it used the username i provided as admin. Logical, but i think the heat and the 15 minutes login delay drove me nuts.

Thanks !