Mailman crash/error question
Recently the moderator of a mailing list I host got a Mailman error. And this is what was in Mailman's error log: May 29 21:55:21 2015 admin(16001): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ admin(16001): [----- Mailman Version: 2.1.16 -----] admin(16001): [----- Traceback ------] admin(16001): Traceback (most recent call last): admin(16001): File "/usr/lib/mailman/scripts/driver", line 117, in run_main admin(16001): main() admin(16001): File "/usr/lib/mailman/Mailman/Cgi/admindb.py", line 203, in main admin(16001): process_form(mlist, doc, cgidata) admin(16001): File "/usr/lib/mailman/Mailman/Cgi/admindb.py", line 785, in process_form admin(16001): if id not in senderactions[sender]['message_ids']: admin(16001): KeyError: 'message_ids' admin(16001): [----- Python Information -----] admin(16001): sys.version = 2.4.3 (#1, Jan 9 2013, 06:47:03) [GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] admin(16001): sys.executable = /usr/bin/python admin(16001): sys.prefix = /usr admin(16001): sys.exec_prefix = /usr admin(16001): sys.path = ['/usr/lib/mailman/pythonlib', '/usr/lib/mailman', '/usr/lib/mailman/scripts', '/usr/lib/mailman', '/usr/lib64/python24.zip', '/usr/lib64/python2.4/', '/usr/lib64/python2.4/plat-linux2', '/usr/lib64/python2.4/lib-tk', '/usr/lib64/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages'] admin(16001): sys.platform = linux2 admin(16001): [----- Environment Variables -----] admin(16001): HTTP_COOKIE: wendell-townsfolk+moderator=28020000006976186955732800000037663266333937633233343834636466636163626230326138666637653834613966616561613230 This is on a CentOS 5.11 system (64bit), with Mailman 2.1.16 that I built as an RPM from the sources. Is this something I need to worry about? Or is it likely to have been caused by an illformed spam message? -- Robert Heller -- 978-544-6933 Deepwoods Software -- Custom Software Services http://www.deepsoft.com/ -- Linux Administration Services heller@deepsoft.com -- Webhosting Services
Robert Heller writes:
admin(16001): if id not in senderactions[sender]['message_ids']: admin(16001): KeyError: 'message_ids'
Is this something I need to worry about? Or is it likely to have been caused by an illformed spam message?
I'm not familiar with that particular part of the code, but despite the key 'message_ids' I don't think this has anything to do with the well-formedness of the message. It looks to me like line 760 of Mailman/Cgi/admindb.py is getting skipped because none of the relevant variables are present in the CGI data received. I don't know why that would be.
(Don't worry about the code reference if you're not prepared to look at it yourself, I just wanted to save Mark the time since I did look it up.)
Steve
On 05/31/2015 07:39 AM, Robert Heller wrote:
Recently the moderator of a mailing list I host got a Mailman error. And this is what was in Mailman's error log:
May 29 21:55:21 2015 admin(16001): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ admin(16001): [----- Mailman Version: 2.1.16 -----] admin(16001): [----- Traceback ------] admin(16001): Traceback (most recent call last): admin(16001): File "/usr/lib/mailman/scripts/driver", line 117, in run_main admin(16001): main() admin(16001): File "/usr/lib/mailman/Mailman/Cgi/admindb.py", line 203, in main admin(16001): process_form(mlist, doc, cgidata) admin(16001): File "/usr/lib/mailman/Mailman/Cgi/admindb.py", line 785, in process_form admin(16001): if id not in senderactions[sender]['message_ids']: admin(16001): KeyError: 'message_ids' admin(16001): [----- Python Information -----] admin(16001): sys.version = 2.4.3 (#1, Jan 9 2013, 06:47:03) [GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] admin(16001): sys.executable = /usr/bin/python admin(16001): sys.prefix = /usr admin(16001): sys.exec_prefix = /usr admin(16001): sys.path = ['/usr/lib/mailman/pythonlib', '/usr/lib/mailman', '/usr/lib/mailman/scripts', '/usr/lib/mailman', '/usr/lib64/python24.zip', '/usr/lib64/python2.4/', '/usr/lib64/python2.4/plat-linux2', '/usr/lib64/python2.4/lib-tk', '/usr/lib64/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages'] admin(16001): sys.platform = linux2 admin(16001): [----- Environment Variables -----] admin(16001): HTTP_COOKIE: wendell-townsfolk+moderator=28020000006976186955732800000037663266333937633233343834636466636163626230326138666637653834613966616561613230
This is on a CentOS 5.11 system (64bit), with Mailman 2.1.16 that I built as an RPM from the sources.
Is this something I need to worry about? Or is it likely to have been caused by an illformed spam message?
and on 05/31/2015 09:01 AM, Stephen J. Turnbull wrote:
(Don't worry about the code reference if you're not prepared to look at it yourself, I just wanted to save Mark the time since I did look it up.)
Thanks ;) This occurred when a moderator (already authenticated) submitted an admindb form for the wendell-townsfolk list, and the post data from the form was incomplete. This probably occurred because for some reason, the http transaction between the moderator's web browser and the web server on the Mailman host got interrupted mid stream, or possibly the moderator went to an admindb URL with some kind of query fragment, but insufficient data. If there weren't more in the [----- Environment Variables -----] section in the error log, that leans towards the interruption scenario. If there were, I might be able to say more if I saw them. -- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Mark Sapiro
-
Robert Heller
-
Stephen J. Turnbull