On Sat Oct 22, 2022 at 1:40 PM WAT, Stephen J. Turnbull wrote:
Onyeibo Oku writes:
(backtrace reformatted for readability)
Oct 22 04:13:55 mail.server.tld mailman[9253]: PermissionError: [Errno 13] Permission denied: '/opt/mailman/venv/lib/python3.10/site-packages/zope.i18nmessageid-5.0.1-py3.10.egg-info/PKG-INFO'
That's just an ordinary attempt to read a file, nothing special about zope. It seems that that package was installed with the wrong ownership or permissions. Most likely you installed the package as root rather than the mailman user.
Everything in a venv should be owned by the user:group it is intended for.[1] Assuming that the user that Mailman processes are running under is "mailman" with group "mailman", then
chown -R mailman:mailman /opt/mailman/venv
should do the trick.
Steve
Strangely, all files in /opt/mailman/venv belong to the mailman group
ls -lh /opt/mailman/venv/lib/python3.10/site-packages/zope* -rw-r--r--. 1 mailman mailman 529 Oct 19 18:31 /opt/mailman/venv/lib/python3.10/site-packages/zope.component-5.0.1-py3.8-nspkg.pth -rw-r--r--. 1 mailman mailman 529 Oct 19 18:31 /opt/mailman/venv/lib/python3.10/site-packages/zope.configuration-4.4.1-py3.9-nspkg.pth -rw-r--r--. 1 mailman mailman 529 Oct 19 18:31 /opt/mailman/venv/lib/python3.10/site-packages/zope.event-4.5.0-py3.6-nspkg.pth -rw-r--r--. 1 mailman mailman 529 Oct 19 18:31 /opt/mailman/venv/lib/python3.10/site-packages/zope.hookable-5.2-py3.10-nspkg.pth -rw-r--r--. 1 mailman mailman 529 Oct 19 18:31 /opt/mailman/venv/lib/python3.10/site-packages/zope.i18nmessageid-5.0.1-py3.10-nspkg.pth -rw-r--r--. 1 mailman mailman 529 Oct 19 18:31 /opt/mailman/venv/lib/python3.10/site-packages/zope.interface-5.5.0-py3.10-nspkg.pth -rw-r--r--. 1 mailman mailman 529 Oct 19 18:31 /opt/mailman/venv/lib/python3.10/site-packages/zope.schema-6.2.1-py3.8-nspkg.pth
and so it goes in the subdirectories.
Yet I set "mailman" as the User and Group in the systemd service file.
Onyeibo