[Pkg-mailman-hackers] Bug#891849: Cron errors, permission denied: '/var/log/mailman3/mailman-suite.log'

Markus Gschwendt markus at runout.at
Thu Mar 1 23:54:01 UTC 2018


i tried to fix this with

chown list:list /var/log/mailman3/mailman-suite.log

but then other parts break:

```
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/lib/python2.7/dist-
packages/django/core/management/__init__.py", line 364, in
execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-
packages/django/core/management/__init__.py", line 338, in execute
    django.setup()
  File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 22,
in setup
    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/usr/lib/python2.7/dist-packages/django/utils/log.py", line 75,
in configure_logging
    logging_config_func(logging_settings)
  File "/usr/lib/python2.7/logging/config.py", line 794, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/lib/python2.7/logging/config.py", line 576, in configure
    '%r: %s' % (name, e))
ValueError: Unable to configure handler 'file': [Errno 13] Permission
denied: '/var/log/mailman3/mailman-suite.log'
```

I think that 2 different users try to write to that logfile.

A workaround (i don't like) is to give o+rw permission to that file.

Mainlman 3.1.1 from stretch-backports



More information about the Pkg-mailman-hackers mailing list