AdGuard Home – strange behaviour (crashes)

  • Raspberry Pi OS (32 Bit) Raspbian GNU/Linux 11 (bullseye)

  • Linux raspberrypi 5.15.61-v7l+ #1579 SMP Fri Aug 26 11:13:03 BST 2022 armv7l GNU/Linux

  • Raspberry Pi 4 Model B Rev 1.1

  • original Power supply used

  • SanDisk Ultra 64 GB

  • Software title | AdGuard Home (latest version 0.107.16, freshly installed)

Hello,

some days ago an AdGuard Home Update wouldn’t run from the Web-GUI and also on the command line I couldn’t figure out what’s the problem…

So I’ve decided to freshly format my SDcard, installed the recommended “Raspberry Pi OS (32 Bit)” with the help of the nice Raspberry Pi Imager.app and freshly installed AdGuard Home.

All is up to date and ‘freshly’ installed, only my config AdGuardHome.yaml was imported (from a backup) with all my settings.

Unfortunately the systems seems to have still some issues and I would like to figure out what exactly might be the problem here?

If I run:

journalctl --reverse --unit AdGuardHome.service

I can see the following:

Oct 11 17:12:08 raspberrypi systemd[1]: Started AdGuard Home: Network-level blocker.
Oct 11 17:12:08 raspberrypi systemd[1]: Starting AdGuard Home: Network-level blocker...
Oct 11 17:12:08 raspberrypi systemd[1]: AdGuardHome.service: Consumed 6min 23.282s CPU time.
Oct 11 17:12:08 raspberrypi systemd[1]: Stopped AdGuard Home: Network-level blocker.
Oct 11 17:12:08 raspberrypi systemd[1]: AdGuardHome.service: Scheduled restart job, restart counter is at 23.
Oct 11 17:11:57 raspberrypi systemd[1]: AdGuardHome.service: Consumed 6min 23.282s CPU time.
Oct 11 17:11:57 raspberrypi systemd[1]: AdGuardHome.service: Failed with result 'signal'.
Oct 11 17:11:57 raspberrypi systemd[1]: AdGuardHome.service: Main process exited, code=killed, status=9/KILL
Oct 11 15:37:05 raspberrypi systemd[1]: Started AdGuard Home: Network-level blocker.
Oct 11 15:37:05 raspberrypi systemd[1]: Starting AdGuard Home: Network-level blocker...
Oct 11 15:37:05 raspberrypi systemd[1]: AdGuardHome.service: Consumed 13min 34.937s CPU time.
Oct 11 15:37:05 raspberrypi systemd[1]: Stopped AdGuard Home: Network-level blocker.
Oct 11 15:37:05 raspberrypi systemd[1]: AdGuardHome.service: Scheduled restart job, restart counter is at 22.
Oct 11 15:36:54 raspberrypi systemd[1]: AdGuardHome.service: Consumed 13min 34.937s CPU time.
Oct 11 15:36:54 raspberrypi systemd[1]: AdGuardHome.service: Failed with result 'signal'.
Oct 11 15:36:54 raspberrypi systemd[1]: AdGuardHome.service: Main process exited, code=killed, status=9/KILL
Oct 11 12:20:33 raspberrypi systemd[1]: Started AdGuard Home: Network-level blocker.
Oct 11 12:20:33 raspberrypi systemd[1]: Starting AdGuard Home: Network-level blocker...
Oct 11 12:20:33 raspberrypi systemd[1]: AdGuardHome.service: Consumed 2min 54.903s CPU time.
Oct 11 12:20:33 raspberrypi systemd[1]: Stopped AdGuard Home: Network-level blocker.
Oct 11 12:20:33 raspberrypi systemd[1]: AdGuardHome.service: Scheduled restart job, restart counter is at 21.
Oct 11 12:20:23 raspberrypi systemd[1]: AdGuardHome.service: Consumed 2min 54.903s CPU time.
Oct 11 12:20:23 raspberrypi systemd[1]: AdGuardHome.service: Failed with result 'signal'.
Oct 11 12:20:23 raspberrypi systemd[1]: AdGuardHome.service: Main process exited, code=killed, status=9/KILL

So it looks like AdGuard Home is crashing (and auto-restarting) every 2 or 3 hours?

Yesterday the system was also completely ‘freezing’ (couldn’t access the Web-GUI of AdGuard Home and also couldn’t connect with SSH to the system) so I had to shut down (power off) the Pi and then it was running ‘normal’ again.

As I couldn’t find any good information on the net about

AdGuardHome.service: Failed with result 'signal'.

