unbound 1.12.0-1 failed to list interfaces

Problems with packages? Post here, using [tags] of the package name.

unbound 1.12.0-1 failed to list interfaces

Postby mys721tx » Sat Dec 05, 2020 8:51 am

With the following configuration unbound 1.12.0-1 cannot start on Raspberry Pi 4 with kernel 5.4.80-1-ARCH.
$this->bbcode_second_pass_code('', '
# vim: ft=conf
server:
use-syslog: yes
do-daemonize: no
username: "unbound"
directory: "/etc/unbound"
trust-anchor-file: "trusted-key.key"
root-hints: "root.hints"
tls-cert-bundle: "/etc/ssl/certs/ca-certificates.crt"
interface: 0.0.0.0

access-control: 0.0.0.0/0 refuse
access-control: 127.0.0.1 allow
access-control: 192.168.1.0/24 allow
')

The following are the error by systemd.

$this->bbcode_second_pass_code('', '
● unbound.service - Validating, recursive, and caching DNS resolver
Loaded: loaded (/etc/systemd/system/unbound.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2020-12-05 00:48:08 PST; 4s ago
Docs: man:unbound(8)
Process: 19615 ExecStart=/usr/bin/unbound -d -p (code=exited, status=1/FAILURE)
Main PID: 19615 (code=exited, status=1/FAILURE)

Dec 05 00:48:07 rpi4b.acaena.internal systemd[1]: Starting Validating, recursive, and caching DNS resolver...
Dec 05 00:48:08 rpi4b.acaena.internal unbound[19615]: [1607158088] unbound[19615:0] error: failed to list interfaces: getifaddrs: Address family not supported by protocol
Dec 05 00:48:08 rpi4b.acaena.internal unbound[19615]: [1607158088] unbound[19615:0] fatal error: could not open ports
Dec 05 00:48:08 rpi4b.acaena.internal systemd[1]: unbound.service: Main process exited, code=exited, status=1/FAILURE
Dec 05 00:48:08 rpi4b.acaena.internal systemd[1]: unbound.service: Failed with result 'exit-code'.
Dec 05 00:48:08 rpi4b.acaena.internal systemd[1]: Failed to start Validating, recursive, and caching DNS resolver.
')
mys721tx
 
Posts: 13
Joined: Tue May 23, 2017 10:38 pm

Re: unbound 1.12.0-1 failed to list interfaces

Postby mys721tx » Sat Dec 12, 2020 4:03 am

The problem persists with unbound 1.13.0-1.
mys721tx
 
Posts: 13
Joined: Tue May 23, 2017 10:38 pm

Re: unbound 1.12.0-1 failed to list interfaces

Postby blacksad » Sat Dec 12, 2020 10:04 am

v1.13.0 should work fine https://github.com/NLnetLabs/unbound/pull/351/commits/c48f01445e22686a0cb83451ab055cb405940b58

You are using a modified unit. Check "/etc/systemd/system/unbound.service" or just revert all changes
$this->bbcode_second_pass_code('', 'systemctl revert unbound')
blacksad
 
Posts: 12
Joined: Sat Oct 31, 2020 7:10 pm

Re: unbound 1.12.0-1 failed to list interfaces

Postby mys721tx » Sat Dec 12, 2020 7:09 pm

Thanks! I reverted the service file and was able to fix he problem.
mys721tx
 
Posts: 13
Joined: Tue May 23, 2017 10:38 pm


Return to Packages

Who is online

Users browsing this forum: No registered users and 18 guests