[SOLVED] Unbound failing on install

Expected Behaviour:

Given the below system/os specs:
Raspberry Pi Zero W Rev 1.1
Raspbian GNU/Linux 10 (buster)
Pi-hole v5.2.1
FTL v5.3.2
Unbound 1.9.0-2+deb10u2

I should be able to install unbound with no errors and run "unbound" after install without seeing any errors

Actual Behaviour:

  • run sudo apt install unbound
 unbound.service - Unbound DNS server
   Loaded: loaded (/lib/systemd/system/unbound.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Wed 2020-12-16 15:03:12 EST; 257ms ago
     Docs: man:unbound(8)
  Process: 7243 ExecStartPre=/usr/lib/unbound/package-helper chroot_setup (code=exited, status=1/FAILURE)
  Process: 7246 ExecStartPre=/usr/lib/unbound/package-helper root_trust_anchor_update (code=exited, status=1/FAILURE)
  Process: 7249 ExecStart=/usr/sbin/unbound -d $DAEMON_OPTS (code=exited, status=1/FAILURE)
 Main PID: 7249 (code=exited, status=1/FAILURE)
  • then, ignoring the error run
    wget https://www.internic.net/domain/named.root -qO- | sudo tee /var/lib/unbound/root.hints

  • then, sudo nano /etc/unbound/unbound.conf.d/pi-hole.conf and paste the default config from the tutorial

  • then run sudo service unbound restart and see

unbound.service - Unbound DNS server

Loaded: loaded (/lib/systemd/system/unbound.service; enabled; vendor preset: enabled)

Active: **failed** (Result: exit-code) since Wed 2020-12-16 15:08:40 EST; 8s ago

Docs: man:unbound(8)

Process: 7937 ExecStartPre=/usr/lib/unbound/package-helper chroot_setup **(code=exited, status=1/FAILURE)**

Process: 7940 ExecStartPre=/usr/lib/unbound/package-helper root_trust_anchor_update **(code=exited, status=1/FAILURE)**

Process: 7943 ExecStart=/usr/sbin/unbound -d $DAEMON_OPTS **(code=exited, status=1/FAILURE)**
Main PID: 7943 (code=exited, status=1/FAILURE)
Dec 16 15:08:40 raspberrypi systemd[1]: unbound.service: Service RestartSec=100ms expired, scheduling restart.
Dec 16 15:08:40 raspberrypi systemd[1]: unbound.service: Scheduled restart job, restart counter is at 5.
Dec 16 15:08:40 raspberrypi systemd[1]: Stopped Unbound DNS server.
Dec 16 15:08:40 raspberrypi systemd[1]: **unbound.service: Start request repeated too quickly.**
Dec 16 15:08:40 raspberrypi systemd[1]: **unbound.service: Failed with result 'exit-code'.**
Dec 16 15:08:40 raspberrypi systemd[1]: **Failed to start Unbound DNS server.**
Dec 16 15:08:41 raspberrypi systemd[1]: **unbound.service: Start request repeated too quickly.**
Dec 16 15:08:41 raspberrypi systemd[1]: **unbound.service: Failed with result 'exit-code'.**
Dec 16 15:08:41 raspberrypi systemd[1]: **Failed to start Unbound DNS server.**

What are additional troubleshooting steps I can take? I set verbosity to 2 and uncommented the root-hints location in the config but not sure what else I can do at this point?

Please post the complete outputs of the following commands from the Pi terminal:

unbound-checkconf

sudo grep -v '#\|^$' -R /etc/unbound/unbound.conf*

Thank you for the fast response!

[1608150746] unbound-checkconf[10421:0] error: Could not open /etc/unbound/unbound.conf: No such file or directory

/etc/unbound/unbound.conf.d/pi-hole.conf:server:
/etc/unbound/unbound.conf.d/pi-hole.conf:    verbosity: 2
/etc/unbound/unbound.conf.d/pi-hole.conf:    interface: 127.0.0.1
/etc/unbound/unbound.conf.d/pi-hole.conf:    port: 5335
/etc/unbound/unbound.conf.d/pi-hole.conf:    do-ip4: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    do-udp: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    do-tcp: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    do-ip6: no
/etc/unbound/unbound.conf.d/pi-hole.conf:    prefer-ip6: no
/etc/unbound/unbound.conf.d/pi-hole.conf:    root-hints: "/var/lib/unbound/root.hints"
/etc/unbound/unbound.conf.d/pi-hole.conf:    harden-glue: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    harden-dnssec-stripped: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    use-caps-for-id: no
/etc/unbound/unbound.conf.d/pi-hole.conf:    edns-buffer-size: 1472
/etc/unbound/unbound.conf.d/pi-hole.conf:    prefetch: yes
/etc/unbound/unbound.conf.d/pi-hole.conf:    num-threads: 1
/etc/unbound/unbound.conf.d/pi-hole.conf:    so-rcvbuf: 1m
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: 192.168.0.0/16
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: 169.254.0.0/16
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: 172.16.0.0/12
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: 10.0.0.0/8
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: fd00::/8
/etc/unbound/unbound.conf.d/pi-hole.conf:    private-address: fe80::/10

This file should contain the following line:

include: "/etc/unbound/unbound.conf.d/*.conf"

Create the file, insert that line, save and restart unbound.

1 Like

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