my hope was to find some help here from some Linux Gurus. :slight_smile:

Thx in advance & all the best,
Marcl

Welcome to our community

AGH developer had some issues with their application. A workaround has been describe on our forum :wink: AdGuard Home | Auto-Upgrade Failure - #2 by Joulinar

can you check for kernel error messages:

dmesg -l err,crit,alert,emerg

Oh, looks like a problem with the memory?

[161022.694701] Out of memory: Killed process 6811 (AdGuardHome) total-vm:1081768kB, anon-rss:818444kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:1668kB oom_score_adj:0
[181608.463111] Out of memory: Killed process 8277 (AdGuardHome) total-vm:1073256kB, anon-rss:803284kB, file-rss:300kB, shmem-rss:0kB, UID:0 pgtables:1656kB oom_score_adj:0
[184493.507173] Out of memory: Killed process 15052 (AdGuardHome) total-vm:1077544kB, anon-rss:815820kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:1664kB oom_score_adj:0
[193308.453127] Out of memory: Killed process 15814 (AdGuardHome) total-vm:1078120kB, anon-rss:805048kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:1672kB oom_score_adj:0
[198867.517468] Out of memory: Killed process 18190 (AdGuardHome) total-vm:1077928kB, anon-rss:817652kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:1668kB oom_score_adj:0
[199660.340557] Out of memory: Killed process 19165 (AdGuardHome) total-vm:1077928kB, anon-rss:819536kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:1672kB oom_score_adj:0
[199842.526627] Out of memory: Killed process 19323 (AdGuardHome) total-vm:1078184kB, anon-rss:816884kB, file-rss:224kB, shmem-rss:0kB, UID:0 pgtables:1668kB oom_score_adj:0
[208595.130268] Out of memory: Killed process 19381 (AdGuardHome) total-vm:1082280kB, anon-rss:813832kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:1672kB oom_score_adj:0
[208664.901390] Out of memory: Killed process 21717 (AdGuardHome) total-vm:997992kB, anon-rss:729840kB, file-rss:2892kB, shmem-rss:0kB, UID:0 pgtables:1500kB oom_score_adj:0
[214486.496897] Out of memory: Killed process 21809 (AdGuardHome) total-vm:1077992kB, anon-rss:815092kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:1668kB oom_score_adj:0
[217472.864268] Out of memory: Killed process 23324 (AdGuardHome) total-vm:1078440kB, anon-rss:818856kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:1668kB oom_score_adj:0
[217551.650332] Out of memory: Killed process 24101 (AdGuardHome) total-vm:1057064kB, anon-rss:795192kB, file-rss:352kB, shmem-rss:0kB, UID:0 pgtables:1624kB oom_score_adj:0

Maybe it could help if I reduce the DNS cache (with the Web-GUI of AGH)?

A

grep MemTotal /proc/meminfo

gives me right now

MemTotal: 944112 kB

And a

free

gives me

               total        used        free      shared  buff/cache   available
Mem:          944112      853720       34120       16724       56272       26320
Swap:         102396      102396           0

yes, you are running out of memory

Have a look to htop and check who is using the entire memory. As well SWAP is used. It could be enlarged

/boot/dietpi/func/dietpi-set_swapfile 1

Mmh, I don’t run DietPi, it’s Raspberry Pi OS (32 Bit) Raspbian GNU/Linux 11 (bullseye).

But to fix the issue there should be also a way, as both are GNU/Linux?

better to use DietPi, it’s more lightweight and is not consume that much memory compared to plain RPi OS.

In general, have a look to htop where your memory is gone.

BTW: for RPI OS, they have an own forum. We are specialized on DietPi :wink:

Ok, thank you very much. :two_hearts:

Will save my AdGuardHome.yaml again and install a fresh DietPi with AdGuard.

PS: I was remembering there is a lightweight version of Linux for the machine, but I couldn’t remember the name – but now I will remember it (hopefully) forever – it’s the famous DietPi. :grinning:

you can use DietPi software tool to install AGH. Just take note, that we place the AdGuardHome.yaml on a different place and on a default setup, a different port is used. But this should be overwritten by your config file. :slight_smile:

Worked like a charm, thank you again. Installed DietPi_RPi-ARMv7-Bullseye.img

I’am wondering if it would be somehow ‘better’ to use the ARMv8 64bit version instead of the ARMv7 32bit version of DietPi for my Raspberry Pi 4 Model B Rev 1.1?

The Pi is only used for AdGuard Home.

32bit is totally fine.

1 Like