unifios-utilities icon indicating copy to clipboard operation
unifios-utilities copied to clipboard

pihole does not start on reboot of UDM Pro

Open rcmpayne opened this issue 3 years ago • 1 comments

When i restart the UDM Pro, my pi-hole does not start and when I attempt to start /mnt/data/on_boot.d/10-dns.sh, I get the following error below. When i manually re-run 05 and 06 scrtipts, everything works fine.

What log can I use to see if the scitpts are starting on boot and or attempting to start too early?

Error:

# ./10-dns.sh
Error: CNI plugins not found. You can install it with the following command:
       curl -fsSLo /mnt/data/on_boot.d/05-install-cni-plugins.sh https://raw.githubusercontent.com/boostchicken/udm-utilities/master/cni-plugins/05-install-cni-plugins.sh && /bin/sh /mnt/data/on_boot.d/05-install-cni-plugins.sh

Fix: Manually run the following:

# ./05-install-cni-plugins.sh
Pouring /mnt/data/.cache/cni-plugins/cni-plugins-linux-arm64-v1.0.1.tgz

# ./06-cni-bridge.sh

# ./10-dns.sh
grep: /run/dnsmasq.conf.d/custom.conf: No such file or directory
pihole
# ls -la /mnt/data/on_boot.d/
drwxr-xr-x    2 root     root          4096 Feb  6 23:19 .
drwxr-xr-x   18 root     root          4096 Feb  6 23:57 ..
-rwxr-xr-x    1 root     root           252 Feb  6 23:17 04-container-common.sh
-rwxr-xr-x    1 root     root          4780 Feb  6 23:17 05-install-cni-plugins.sh
-rwxr-xr-x    1 root     root           138 Feb  6 20:11 06-cni-bridge.sh
-rwxr-xr-x    1 root     root          4221 Feb  6 23:23 10-dns.sh
-rwxr-xr-x    1 root     root           769 Jul 22  2021 15-add-root-ssh-key.sh
-rwxr-xr-x    1 root     root           538 Dec 31 20:20 20-multicast-relay.sh.txt

rcmpayne avatar Feb 07 '22 04:02 rcmpayne

I had to add 20-dns.conflist to /mnt/data/podman/cni/. Once I did that pi-hole started working on start-up.

jaken1986 avatar Apr 25 '22 12:04 jaken1986