Mailinglist Archive: opensuse-bugs (6221 mails)

< Previous Next >
[Bug 1087753] Dovecot fails to start, complaining "Can't open log file /var/log/dovecot.log: Permission denied"
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 11 Apr 2018 07:20:55 +0000
  • Message-id: <bug-1087753-21960-DAAg7FaaDG@http.bugzilla.opensuse.org/>
http://bugzilla.opensuse.org/show_bug.cgi?id=1087753
http://bugzilla.opensuse.org/show_bug.cgi?id=1087753#c8

--- Comment #8 from Tristan Miller <psychonaut@xxxxxxxxxxxxxxxxx> ---
(In reply to Christian Boltz from comment #4)
* writing dovecot.log by /usr/sbin/dovecot
The package maintainer just told me that the packaged default is still to
use syslog, so this is likely something you changed locally. Anyway -
please add the following line to /etc/apparmor.d/local/usr.sbin.dovecot:
/var/log/dovecot.log a,
Then run rcapparmor reload and try again. (Obviously you'll have to
re-enable log_path in the dovecot config.)
I'm not sure if a is enough, the last log line indicates w may be needed
(which would be bad because "a" allows append only and "w" full write
access
including changes to the existing logfile)

With this line in /etc/apparmor.d/local/usr.sbin.dovecot, starting dovecot
still results in the same error message -- "Can't open log file
/var/log/dovecot.log: Permission denied". But bizarrely, it *does* write to
that log file, but only to complain that it can't write to the log file:

Apr 11 09:17:10 master: Info: Dovecot v2.3.1 (8e2f634) starting up for imap
Apr 11 09:17:10 master: Error: service(log): child 26965 returned error 80
(Can't open log file)
Apr 11 09:17:10 master: Error: service(log): command startup failed, throttling
for 2 secs

The problem occurs whether I use "a" or "w".

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >
References