On Tue, Nov 24, 2020, at 7:26 AM, Eric Broens via Mailman-users wrote:
Hi, I am trying to install Mailman 3.3.2 in a python virtual environment, and don't understand why the following is happening.When executing "mailman info", it shows that "the config file is located in /etc/mailman3/mailman.cfg as is intended, hence "outside" the virtual environment. However, after having started mailman, and running "mailman info" again, the default (empty) config files seems to be created in the directory where mailman has been started:config file: /opt/mailman/mailman-suite/mailman-suite_project/var/etc/mailman.cfg This happens even when mailman is started with the option "-C /etc/mailman3/mailman.cfg".Does this mean that the config file needs to be located in a subdirectory of python's virtual environment?
It seems like a bug actually, I was able to reproduce this locally. I *think* we didn't notice it because we set a layout
most of the times or simply rely on the default paths.here
layout.
Although, it isn't related to inside or outside the virtualenv, it simply happens after two subsequent runs of mailman info
commands with no changes between them. My guess is that first attempt create the var/
directory structure in the current working directory and in the next run, mailman creates the empty mailman.cfg
inside that var/
directory instead of using the /etc/mailman3/mailman.cfg
.
I've opened https://gitlab.com/mailman/mailman/-/issues/797 for this.
Abhilash
(venv) [root@test-vps mailman-suite_project]# mailman infoGNU Mailman 3.3.2 (Tom Sawyer)Python 3.6.8 (default, Apr 16 2020, 01:36:27)[GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]config file: /etc/mailman3/mailman.cfgdb url: mysql+pymysql://*****:*****@localhost/mailman?charset=utf8&use_unicode=1devmode: DISABLEDREST root url: http://localhost:8001/3.1/REST credentials: restadmin:restpass
(venv) [root@test-vps mailman-suite_project]# mailman startStarting Mailman's master runnerGenerating MTA alias maps
(venv) [root@test-vps mailman-suite_project]# mailman infoGNU Mailman 3.3.2 (Tom Sawyer)Python 3.6.8 (default, Apr 16 2020, 01:36:27)[GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]config file: /opt/mailman/mailman-suite/mailman-suite_project/var/etc/mailman.cfgdb url: sqlite:////opt/mailman/mailman-suite/mailman-suite_project/var/data/mailman.dbdevmode: DISABLEDREST root url: http://localhost:8001/3.1/REST credentials: restadmin:restpass Thanks,Eric
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)