unbound fail after upgrade Ubuntu from 17.10 to 18.04

Bernard Drozd bernid at interia.pl
Mon Apr 30 13:38:19 UTC 2018


Thank you Phil,
>1. Run: journalctl -u unbound
>See what appears in Unbound's logs, fix it

See output below:

Apr 30 15:07:18 akacja systemd[1]: Starting Unbound DNS server...
Apr 30 15:07:18 akacja package-helper[28544]: /var/lib/unbound/root.key has 
content
Apr 30 15:07:18 akacja package-helper[28544]: success: the anchor is ok
Apr 30 15:07:18 akacja unbound[28555]: Apr 30 15:07:18 unbound[28555:0] 
warning: so-rcvbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.rmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:18 akacja unbound[28555]: Apr 30 15:07:18 unbound[28555:0] 
warning: so-sndbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.wmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:18 akacja unbound[28555]: Apr 30 15:07:18 unbound[28555:0] 
error: can't bind socket: Address already in use for 0.0.0.0
Apr 30 15:07:18 akacja unbound[28555]: Apr 30 15:07:18 unbound[28555:0] 
fatal error: could not open ports
Apr 30 15:07:18 akacja systemd[1]: unbound.service: Main process exited, 
code=exited, status=1/FAILURE
Apr 30 15:07:18 akacja systemd[1]: unbound.service: Failed with result 
'exit-code'.
Apr 30 15:07:18 akacja systemd[1]: Failed to start Unbound DNS server.
Apr 30 15:07:18 akacja systemd[1]: unbound.service: Service hold-off time 
over, scheduling restart.
Apr 30 15:07:18 akacja systemd[1]: unbound.service: Scheduled restart job, 
restart counter is at 1.
Apr 30 15:07:18 akacja systemd[1]: Stopped Unbound DNS server.
Apr 30 15:07:18 akacja systemd[1]: Starting Unbound DNS server...
Apr 30 15:07:18 akacja package-helper[28579]: /var/lib/unbound/root.key has 
content
Apr 30 15:07:18 akacja package-helper[28579]: success: the anchor is ok
Apr 30 15:07:18 akacja unbound[28592]: Apr 30 15:07:18 unbound[28592:0] 
warning: so-rcvbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.rmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:18 akacja unbound[28592]: Apr 30 15:07:18 unbound[28592:0] 
warning: so-sndbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.wmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:18 akacja unbound[28592]: Apr 30 15:07:18 unbound[28592:0] 
error: can't bind socket: Address already in use for 0.0.0.0
Apr 30 15:07:18 akacja unbound[28592]: Apr 30 15:07:18 unbound[28592:0] 
fatal error: could not open ports
Apr 30 15:07:18 akacja systemd[1]: unbound.service: Main process exited, 
code=exited, status=1/FAILURE
Apr 30 15:07:18 akacja systemd[1]: unbound.service: Failed with result 
'exit-code'.
Apr 30 15:07:18 akacja systemd[1]: Failed to start Unbound DNS server.
Apr 30 15:07:19 akacja systemd[1]: unbound.service: Service hold-off time 
over, scheduling restart.
Apr 30 15:07:19 akacja systemd[1]: unbound.service: Scheduled restart job, 
restart counter is at 2.
Apr 30 15:07:19 akacja systemd[1]: Stopped Unbound DNS server.
Apr 30 15:07:19 akacja systemd[1]: Starting Unbound DNS server...
Apr 30 15:07:19 akacja package-helper[28614]: /var/lib/unbound/root.key has 
content
Apr 30 15:07:19 akacja package-helper[28614]: success: the anchor is ok
Apr 30 15:07:19 akacja unbound[28629]: Apr 30 15:07:19 unbound[28629:0] 
warning: so-rcvbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.rmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:19 akacja unbound[28629]: Apr 30 15:07:19 unbound[28629:0] 
warning: so-sndbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.wmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:19 akacja unbound[28629]: Apr 30 15:07:19 unbound[28629:0] 
error: can't bind socket: Address already in use for 0.0.0.0
Apr 30 15:07:19 akacja unbound[28629]: Apr 30 15:07:19 unbound[28629:0] 
fatal error: could not open ports
Apr 30 15:07:19 akacja systemd[1]: unbound.service: Main process exited, 
code=exited, status=1/FAILURE
Apr 30 15:07:19 akacja systemd[1]: unbound.service: Failed with result 
'exit-code'.
Apr 30 15:07:19 akacja systemd[1]: Failed to start Unbound DNS server.
Apr 30 15:07:19 akacja systemd[1]: unbound.service: Service hold-off time 
over, scheduling restart.
Apr 30 15:07:19 akacja systemd[1]: unbound.service: Scheduled restart job, 
restart counter is at 3.
Apr 30 15:07:19 akacja systemd[1]: Stopped Unbound DNS server.
Apr 30 15:07:19 akacja systemd[1]: Starting Unbound DNS server...
Apr 30 15:07:20 akacja package-helper[28649]: /var/lib/unbound/root.key has 
content
Apr 30 15:07:20 akacja package-helper[28649]: success: the anchor is ok
Apr 30 15:07:20 akacja unbound[28678]: Apr 30 15:07:20 unbound[28678:0] 
warning: so-rcvbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.rmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:20 akacja unbound[28678]: Apr 30 15:07:20 unbound[28678:0] 
warning: so-sndbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.wmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:20 akacja unbound[28678]: Apr 30 15:07:20 unbound[28678:0] 
error: can't bind socket: Address already in use for 0.0.0.0
Apr 30 15:07:20 akacja unbound[28678]: Apr 30 15:07:20 unbound[28678:0] 
fatal error: could not open ports
Apr 30 15:07:20 akacja systemd[1]: unbound.service: Main process exited, 
code=exited, status=1/FAILURE
Apr 30 15:07:20 akacja systemd[1]: unbound.service: Failed with result 
'exit-code'.
Apr 30 15:07:20 akacja systemd[1]: Failed to start Unbound DNS server.
Apr 30 15:07:20 akacja systemd[1]: unbound.service: Service hold-off time 
over, scheduling restart.
Apr 30 15:07:20 akacja systemd[1]: unbound.service: Scheduled restart job, 
restart counter is at 4.
Apr 30 15:07:20 akacja systemd[1]: Stopped Unbound DNS server.
Apr 30 15:07:20 akacja systemd[1]: Starting Unbound DNS server...
Apr 30 15:07:20 akacja package-helper[28700]: /var/lib/unbound/root.key has 
content
Apr 30 15:07:20 akacja package-helper[28700]: success: the anchor is ok
Apr 30 15:07:20 akacja unbound[28717]: Apr 30 15:07:20 unbound[28717:0] 
warning: so-rcvbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.rmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:20 akacja unbound[28717]: Apr 30 15:07:20 unbound[28717:0] 
warning: so-sndbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.wmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:20 akacja unbound[28717]: Apr 30 15:07:20 unbound[28717:0] 
error: can't bind socket: Address already in use for 0.0.0.0
Apr 30 15:07:20 akacja unbound[28717]: Apr 30 15:07:20 unbound[28717:0] 
fatal error: could not open ports
Apr 30 15:07:20 akacja systemd[1]: unbound.service: Main process exited, 
code=exited, status=1/FAILURE
Apr 30 15:07:20 akacja systemd[1]: unbound.service: Failed with result 
'exit-code'.
Apr 30 15:07:20 akacja systemd[1]: Failed to start Unbound DNS server.
Apr 30 15:07:20 akacja systemd[1]: unbound.service: Service hold-off time 
over, scheduling restart.
Apr 30 15:07:20 akacja systemd[1]: unbound.service: Scheduled restart job, 
restart counter is at 5.
Apr 30 15:07:20 akacja systemd[1]: Stopped Unbound DNS server.
Apr 30 15:07:20 akacja systemd[1]: unbound.service: Start request repeated 
too quickly.
Apr 30 15:07:20 akacja systemd[1]: unbound.service: Failed with result 
'exit-code'.
Apr 30 15:07:20 akacja systemd[1]: Failed to start Unbound DNS server.
Apr 30 15:07:50 akacja systemd[1]: Starting Unbound DNS server...
Apr 30 15:07:50 akacja package-helper[28840]: /var/lib/unbound/root.key has 
content
Apr 30 15:07:50 akacja package-helper[28840]: success: the anchor is ok
Apr 30 15:07:50 akacja unbound[28857]: Apr 30 15:07:50 unbound[28857:0] 
warning: so-rcvbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.rmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:50 akacja unbound[28857]: Apr 30 15:07:50 unbound[28857:0] 
warning: so-sndbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.wmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:50 akacja unbound[28857]: Apr 30 15:07:50 unbound[28857:0] 
error: can't bind socket: Address already in use for 0.0.0.0
Apr 30 15:07:50 akacja unbound[28857]: Apr 30 15:07:50 unbound[28857:0] 
fatal error: could not open ports
Apr 30 15:07:50 akacja systemd[1]: unbound.service: Main process exited, 
code=exited, status=1/FAILURE
Apr 30 15:07:50 akacja systemd[1]: unbound.service: Failed with result 
'exit-code'.
Apr 30 15:07:50 akacja systemd[1]: Failed to start Unbound DNS server.
Apr 30 15:07:50 akacja systemd[1]: unbound.service: Service hold-off time 
over, scheduling restart.
Apr 30 15:07:50 akacja systemd[1]: unbound.service: Scheduled restart job, 
restart counter is at 1.
Apr 30 15:07:50 akacja systemd[1]: Stopped Unbound DNS server.
Apr 30 15:07:50 akacja systemd[1]: Starting Unbound DNS server...
Apr 30 15:07:51 akacja package-helper[28878]: /var/lib/unbound/root.key has 
content
Apr 30 15:07:51 akacja package-helper[28878]: success: the anchor is ok
Apr 30 15:07:51 akacja unbound[28893]: Apr 30 15:07:51 unbound[28893:0] 
warning: so-rcvbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.rmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:51 akacja unbound[28893]: Apr 30 15:07:51 unbound[28893:0] 
warning: so-sndbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.wmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:51 akacja unbound[28893]: Apr 30 15:07:51 unbound[28893:0] 
error: can't bind socket: Address already in use for 0.0.0.0
Apr 30 15:07:51 akacja unbound[28893]: Apr 30 15:07:51 unbound[28893:0] 
fatal error: could not open ports
Apr 30 15:07:51 akacja systemd[1]: unbound.service: Main process exited, 
code=exited, status=1/FAILURE
Apr 30 15:07:51 akacja systemd[1]: unbound.service: Failed with result 
'exit-code'.
Apr 30 15:07:51 akacja systemd[1]: Failed to start Unbound DNS server.
Apr 30 15:07:51 akacja systemd[1]: unbound.service: Service hold-off time 
over, scheduling restart.
Apr 30 15:07:51 akacja systemd[1]: unbound.service: Scheduled restart job, 
restart counter is at 2.
Apr 30 15:07:51 akacja systemd[1]: Stopped Unbound DNS server.
Apr 30 15:07:51 akacja systemd[1]: Starting Unbound DNS server...
Apr 30 15:07:51 akacja package-helper[28918]: /var/lib/unbound/root.key has 
content
Apr 30 15:07:51 akacja package-helper[28918]: success: the anchor is ok
Apr 30 15:07:51 akacja unbound[28935]: Apr 30 15:07:51 unbound[28935:0] 
warning: so-rcvbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.rmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:51 akacja unbound[28935]: Apr 30 15:07:51 unbound[28935:0] 
warning: so-sndbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.wmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:51 akacja unbound[28935]: Apr 30 15:07:51 unbound[28935:0] 
error: can't bind socket: Address already in use for 0.0.0.0
Apr 30 15:07:51 akacja unbound[28935]: Apr 30 15:07:51 unbound[28935:0] 
fatal error: could not open ports
Apr 30 15:07:51 akacja systemd[1]: unbound.service: Main process exited, 
code=exited, status=1/FAILURE
Apr 30 15:07:51 akacja systemd[1]: unbound.service: Failed with result 
'exit-code'.
Apr 30 15:07:51 akacja systemd[1]: Failed to start Unbound DNS server.
Apr 30 15:07:51 akacja systemd[1]: unbound.service: Service hold-off time 
over, scheduling restart.
Apr 30 15:07:51 akacja systemd[1]: unbound.service: Scheduled restart job, 
restart counter is at 3.
Apr 30 15:07:51 akacja systemd[1]: Stopped Unbound DNS server.
Apr 30 15:07:51 akacja systemd[1]: Starting Unbound DNS server...
Apr 30 15:07:52 akacja package-helper[28961]: /var/lib/unbound/root.key has 
content
Apr 30 15:07:52 akacja package-helper[28961]: success: the anchor is ok
Apr 30 15:07:52 akacja unbound[28981]: Apr 30 15:07:52 unbound[28981:0] 
warning: so-rcvbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.rmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:52 akacja unbound[28981]: Apr 30 15:07:52 unbound[28981:0] 
warning: so-sndbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.wmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:52 akacja unbound[28981]: Apr 30 15:07:52 unbound[28981:0] 
error: can't bind socket: Address already in use for 0.0.0.0
Apr 30 15:07:52 akacja unbound[28981]: Apr 30 15:07:52 unbound[28981:0] 
fatal error: could not open ports
Apr 30 15:07:52 akacja systemd[1]: unbound.service: Main process exited, 
code=exited, status=1/FAILURE
Apr 30 15:07:52 akacja systemd[1]: unbound.service: Failed with result 
'exit-code'.
Apr 30 15:07:52 akacja systemd[1]: Failed to start Unbound DNS server.
Apr 30 15:07:52 akacja systemd[1]: unbound.service: Service hold-off time 
over, scheduling restart.
Apr 30 15:07:52 akacja systemd[1]: unbound.service: Scheduled restart job, 
restart counter is at 4.
Apr 30 15:07:52 akacja systemd[1]: Stopped Unbound DNS server.
Apr 30 15:07:52 akacja systemd[1]: Starting Unbound DNS server...
Apr 30 15:07:52 akacja package-helper[29004]: /var/lib/unbound/root.key has 
content
Apr 30 15:07:52 akacja package-helper[29004]: success: the anchor is ok
Apr 30 15:07:52 akacja unbound[29021]: Apr 30 15:07:52 unbound[29021:0] 
warning: so-rcvbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.rmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:52 akacja unbound[29021]: Apr 30 15:07:52 unbound[29021:0] 
warning: so-sndbuf 4194304 was not granted. Got 425984. To fix: start with 
root permissions(linux) or sysctl bigger net.core.wmem_max(linux) or 
kern.ipc.maxsockbuf(b
Apr 30 15:07:52 akacja unbound[29021]: Apr 30 15:07:52 unbound[29021:0] 
error: can't bind socket: Address already in use for 0.0.0.0
Apr 30 15:07:52 akacja unbound[29021]: Apr 30 15:07:52 unbound[29021:0] 
fatal error: could not open ports
Apr 30 15:07:52 akacja systemd[1]: unbound.service: Main process exited, 
code=exited, status=1/FAILURE
Apr 30 15:07:52 akacja systemd[1]: unbound.service: Failed with result 
'exit-code'.
Apr 30 15:07:52 akacja systemd[1]: Failed to start Unbound DNS server.
Apr 30 15:07:52 akacja systemd[1]: unbound.service: Service hold-off time 
over, scheduling restart.
Apr 30 15:07:52 akacja systemd[1]: unbound.service: Scheduled restart job, 
restart counter is at 5.
Apr 30 15:07:52 akacja systemd[1]: Stopped Unbound DNS server.
Apr 30 15:07:52 akacja systemd[1]: unbound.service: Start request repeated 
too quickly.
Apr 30 15:07:52 akacja systemd[1]: unbound.service: Failed with result 
'exit-code'.
Apr 30 15:07:52 akacja systemd[1]: Failed to start Unbound DNS server.

>2. Run: unbound -d
>See where it fails.

ela at akacja:~$ sudo unbound -d
Apr 30 15:11:41 unbound[29740:0] warning: so-rcvbuf 4194304 was not granted. 
Got 425984. To fix: start with root permissions(linux) or sysctl bigger 
net.core.rmem_max(linux) or kern.ipc.maxsockbuf(bsd) values.
Apr 30 15:11:41 unbound[29740:0] warning: so-sndbuf 4194304 was not granted. 
Got 425984. To fix: start with root permissions(linux) or sysctl bigger 
net.core.wmem_max(linux) or kern.ipc.maxsockbuf(bsd) values.
Apr 30 15:11:41 unbound[29740:0] error: can't bind socket: Address already 
in use for 0.0.0.0
Apr 30 15:11:41 unbound[29740:0] fatal error: could not open ports

I'm newbee in Linux.
I use ubuntu server and SOC intel apollo lake SOC as home 
router/firewal/Nas/music server.
It worked fine (with 17.10) before upgrade...
After ubuntu upgrade I have issues with unbound, firewall (shorewall), and 
Wifi network interface (hostapd dosen't start automaticaly) ;-)
How could I fix unbound issue?
Thanks,





More information about the Unbound-users mailing list