Failed to bind socket
I've run knot successfully after install from (Debian 10 Repo). But after reboot I can't make it work again, the errors are below:
-> the operation not permintted
$ sudo knotd
2019-10-07T14:15:12 info: Knot DNS 2.7.6 starting
2019-10-07T14:15:12 info: loading 0 zones
2019-10-07T14:15:12 warning: cannot open persistent timer DB '/var/lib/knot/timers' (operation not permitted)
2019-10-07T14:15:12 warning: no zones loaded
2019-10-07T14:15:12 info: starting server
2019-10-07T14:15:12 info: server started in the foreground, PID 28745
2019-10-07T14:15:12 info: control, binding to '/run/knot/knot.sock'
2019-10-07T14:15:12 critical: control, failed to bind socket '/run/knot/knot.sock' (operation not permitted)
2019-10-07T14:15:12 info: stopping server
2019-10-07T14:15:12 info: shutting down
Then I try to make the socket file by hand, the result is:
$ sudo knotd -s /run/knot/knotku.sock
2019-10-07T14:16:49 info: Knot DNS 2.7.6 starting
2019-10-07T14:16:49 info: loading 0 zones
2019-10-07T14:16:49 warning: cannot open persistent timer DB '/var/lib/knot/timers' (operation not permitted)
2019-10-07T14:16:49 warning: no zones loaded
2019-10-07T14:16:49 info: starting server
2019-10-07T14:16:49 info: server started in the foreground, PID 28998
2019-10-07T14:16:49 info: control, binding to '/run/knot/knotku.sock'
2019-10-07T14:16:49 critical: control, failed to bind socket '/run/knot/knotku.sock' (address already in use)
2019-10-07T14:16:49 info: stopping server
2019-10-07T14:16:49 info: shutting down
knot directory owner in var/run
:
user at machine in /var/run
$ ls -la | grep knot
drwxr-xr-x 2 knot knot 60 Oct 7 13:59 knot
$ sudo knotd --version
knotd (Knot DNS), version 2.7.6
I want to try from nic.nz repo, but https://gitlab.labs.nic.cz/knot/knot-dns/issues/657
Related issues: