Error 'finding' log file on starting unbound service
Jun 25 20:02:19 asus unbound: unbound[111312:0] error: Could not open logfile /var/log/unbound.log: No such file or directory
But the file exists and should be writable...
For *example* (I have tried a number of combinations of ownership and perms)
[root@asus:/var/log]
:> ll | grep unbound
-rw-rw-r-- 1 root unbound 0 2021-06-25 20:00 unbound.log
Where's the error?
I have tried even
-rw-r--r-- 1 unbound unbound 0 2021-06-25 20:00 unbound.log
and
-rw-rw-r-- 1 stephen stephen 0 2021-06-25 20:00 unbound.log
and
-rw-rw-r-- 1 root root 0 2021-06-25 20:00 unbound.log
And so on
Parent permissions
drwxr-xr-x 13 root root 4.0K 2021-06-24 14:19 var
drwxr-xr-x 13 root root 4.0K 2021-06-25 20:00 log
Logging config on unbound.conf is :
server:
directory: "/etc/unbound"
username: unbound
chroot: "/etc/unbound"
pidfile: "/etc/unbound/unbound.pid"
interface: 0.0.0.0
interface: ::0
logfile: /var/log/unbound.log
verbosity: 1
log-queries: yes
Asked by Stephen Boston
(2526 rep)
Jun 26, 2021, 03:20 AM
Last activity: Jun 26, 2021, 12:42 PM
Last activity: Jun 26, 2021, 12:42 PM