Adguard Home service failing

I can’t seem to get Adguard Home activates. It worked about 1 hour ago on a fresh install but it keeps failing no matter if it’s a new install or not.

Edit: Have to add homeassistant to the list. Not really sure what’s going on here tbh. Any help will be appreciated!

Required Information

  • DietPi version | 8.7
  • Distro version | bullseye
  • Kernel version | Linux DietPi 5.15.56-v8+
  • SBC model | RPi 4 Model B (aarch64)
  • Power supply used | Official pi charger 5v 3a
  • SD card used | Kingston A400 SSD

Additional Information (if applicable)

  • Software title | Adguard Home
  • Was the software title installed freshly or updated/migrated? Freshly installed
  • Can this issue be replicated on a fresh installation of DietPi? Yes
  • Bug report ID | 1e0a44b2-11ad-4122-9974-348f95f7090b

Steps to reproduce

  1. Install Adguard Home from dietpi-software
  2. Never activates

Expected behaviour

  • Adguard Home activates

Actual behaviour

  • Service keeps failing in dietpi-services

Welcome to our community.

Can you share the log file please.

journalctl -u adguardhome.service

Good morning Joulinar! Hopefully it’ll help!

 -- Journal begins at Thu 2022-08-18 06:02:50 BST, ends at Thu 2022-08-18 06:06:27 BST. --
Aug 18 06:06:01 DietPi systemd[1]: Started AdGuard Home (DietPi).
Aug 18 06:06:01 DietPi AdGuardHome[3319]: 2022/08/18 06:06:01.226389 [info] AdGuard Home, version v0.107.10
Aug 18 06:06:01 DietPi AdGuardHome[3319]: 2022/08/18 06:06:01.227953 [info] Upgrade yaml: 10 to 11
Aug 18 06:06:01 DietPi AdGuardHome[3319]: 2022/08/18 06:06:01.227992 [info] Upgrade yaml: 11 to 12
Aug 18 06:06:01 DietPi AdGuardHome[3319]: 2022/08/18 06:06:01.228029 [fatal] unexpected type of dns: map[string]interface {}
Aug 18 06:06:01 DietPi systemd[1]: adguardhome.service: Main process exited, code=exited, status=1/FAILURE
Aug 18 06:06:01 DietPi systemd[1]: adguardhome.service: Failed with result 'exit-code'.
Aug 18 06:06:06 DietPi systemd[1]: adguardhome.service: Scheduled restart job, restart counter is at 1.
Aug 18 06:06:06 DietPi systemd[1]: Stopped AdGuard Home (DietPi).
Aug 18 06:06:06 DietPi systemd[1]: Started AdGuard Home (DietPi).
Aug 18 06:06:06 DietPi AdGuardHome[3330]: 2022/08/18 06:06:06.410251 [info] AdGuard Home, version v0.107.10
Aug 18 06:06:06 DietPi AdGuardHome[3330]: 2022/08/18 06:06:06.411922 [info] Upgrade yaml: 10 to 11
Aug 18 06:06:06 DietPi AdGuardHome[3330]: 2022/08/18 06:06:06.411968 [info] Upgrade yaml: 11 to 12
Aug 18 06:06:06 DietPi AdGuardHome[3330]: 2022/08/18 06:06:06.412010 [fatal] unexpected type of dns: map[string]interface {}
Aug 18 06:06:06 DietPi systemd[1]: adguardhome.service: Main process exited, code=exited, status=1/FAILURE
Aug 18 06:06:06 DietPi systemd[1]: adguardhome.service: Failed with result 'exit-code'.
Aug 18 06:06:11 DietPi systemd[1]: adguardhome.service: Scheduled restart job, restart counter is at 2.
Aug 18 06:06:11 DietPi systemd[1]: Stopped AdGuard Home (DietPi).
Aug 18 06:06:11 DietPi systemd[1]: Started AdGuard Home (DietPi).
Aug 18 06:06:11 DietPi AdGuardHome[3370]: 2022/08/18 06:06:11.660428 [info] AdGuard Home, version v0.107.10
Aug 18 06:06:11 DietPi AdGuardHome[3370]: 2022/08/18 06:06:11.663002 [info] Upgrade yaml: 10 to 11
Aug 18 06:06:11 DietPi AdGuardHome[3370]: 2022/08/18 06:06:11.663053 [info] Upgrade yaml: 11 to 12
Aug 18 06:06:11 DietPi AdGuardHome[3370]: 2022/08/18 06:06:11.663084 [fatal] unexpected type of dns: map[string]interface {}
Aug 18 06:06:11 DietPi systemd[1]: adguardhome.service: Main process exited, code=exited, status=1/FAILURE
Aug 18 06:06:11 DietPi systemd[1]: adguardhome.service: Failed with result 'exit -code'.
Aug 18 06:06:16 DietPi systemd[1]: adguardhome.service: Scheduled restart job, restart counter is at 3.
Aug 18 06:06:16 DietPi systemd[1]: Stopped AdGuard Home (DietPi).
Aug 18 06:06:16 DietPi systemd[1]: Started AdGuard Home (DietPi).
Aug 18 06:06:16 DietPi AdGuardHome[3423]: 2022/08/18 06:06:16.910261 [info] AdGuard Home, version v0.107.10
Aug 18 06:06:16 DietPi AdGuardHome[3423]: 2022/08/18 06:06:16.913226 [info] Upgrade yaml: 10 to 11
Aug 18 06:06:16 DietPi AdGuardHome[3423]: 2022/08/18 06:06:16.913567 [info] Upgrade yaml: 11 to 12
Aug 18 06:06:16 DietPi AdGuardHome[3423]: 2022/08/18 06:06:16.913745 [fatal] unexpected type of dns: map[string]interface {}
Aug 18 06:06:16 DietPi systemd[1]: adguardhome.service: Main process exited, code=exited, status=1/FAILURE
Aug 18 06:06:16 DietPi systemd[1]: adguardhome.service: Failed with result 'exit-code'.
Aug 18 06:06:22 DietPi systemd[1]: adguardhome.service: Scheduled restart job, restart counter is at 4.
Aug 18 06:06:22 DietPi systemd[1]: Stopped AdGuard Home (DietPi).
Aug 18 06:06:22 DietPi systemd[1]: Started AdGuard Home (DietPi).
Aug 18 06:06:22 DietPi AdGuardHome[3478]: 2022/08/18 06:06:22.160809 [info] AdGuard Home, version v0.107.10
Aug 18 06:06:22 DietPi AdGuardHome[3478]: 2022/08/18 06:06:22.163765 [info] Upgrade yaml: 10 to 11
Aug 18 06:06:22 DietPi AdGuardHome[3478]: 2022/08/18 06:06:22.164148 [info] Upgrade yaml: 11 to 12
Aug 18 06:06:22 DietPi AdGuardHome[3478]: 2022/08/18 06:06:22.164338 [fatal] unexpected type of dns: map[string]interface {}
Aug 18 06:06:22 DietPi systemd[1]: adguardhome.service: Main process exited, code=exited, status=1/FAILURE
Aug 18 06:06:22 DietPi systemd[1]: adguardhome.service: Failed with result 'exit-code'.
Aug 18 06:06:27 DietPi systemd[1]: adguardhome.service: Scheduled restart job, restart counter is at 5.
Aug 18 06:06:27 DietPi systemd[1]: Stopped AdGuard Home (DietPi).
Aug 18 06:06:27 DietPi systemd[1]: adguardhome.service: Start request repeated too quickly.
Aug 18 06:06:27 DietPi systemd[1]: adguardhome.service: Failed with result 'exit-code'.
Aug 18 06:06:27 DietPi systemd[1]: Failed to start AdGuard Home (DietPi).

There seems to be an issue with the DNS configuration and the interface. Was AGH ever running? Did you changed something on the configuration?

When I do install it from dietpi-software it goes from activating to failed directly so I don’t think I got it working from the start. I don’t think that I changed any dns settings since it still fails on new installs of dietpi. I don’t think I’ve changed any configuration either since the only thing I did was install agh during the first boot and it fail directly. Is there any way to show you my configuration is that would help?

If it has not been configured, pls can you remove AGH completely, reboot your system and install it again. Pls share the whole install log.

As well can you share following once done

ss -tulpn

How can I get the whole install log? Is it with the command you sent?

you mean for the installation? Simply connect via SSH, run the installation and copy the whole output from terminal. :slight_smile:

I feel so stupid :joy:

Hopefully I didn’t copy too much :sweat_smile:

