Adguardhome won't start

I installed the adguardhome package, edited /etc/init.d/adguard to define WORK_DIR to a mounted place on my uSD card. Upon starting it, I get:

daemon.err AdGuardHome[10673]: panic: qtls.CertificateRequestInfo Doesn't match
daemon.err AdGuardHome[10673]:
daemon.err AdGuardHome[10673]: goroutine 1 [running]:
daemon.err AdGuardHome[10673]: github.com/marten-seemann/gtls-go1-16.init.0()
daemon.err AdGuardHome[10673]:     github.com/marten-seemann/gtls-go1-16@v0.1.3/unsafe.go:17 +0x248

Am I missing a dependency?

[HowTo] Running Adguard Home on OpenWrt - #8 by brokenpipe

1 Like

Thanks for the link. I have both ca-certificates and ca-bundle installed. I gave up on it and am just running pihole in a linux container on the router. Working well.

1 Like

under 19.07 make sure you have the following packages installed otherwise SSL will not work

ca-certificates ca-bundle libustream-mbedtls libustream-openssl

You can also use wolfssl which is what OpenWRT is using for 20.04 onwards.

Also the opkg version of Adguard is far behind their 107 edge install.

They have fixed a few OpenWRT oddities and also improved it further since

use their script from their page.

curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v -c edge

That will install Adguard to the /opt folder and not the /tmp folder so when your router reboots you wont have to reinstall all over again.

I am having exactly the same problem on 21.02.0. The exact same config worked on 20.02 rc4

Same problem with OpenWrt 21.02.0 on fritzbox 4040. Installing

ca-certificates ca-bundle

isn't the solution. Anyideas besides the other installation method? I would like to stay with opkg for easy upgrades.

I think you should open a bug report against the official adguardhome package. https://github.com/openwrt/packages/issues

wait for OpenWRT to update their package with the newer AdGuard. or just install the edge version.

104 is broken. It installs key files to the /tmp folder meaning every time you reboot your router you will need to resetup AdGuard. It should be removed from opkg in my opinion.

@darksky are you running Linux contain on openwrt host os? If yes can you share the steps?

Yes, I am. Device is RPi4. See: https://openwrt.org/lxc_openwrt_host

1 Like

Thank you @darksky for the reply. I am new to this so kindly help following 2 questions as-well.

  1. Are using using SDCARD or SSD drive with PI4?
  2. Trying to setup LXC on PI4 with OpenWRT, but getting following error. did you see this?

"Failed to create container as there no space left on device"

I am using 32GB SD card

  1. uSD card. 32 GB is plenty for this
  2. Guessing your /srv/lxc/ is mounted to the root filesystem. How is your card partitioned? Install the fdisk package assuming you have some space and post the output of fdisk -l /dev/mmcblk0

For reference:

# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 14.84 GiB, 15931539456 bytes, 31116288 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5452574f

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1 *      8192   139263   131072   64M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      147456   360447   212992  104M 83 Linux
/dev/mmcblk0p3      360448 31116287 30755840 14.7G 83 Linux

Thanks! Here is the command result.

root@OpenWrt:/# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 29.81 GiB, 32010928128 bytes, 62521344 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5452574f

Device         Boot  Start    End Sectors  Size Id Type
/dev/mmcblk0p1 *      8192 139263  131072   64M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      147456 360447  212992  104M 83 Linux
root@OpenWrt:/#

So just make a partition that takes up the result of the free space, format it to ext4 and mount it for use as /srv/lxc/... most of your card is not partitioned at all.

1 Like

Thanks you. Can you share quick command to achieve this if handy?

Else I can google around and try...

From memory, fdisk does this... fdisk /dev/mmcblk0
n
p
start of partition is 1 more than last one so 212993 for you and end of partition is whatever the last block is (fdisk knows). TYpe is linux which I think is default.

Then write and quit
w
q

Then you need to format it to ext4 which might need e2fsprogs package.

mkfs.ext4 /dev/mmcblk0p3

Then use luci to setup the mount of the new partition to /srv/lxc/

1 Like

Thank you again. Working great now.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.