glance icon indicating copy to clipboard operation
glance copied to clipboard

Problems with the Adguard widget

Open vk2r opened this issue 11 months ago • 5 comments

I have correctly configured the Adguard widget, with the correct parameters (I have validated that my user and password are correct, as well as the Adguard IP) but for some reason, the widget shows me the following error:

Error

Current configuration

The only thing I can think of is that my password has special characters (¿@) and because of this, it does not connect correctly.

Any ideas?

vk2r avatar Dec 29 '24 15:12 vk2r

I tried replicating this by changing my password to include the characters you mentioned (and a few others) but had no issues. Could you try changing your password to something without special characters and giving it another go? I can't think of a reason why special characters would be an issue though.

svilenmarkov avatar Dec 29 '24 17:12 svilenmarkov

I have re-launched a new instance of Adguard on another IP from scratch and got the same error. There must be some block list that I add, which generates this error. I will have to go through trial and error looking for the problem. Is there any way to generate logs in front end with the errors ? Any feature-flag ?

vk2r avatar Dec 29 '24 19:12 vk2r

I have re-launched a new instance of Adguard on another IP from scratch and got the same error. There must be some block list that I add, which generates this error. I will have to go through trial and error looking for the problem. Is there any way to generate logs in front end with the errors ? Any feature-flag ?

You have to put it like this

        - type: dns-stats
          service: adguard
          url: http://192.168.50.15:3000/
          username: name
          password: pass
  • change the port if you do not use 3000 for adguard
  • change name to your adguard username
  • change pass to your password
  • use a password without special characters

halictuz avatar Jan 03 '25 15:01 halictuz

I'm facing similar issue with my AdGuard setup.

Image

Both of my AdGuard isntances are running as LXC's on two separate hosts.

My home,yaml config:

        - type: dns-stats
          service: adguard
          url: http://192.168.50.38
          usernmame: admin
          password: ${ADGUARD_PASSWORD}
          allow-insecure: true

I've tried changing url to:

http://192.168.50.38:80
http://192.168.50.38:3000
192.168.50.38
192.168.50.38:3000

If I understood correctly port 3000 is only used for initial setup, I was just trying what @halictuz suggested.

If I go to http://192.168.50.38/control/stats I can see the stats with no problem.

Is the issues really related to the fact that my password has special characters?

EDIT:

Did some testing.

  1. Spun up completely fresh AdGuard LXC container using Proxmox VE Helper-Scripts
  2. Set this as a password wJwl8z9V481RGo566bkia (Random generated password)
  3. Enabled some of the basic adlists, pointed my PC to this DNS, opened bunch of links.
  4. Changed the AdGuard password variable for Glance to have that new password.
  5. Changed home.yaml to point the new DNS server
  6. Rebooted Glance container.

Same error persists, even without special characters in the password.

EDIT: For me it was my stupidity that broke the widget.

I've had written "userNmame" instead of "username"...

grannymaster avatar Mar 11 '25 16:03 grannymaster

Closing since there's been no reply from the author and all other instances were due to a malformed config.

svilenmarkov avatar Mar 14 '25 16:03 svilenmarkov