[  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPi-Software | Reading database
[  OK  ] DietPi-Software | DietPi-Userdata validation: /mnt/dietpi_userdata

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Checking for conflicts and missing inputs


 DietPi-Software
─────────────────────────────────────────────────────
 Step: Checking for prerequisite software

[  OK  ] DietPi-Software | Checking IPv4 network connectivity
[  OK  ] DietPi-Software | Checking DNS resolver
[  OK  ] DietPi-Software | mkdir -p /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads /var/www /opt /usr/local/bin
[  OK  ] DietPi-Software | chown dietpi:dietpi /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[  OK  ] DietPi-Software | chmod 0775 /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[ SUB1 ] DietPi-Services > unmask
[  OK  ] DietPi-Services | unmask : cron
[ SUB1 ] DietPi-Services > stop
[  OK  ] DietPi-Services | stop : cron
[ INFO ] DietPi-Software | APT update, please wait...
Hit:1 https://deb.debian.org/debian bullseye InRelease
Hit:2 https://deb.debian.org/debian bullseye-updates InRelease
Hit:3 https://deb.debian.org/debian-security bullseye-security InRelease
Hit:4 https://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists...
/boot/dietpi/func/dietpi-globals: line 1522: /tmp/G_EXEC_LOG: No such file or directory
[  OK  ] DietPi-Software | APT update

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Installing AdGuard Home: powerful network-wide ads & trackers blocking DNS server

[  OK  ] DietPi-Software | cd /tmp/DietPi-Software
[  OK  ] DietPi-Software | Checking URL: https://static.adguard.com/adguardhome/release/AdGuardHome_linux_arm64.tar.gz
[ INFO ] DietPi-Software | G_THREAD_START_0 | curl -sSfL https://static.adguard.com/adguardhome/release/AdGuardHome_linux_arm64.tar.gz -o AdGuardHome_linux_arm64.tar.gz
[ INFO ] DietPi-Software | APT install for: apache2-utils, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
apache2-utils is already the newest version (2.4.54-1~deb11u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[  OK  ] DietPi-Software | APT install for: apache2-utils
[  OK  ] DietPi-Software | G_THREAD: All threads finished
[  OK  ] DietPi-Software | tar xf AdGuardHome_linux_arm64.tar.gz
[  OK  ] DietPi-Software | rm AdGuardHome_linux_arm64.tar.gz
[  OK  ] DietPi-Software | mkdir /mnt/dietpi_userdata/adguardhome
[  OK  ] DietPi-Software | cp -a AdGuardHome/. /mnt/dietpi_userdata/adguardhome/
[  OK  ] DietPi-Software | rm -R AdGuardHome
[  OK  ] DietPi-Software | Verifying user "adguardhome" to run AdGuard Home
[  OK  ] DietPi-Software | useradd -rMU -d /mnt/dietpi_userdata/adguardhome -s /usr/sbin/nologin adguardhome
[  OK  ] DietPi-Software | cd /tmp/DietPi-Software
[  OK  ] DietPi-Software | curl -sSfL https://raw.githubusercontent.com/MichaIng/DietPi/master/.conf/dps_126/AdGuardHome.yaml -o AdGuardHome.yaml
[  OK  ] DietPi-Software | mv AdGuardHome.yaml /mnt/dietpi_userdata/adguardhome/AdGuardHome.yaml
[  OK  ] DietPi-Software | Setting in /mnt/dietpi_userdata/adguardhome/AdGuardHome.yaml adjusted:   password: $2a$10$zPLeJG50RCkYngA5s0ZfTehuHIwFrQSe7VR964NLWKPl4FSmB57fu
[  OK  ] DietPi-Software | chown -R adguardhome:adguardhome /mnt/dietpi_userdata/adguardhome
[  OK  ] DietPi-Software | chmod 0755 /mnt/dietpi_userdata/adguardhome/AdGuardHome
[  OK  ] DietPi-Software | chmod 0600 /mnt/dietpi_userdata/adguardhome/AdGuardHome.yaml

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Finalising install

[  OK  ] DietPi-Software | systemctl daemon-reload
2022-08-18 15:16:59 [ INFO ] DietPi-RAMlog | Storing /var/log to /var/tmp/dietpi/logs/dietpi-ramlog_store...
2022-08-18 15:16:59 [  OK  ] DietPi-RAMlog | Stored /var/log to /var/tmp/dietpi/logs/dietpi-ramlog_store.
[ SUB1 ] DietPi-Services > dietpi_controlled
[  OK  ] DietPi-Services | dietpi_controlled : cron

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Install completed

[  OK  ] DietPi-Survey | Purging survey data
[ SUB1 ] DietPi-Services > restart
[  OK  ] DietPi-Services | restart : cron
[ INFO ] DietPi-Software | Starting installed services, not controlled by DietPi-Services
[  OK  ] DietPi-Software | systemctl enable adguardhome
[  OK  ] DietPi-Software | systemctl start adguardhome

Forgot about the last command

root@DietPi:~# ss -tulpn
Netid  State   Recv-Q  Send-Q     Local Address:Port     Peer Address:Port  Process
udp    UNCONN  0       0                0.0.0.0:68            0.0.0.0:*      users:(("dhclient",pid=367,fd=9))
tcp    LISTEN  0       1000             0.0.0.0:22            0.0.0.0:*      users:(("dropbear",pid=295,fd=4))
tcp    LISTEN  0       1000                [::]:22               [::]:*      users:(("dropbear",pid=295,fd=5))
root@DietPi:~# [  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPiss -tulpn

can you share your current network as well pls

ip a

Here you go :slightly_smiling_face:

root@DietPi:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether dc:a6:32:61:f4:f7 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.187/24 brd 192.168.1.255 scope global dynamic eth0
       valid_lft 84671sec preferred_lft 84671sec
    inet6 fe80::dea6:32ff:fe61:f4f7/64 scope link
       valid_lft forever preferred_lft forever
root@DietPi:~#


hmm that all looks fine. Do you use IPv6? if not could you disable it inside dietpi-config network settings? Once done restart the service and check the log

systemctl restart adguardhome.service
journalctl -u adguardhome.service

Here you go

root@DietPi:~# journalctl -u adguardhome.service
-- Journal begins at Thu 2022-08-18 15:58:23 BST, ends at Thu 2022-08-18 15:59:13 BST. --
Aug 18 15:58:34 DietPi systemd[1]: Started AdGuard Home (DietPi).
Aug 18 15:58:35 DietPi AdGuardHome[443]: 2022/08/18 15:58:35.118028 [info] AdGuard Home, version v0.107.10
Aug 18 15:58:35 DietPi AdGuardHome[443]: 2022/08/18 15:58:35.120235 [info] Upgrade yaml: 10 to 11
Aug 18 15:58:35 DietPi AdGuardHome[443]: 2022/08/18 15:58:35.120302 [info] Upgrade yaml: 11 to 12
Aug 18 15:58:35 DietPi AdGuardHome[443]: 2022/08/18 15:58:35.120348 [fatal] unexpected type of dns: map[string]interface {}
Aug 18 15:58:35 DietPi systemd[1]: adguardhome.service: Main process exited, code=exited, status=1/FAILURE
Aug 18 15:58:35 DietPi systemd[1]: adguardhome.service: Failed with result 'exit-code'.
Aug 18 15:58:40 DietPi systemd[1]: adguardhome.service: Scheduled restart job, restart counter is at 1.
Aug 18 15:58:40 DietPi systemd[1]: Stopped AdGuard Home (DietPi).
Aug 18 15:58:40 DietPi systemd[1]: Started AdGuard Home (DietPi).
Aug 18 15:58:40 DietPi AdGuardHome[533]: 2022/08/18 15:58:40.414628 [info] AdGuard Home, version v0.107.10
Aug 18 15:58:40 DietPi AdGuardHome[533]: 2022/08/18 15:58:40.417333 [info] Upgrade yaml: 10 to 11
Aug 18 15:58:40 DietPi AdGuardHome[533]: 2022/08/18 15:58:40.417600 [info] Upgrade yaml: 11 to 12
Aug 18 15:58:40 DietPi AdGuardHome[533]: 2022/08/18 15:58:40.417775 [fatal] unexpected type of dns: map[string]interface {}
Aug 18 15:58:40 DietPi systemd[1]: adguardhome.service: Main process exited, code=exited, status=1/FAILURE
Aug 18 15:58:40 DietPi systemd[1]: adguardhome.service: Failed with result 'exit-code'.
Aug 18 15:58:45 DietPi systemd[1]: adguardhome.service: Scheduled restart job, restart counter is at 2.
Aug 18 15:58:45 DietPi systemd[1]: Stopped AdGuard Home (DietPi).
Aug 18 15:58:45 DietPi systemd[1]: Started AdGuard Home (DietPi).
Aug 18 15:58:45 DietPi AdGuardHome[573]: 2022/08/18 15:58:45.719796 [info] AdGuard Home, version v0.107.10
Aug 18 15:58:45 DietPi AdGuardHome[573]: 2022/08/18 15:58:45.722976 [info] Upgrade yaml: 10 to 11
Aug 18 15:58:45 DietPi AdGuardHome[573]: 2022/08/18 15:58:45.723212 [info] Upgrade yaml: 11 to 12
Aug 18 15:58:45 DietPi AdGuardHome[573]: 2022/08/18 15:58:45.723386 [fatal] unexpected type of dns: map[string]interface {}
Aug 18 15:58:45 DietPi systemd[1]: adguardhome.service: Main process exited, code=exited, status=1/FAILURE
Aug 18 15:58:45 DietPi systemd[1]: adguardhome.service: Failed with result 'exit-code'.
Aug 18 15:58:50 DietPi systemd[1]: adguardhome.service: Scheduled restart job, restart counter is at 3.
Aug 18 15:58:50 DietPi systemd[1]: Stopped AdGuard Home (DietPi).
Aug 18 15:58:50 DietPi systemd[1]: Started AdGuard Home (DietPi).
Aug 18 15:58:51 DietPi AdGuardHome[614]: 2022/08/18 15:58:51.020281 [info] AdGuard Home, version v0.107.10
Aug 18 15:58:51 DietPi AdGuardHome[614]: 2022/08/18 15:58:51.022144 [info] Upgrade yaml: 10 to 11
Aug 18 15:58:51 DietPi AdGuardHome[614]: 2022/08/18 15:58:51.022224 [info] Upgrade yaml: 11 to 12
Aug 18 15:58:51 DietPi AdGuardHome[614]: 2022/08/18 15:58:51.022267 [fatal] unexpected type of dns: map[string]interface {}
Aug 18 15:58:51 DietPi systemd[1]: adguardhome.service: Main process exited, code=exited, status=1/FAILURE
Aug 18 15:58:51 DietPi systemd[1]: adguardhome.service: Failed with result 'exit-code'.
Aug 18 15:59:08 DietPi systemd[1]: adguardhome.service: Scheduled restart job, restart counter is at 4.
Aug 18 15:59:08 DietPi systemd[1]: Stopped AdGuard Home (DietPi).
Aug 18 15:59:08 DietPi systemd[1]: Started AdGuard Home (DietPi).
Aug 18 15:59:08 DietPi AdGuardHome[1020]: 2022/08/18 15:59:08.507689 [info] AdGuard Home, version v0.107.10
Aug 18 15:59:08 DietPi AdGuardHome[1020]: 2022/08/18 15:59:08.509450 [info] Upgrade yaml: 10 to 11
Aug 18 15:59:08 DietPi AdGuardHome[1020]: 2022/08/18 15:59:08.509506 [info] Upgrade yaml: 11 to 12
Aug 18 15:59:08 DietPi AdGuardHome[1020]: 2022/08/18 15:59:08.509546 [fatal] unexpected type of dns: map[string]interface {}
Aug 18 15:59:08 DietPi systemd[1]: adguardhome.service: Main process exited, code=exited, status=1/FAILURE
Aug 18 15:59:08 DietPi systemd[1]: adguardhome.service: Failed with result 'exit-code'.
Aug 18 15:59:13 DietPi systemd[1]: adguardhome.service: Scheduled restart job, restart counter is at 5.
Aug 18 15:59:13 DietPi systemd[1]: Stopped AdGuard Home (DietPi).
Aug 18 15:59:13 DietPi systemd[1]: adguardhome.service: Start request repeated too quickly.
Aug 18 15:59:13 DietPi systemd[1]: adguardhome.service: Failed with result 'exit-code'.
Aug 18 15:59:13 DietPi systemd[1]: Failed to start AdGuard Home (DietPi).
root@DietPi:~#

Found ist, It’s a Bug on AGH directly. You need to wait on next version

Or manually update to Edge channel of AGH

Yup that’s with ipv6 disabled.

Is it why homeassistant also is failing?

this has nothing to do with Homeassistent and should be unrelated. I added a statement above. There is a Bug on AGH software directly.

Oooh. I’ll try again with home assistant and see if it was an off error.

Thank you for all your help Joulinar!

For HA open a new issue pls.

Will do if it fails!

An updated version of AGH has been released fixing this issue Release AdGuard Home v0.107.11 · AdguardTeam/AdGuardHome · GitHub