On Sun, Jun 9, 2024 at 1:03 AM Ron <admin@bclug.ca> wrote:
On 2024-06-08 14:48, Mark Sapiro wrote:
The "PermissionError: [Errno 13] Permission denied: '//var/templates'" is what it says. It is trying to create the absolute path /var/templates and user mailman3 doesn't have permission to create a templates/ directory in /var.
I'm not sure why this is. It should be trying /opt/mailman3/mm/var/templates. What does
I experienced the fun of having /var being where mailman3 tried to create files & folders.
Some combo of the following worked for me:
mailman3.service Environment="MAILMAN_CONFIG_FILE=/etc/mailman3/mailman.cfg"
/etc/mailman3/mailman.cfg [paths.here] var_dir: /opt/mailman/mm/var
You see, you are mixing /opt/mailman with /opt/mailman3. WHY?
I explicitly set many / most of the other vars in that section too (i.e. lock_dir was one that also caused issues).
This might be the Wrong Way, but it solved issues similar to the ones being discussed.
If you followed the virtualenv installation method as documented here: https://docs.mailman3.org/en/latest/install/virtualenv.html, then everything should be pointed to the home of the MM3 user you created at the step - https://docs.mailman3.org/en/latest/install/virtualenv.html#setup-mailman-us.... Then you wouldn't even need to get mixed up with paths and setting unnecessary environment variables.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]