mailman breaks after tklbam 1.1 and turnkey-pylib 0.3 upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TurnKey Linux |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
See also the forumpost: http://
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/
relay=mailman, delay=3.9, delays=
status 1: "/usr/lib/
Traceback (most recent call last):
File "/usr/lib/
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.
--- update
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.
Mar 4 15:54:22 tech postfix/pipe[8716]: 3D0A820119: to=<email address hidden>,
relay=mailman, delay=1.7, delays=
status=sent (delivered via mailman service)
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):
# /usr/lib/
Illegal invocation: '/usr/lib/
Incorrect example (with turnkey-pylib 0.3+31+g3e22221 installed):
# /usr/lib/
Traceback (most recent call last):
File "/usr/lib/
from Mailman import mm_cfg
ImportError: No module named Mailman
When using python debugger on the postfix-
sys.path pythonpath without turnkey-pylib installed
['/var/
'/usr/lib/
'/usr/lib/
'/usr/lib/
'/usr/local/
'/usr/lib/
incorrect pythonpath (by paths.py with turnkey-pylib installed)
['/var/
'/usr/lib/
/usr/lib/
'/usr/lib/
'/usr/local/
'/usr/lib/
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.
It seems that tklbam 1.1 depends on turnkey-pylib >=0.3 which is difficult for me to test in the production environment as this seems to break postfix_to_mail.py
All is working fine when I downgraded to tklbam 1.0 (requires turnkey-pylib 0.2) and turnkey-pylib 0.2.
http:// archive. turnkeylinux. org/ubuntu/ pool/lucid/ main/t/ turnkey- pylib/turnkey- pylib_0. 2%2b10% 2bgcb57296_ i386.deb
and
http:// archive. turnkeylinux. org/ubuntu/ pool/lucid/ main/t/ tklbam/ tklbam_ 1.0_all. deb
I set the versions for these two packages on 'hold' until this issue is resolved.