Maintained by: NLnet Labs

[Unbound-users] Unbound not logging

W.C.A. Wijngaards
Tue Feb 4 12:44:59 CET 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Sofia,

If you start unbound with '-d' from the commandline, it will log to
the console for a while.  Maybe it will say why it cannot log.  Then
you can ctrl-c unbound.

Or you can strace that unbound invocation and see what file it opens
and what happens.

Best regards,
   Wouter

On 02/04/2014 12:32 PM, Sofía Silva Berenguer wrote:
> Hi!
> 
> SELinux is disabled.
> 
> I tried touching var/log/unbound.log under the unbound install 
> directory /home/unbound/var/log/unbound.log) and changing the
> logfile parameter to the new path and then restarted unbound and
> still nothing is being logged.
> 
> The permissions of the new log file are as follows:
> 
> -rw-rw-r-- 1 unbound unbound
> 
> I'm not using chroot. I installed Unbound in the home directory of
> the user "unbound". Could chroot be preventing unbound from logging
> anyway?
> 
> Thank you a lot for your comments!
> 
> Kind regards,
> 
> Sofía
> 
> El 04/02/14 05:51, W.C.A. Wijngaards escribió:
>> Hi Sofia,
> 
>> On 02/04/2014 03:36 AM, shmick at riseup.net wrote:
>>> que tal,
> 
>>> Sofía Silva Berenguer:
>>>> Hi!
>>>> 
>>>> I've installed Unbound on a Centos 6.5 server.
>>>> 
>>>> I've set it up not to use syslog and to log to the file 
>>>> /var/log/unbound.log. Verbosity level is 5:
>>>> 
>>>> use-syslog: no logfile: /var/log/unbound.log verbosity: 5
>>>> 
>>>> Permissions for the log file are as follows:
>>>> 
>>>> -rw-r--r-- 1 unbound unbound
> 
>>> it might be a dir perms issue did you try changing to your
>>> conf dir (ie. /usr/local/etc/unbound) ? drwxr-xr-x 4 unbound
>>> unbound 4096 Feb  4 12:14
> 
>> chroot is another thing that could prevent logging.  Or SELinux.
> 
>> Best regards, Wouter
> 
>>>> 
>>>> However, the log file is empty. Unbound is not logging 
>>>> anything to the file.
>>>> 
>>>> Is there anything else I should set up?
>>>> 
>>>> Thank you a lot in advance for any help.
>>>> 
>>>> Regards,
>>>> 
>>>> Sofía _______________________________________________ 
>>>> Unbound-users mailing list Unbound-users at unbound.net 
>>>> http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users
>>>> 
>>> _______________________________________________ Unbound-users 
>>> mailing list Unbound-users at unbound.net 
>>> http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users
> 
> 
>> _______________________________________________ Unbound-users 
>> mailing list Unbound-users at unbound.net 
>> http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJS8NK7AAoJEJ9vHC1+BF+NEwsQALAQpECLAfgfHDKAFwtIrKM+
AL4HgeHj9zqNKysHZBpvtfT0Jiay93tbR6fLTzA2PChPQkF73UgaPWbymyPXtOTj
TtbY+0WvApYYSjNgjpeeCFXGPdlv9aJI6kI9zRt6wzKNr6+6W7QAsmp7ud17OfeX
H6RQJwzlOxWKRiJ4rfLaqqr4u7MM8giJ5eA2OcJDm9aMbSqwyDB/Chj6L7QwVsbX
IIDkgy5vl2CAUMBcLousJFhvavrDVBO45tsoK21KJi8s18207ZqtF8xAQSLbxZMe
EVlr974HAFFRMXoDxMOqTB/QiUvjajOAog1t1ua41wMHCk6XU9A0A6p8BbaXtVkn
wPMQjKTIFrncROgLRUfPpFHKlYZ7LCyCjjtQbI5cpJ3cTOHZ1dG47HbzYarpRq6A
5p7pw64uSKAKoPLkfqKTAWmhydoxWrFTMzuo3BBM7eIJFjsQnauOgP9vY4RHgJB/
8z7TroJRUY3pd3eA20I8AZ/+C4XWtXhl5u6tqtJuvNTNAW5P5jJKdSTXbDeISOR4
M/fGilOnKv3pJK1Ku/wv8l0cf3Qu5QhlHCs2RKP8iPHtjRn+IDoWDcKFrao4W7to
9MKVAGWMNq3ryUFAJaRCUkTYKCCPOf7mIrh6x8GwJCaqUG04nx1rCo9J1Qt2ciGQ
iMZhHoOUGEopSbkMIFV2
=acdD
-----END PGP SIGNATURE-----