Permission Error with /var
Hi guys,
During the build of mailman3 I run in to few permission errors but there is one I have got stuck with, and you may be able to help me with this. I'm following this guide https://wiki.list.org/DOC/Howto_Install_Mailman3_On_Debian10. var_dir: /opt/mailman/mm/var configs: /opt/mailman/mm OS: Debian 10 I'm using virtual env
When try start mailman core PermissionError: [Errno 13] Permission denied: '//var/templates'
total 48 drwxrwxrwx 12 mailman mailman 4096 Jan 17 11:28 . drwxr-xr-x 7 mailman mailman 4096 Jan 17 17:19 .. drwxr-xr-x 2 mailman mailman 4096 Jan 17 11:10 archives drwxr-xr-x 2 mailman mailman 4096 Jan 17 11:10 cache drwxr-xr-x 2 mailman mailman 4096 Jan 17 11:10 data drwxr-xr-x 2 mailman mailman 4096 Jan 17 11:28 etc drwxr-xr-x 2 mailman mailman 4096 Jan 17 11:10 lists drwxr-xr-x 2 mailman mailman 4096 Jan 17 15:54 locks drwxr-xr-x 2 mailman mailman 4096 Jan 17 14:19 logs drwxr-xr-x 2 mailman mailman 4096 Jan 17 11:10 messages drwxr-xr-x 14 mailman mailman 4096 Jan 17 11:10 queue drwxr-xr-x 2 mailman mailman 4096 Jan 17 16:07 templates
all owned by mailman. what are hey suppose to be owned by if not mailman?
Regards, Tibor
Tibor Molnar writes:
When try start mailman core PermissionError: [Errno 13] Permission denied: '//var/templates' A Look, no "opt/mailman/mm" -------------------------+
drwxr-xr-x 2 mailman mailman 4096 Jan 17 16:07 templates
This is presumably in /opt/mailman/mm/var.
I'm guessing you're missing a configuration for the var variable in mailman.cfg, or you're starting Mailman from somewhere where there's another mailman.cfg in the config path before the one you correctly crafted.
The var variable is set in a section called [paths] or [paths.X] where X one of several predefined [paths] sections that can be invoked, and is followed by a colon and usually not indented.
Steve
On Thu, Jan 19, 2023 at 1:14 PM Tibor Molnar < tibor.molnar@waltoninstitute.ie> wrote:
Hi guys,
During the build of mailman3 I run in to few permission errors but there is one I have got stuck with, and you may be able to help me with this. I'm following this guide https://wiki.list.org/DOC/Howto_Install_Mailman3_On_Debian10. var_dir: /opt/mailman/mm/var configs: /opt/mailman/mm OS: Debian 10 I'm using virtual env
When try start mailman core PermissionError: [Errno 13] Permission denied: '//var/templates'
total 48 drwxrwxrwx 12 mailman mailman 4096 Jan 17 11:28 . drwxr-xr-x 7 mailman mailman 4096 Jan 17 17:19 .. drwxr-xr-x 2 mailman mailman 4096 Jan 17 11:10 archives drwxr-xr-x 2 mailman mailman 4096 Jan 17 11:10 cache drwxr-xr-x 2 mailman mailman 4096 Jan 17 11:10 data drwxr-xr-x 2 mailman mailman 4096 Jan 17 11:28 etc drwxr-xr-x 2 mailman mailman 4096 Jan 17 11:10 lists drwxr-xr-x 2 mailman mailman 4096 Jan 17 15:54 locks drwxr-xr-x 2 mailman mailman 4096 Jan 17 14:19 logs drwxr-xr-x 2 mailman mailman 4096 Jan 17 11:10 messages drwxr-xr-x 14 mailman mailman 4096 Jan 17 11:10 queue drwxr-xr-x 2 mailman mailman 4096 Jan 17 16:07 templates
all owned by mailman. what are hey suppose to be owned by if not mailman?
from the venv:
mailman info
Does it show that it is using the config file that you expect it to use?
(venv) [mailman@gw /opt/mailman/mm]$ mailman info GNU Mailman 3.3.8 (Tom Sawyer) Python 3.9.15 (main, Dec 6 2022, 09:25:59) [Clang 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a config file: /opt/mailman/mm/mailman.cfg <========================================================= Check if everything is okay in the file referenced here. db url: mysql+pymysql://mailman_user:XXXXXX@localhost /mailman?charset=utf8mb4&use_unicode=1 devmode: DISABLED REST root url: https://localhost:8001/3.1/ REST credentials: restadmin:restpass (venv) [mailman@gw /opt/mailman/mm]$
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
Thanks guys, In venv I had to locate and change the config file "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman/config/mailman.cfg" which was a very default and paths were different, however I still can't query mailman info or start core because of an other error. AttributeError: module 'importlib_resources' has no attribute 'as_file'
It must be some other dependency missing or I will have to start fresh build after messing up everything.
Thank you guys, the lib error is fixed by re- install importlib-resources with pip and core is running also.
participants (3)
-
Odhiambo Washington
-
Stephen J. Turnbull
-
Tibor Molnar