Forum archive
Mailman breaks right after turnkey-pylib upgrade (any correlation?)
Mailmain breaks since Mar 1st ~ 14:00. It is installed on a TKL Redmine installation (11.2 I believe). The error messages that I receive since that time are:
/var/log/mail.info:Mar 1 14:28:35 redmine postfix/pipe[27195]: B6EE3200C4: to=<xxxx@xxxx.xxx>,
relay=mailman, delay=3.9, delays=0.17/0.04/0/3.7, dsn=5.3.0, status=bounced (Command died with
status 1: "/usr/lib/mailman/bin/postfix-to-mailman.py". Command output:
Traceback (most recent call last):
File "/usr/lib/mailman/bin/postfix-to-mailman.py", line 91, in <module>
from Mailman import mm_cfg ImportError: No module named Mailman )When I look in the cron-apt log I see the following updates over the last week:
- libpq-dev libpq5 on Wed Feb 29 12:23:02 UTC 2012
- tklbam turnkey-pylib on Thu Mar 1 12:23:01 UTC 2012
- tklbam on Fri Mar 2 12:54:57 UTC 2012
Before this time, the Mailman process, spawned by Postfix ran beautifully with a number of lists and with 10ths of msgs a day. After this update of tklbam and turnkey-pylib, (these were the only changes to the system!) The mailman script cannot seem to import its own library. Is it possible that something has been reset in the python paths by the turnkey-pylib?
Also the etcconfig log does not show clear signs of changes surrounding that date and time? Any help appreciated to resolve the matter.
I removed the turnkey-pylib installed package (version 0.3+31+g3e22221). Naturally, as a result this will break some packages (confconsole tklbam turnkey-sysinfo). These are essential for the backup to function, but not essential for the instance to run.
When sending emails to the list I get good results.
The conclusion for me is that turnkey-pylib (or tklbam or related software) breaks something in the python installation due to which mailman does not function anymore.
Basic test is the following command from the commandline:
Correct working example (without turnkey-pylib 0.3+31+g3e22221 installed):
Incorrect example (with turnkey-pylib 0.3+31+g3e22221 installed):
# /usr/lib/mailman/bin/postfix-to-mailman.py Traceback (most recent call last): File "/usr/lib/mailman/bin/postfix-to-mailman.py", line 91, in <module> from Mailman import mm_cfg ImportError: No module named Mailmanincorrect pythonpath (by paths.py with turnkey-pylib installed)
I will check if I can revert back to an old release of turnkey-pylib (version 0.2+10+gcb57296) and if that seems to work. Right now I have no tklbam because of the removal of turnkey-pylib.