Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
Следующая версия
Предыдущая версия
unbound:when-unbound-wont-write-logs [2019/10/28 11:11] Anthonyunbound:when-unbound-wont-write-logs [2019/10/28 11:16] (текущий) Anthony
Строка 3: Строка 3:
 Since I have set up my own e-mail server solution, I am using unbound as a local reverse DNS for rspamd. It works great… So great, that I haven’t noticed that it does not log anything until today… Since I have set up my own e-mail server solution, I am using unbound as a local reverse DNS for rspamd. It works great… So great, that I haven’t noticed that it does not log anything until today…
  
-Error as seen when restarting the service or looking into syslog: <WRAP center round info 60%> error Could not open logfile /var/log/unbound/unbound.log: Permission denied </WRAP> The permissions on the file are okay, but the problem was with apparmor.+Error as seen when restarting the service or looking into syslog:
  
-So to fix the issue, we have to edit the settings: <WRAP center round info 60%$ vim /etc/apparmor.d/local/usr.sbin.unbound </WRAP> Add this line: <WRAP center round info 60%> # Site-specific additions and overrides for usr.sbin.unbound.+<code> 
 +error Could not open logfile /var/log/unbound/unbound.log: Permission denied
  
 +</code>
 +
 +The permissions on the file are okay, but the problem was with apparmor.
 +
 +So to fix the issue, we have to edit the settings:
 +
 +<code>
 +$ vim /etc/apparmor.d/local/usr.sbin.unbound
 +
 +</code>
 +
 +Add this line:
 +
 +<code>
 +# Site-specific additions and overrides for usr.sbin.unbound.
 # For more details, please see /etc/apparmor.d/local/README. # For more details, please see /etc/apparmor.d/local/README.
  
-/var/log/unbound/unbound.log rw, </WRAP> Reload apparmor config and restart unbound services: <WRAP center round info 60%> # apparmor_parser -r /etc/apparmor.d/usr.sbin.unbound service unbound restart </WRAP>+/var/log/unbound/unbound.log rw, 
 + 
 +</code> 
 + 
 +Reload apparmor config and restart unbound services: 
 + 
 +<code> 
 +# apparmor_parser -r /etc/apparmor.d/usr.sbin.unbound 
 + 
 +</code> 
 +<code> 
 +service unbound restart 
 + 
 +</code>
  
  
unbound/when-unbound-wont-write-logs.1572261060.txt.gz · Последнее изменение: Anthony
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0