On Wed, Mar 24, 2021, at 10:01 AM, bader@cchmc.org wrote:
So I am working with our Linux admin to install mailman3 in centos7 following this instructions https://docs.mailman3.org/en/latest/install/virtualenv.html# (and adjusting for centos versus Debian) The install went fine with the command “pip install wheel mailman psycopg2-binary”until the config file. /etc/mailman3/mailman.cfg
The /etc/mailman3 directory did not get created? Should it have?
It should not, pip
cannot create these directories. You have to create
them manually.
We created it and the config file
But “mailman info” throws errors
venv) [mailman@bmimailmandr2 var]$ mailman info Traceback (most recent call last): File "/opt/mailman/venv/lib64/python3.6/site-packages/sqlalchemy/engine/base.py", line 2336, in _wrap_pool_connect return fn() File "/opt/mailman/venv/lib64/python3.6/site-packages/sqlalchemy/pool/base.py", line 364, in connect return _ConnectionFairy._checkout(self) File "/opt/mailman/venv/lib64/python3.6/site-packages/sqlalchemy/pool/base.py", line 778, in _checkout fairy = _ConnectionRecord.checkout(pool) File "/opt/mailman/venv/lib64/python3.6/site-packages/sqlalchemy/pool/base.py", line 495, in checkout rec = pool._do_get() File "/opt/mailman/venv/lib64/python3.6/site-packages/sqlalchemy/pool/impl.py", line 140, in _do_get self._dec_overflow() File "/opt/mailman/venv/lib64/python3.6/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__ with_traceback=exc_tb, File "/opt/mailman/venv/lib64/python3.6/site-packages/sqlalchemy/util/compat.py", line 182, in raise_ raise exception File "/opt/mailman/venv/lib64/python3.6/site-packages/sqlalchemy/pool/impl.py", line 137, in _do_get return self._create_connection() File "/opt/mailman/venv/lib64/python3.6/site-packages/sqlalchemy/pool/base.py", line 309, in _create_connection return _ConnectionRecor
This seems to be trying to connecting to database. Have you setup the database as described in https://docs.mailman3.org/en/latest/install/virtualenv.html#setup-database and then added the right values in mailman.cfg you created?
You will see a [database] section with a placeholder MYPASSWORD to put your database password.
I suspect it is not using the config file at /etc/mailman3/mailman.cfg
It should do that by default, unless you have a mailman.cfg
in the current working directory.
But we do not even see a mailman service in /etc/systemd/system/mailman3.service.
pip install
cannot creates these files. You have to manually create both /etc/mailman3/mailman.cfg
and
the above systemd service file. I’ll update the docs to be more explicit about this.
Also, we are using python 3.6, will that be a major issue? or should spend the time to install 3.7 from source?
3.6 should be okay for now, we do run CI for 3.6 so we will know if there is any breakage and can let the users know about it. We do run atleast one server on 3.6 ourselves. It doesn’t EOL until end of this calendar year.
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)