Bug in Mailman version 2.1.23 We're sorry, we hit a bug!

Bug #1739530 reported by Adis Satwian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Incomplete
Undecided
Unassigned

Bug Description

Bug in Mailman version 2.1.23

We're sorry, we hit a bug!

Please inform the webmaster for this site of this problem. Printing of traceback and other system information has been explicitly inhibited, but the webmaster can find this information in the Mailman error logs.

This the error message that i found on mailman logs :

Dec 21 09:52:31 2017 admin(24252): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
admin(24252): [----- Mailman Version: 2.1.23 -----]
admin(24252): [----- Traceback ------]
admin(24252): Traceback (most recent call last):
admin(24252): File "/usr/local/cpanel/3rdparty/mailman/scripts/driver", line 117, in run_main
admin(24252): main()
admin(24252): File "/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/admindb.py", line 314, in main
admin(24252): num += show_helds_overview(mlist, form, ssort)
admin(24252): File "/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/admindb.py", line 599, in show_helds_overview
admin(24252): t.AddRow([Link(admindburl + '?msgid=%d' % id, '[%d]' % counter ),
admin(24252): TypeError: %d format: a number is required, not str
admin(24252): [----- Python Information -----]
admin(24252): sys.version = 2.6.6 (r266:84292, Aug 18 2016, 15:13:37)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
admin(24252): sys.executable = /usr/bin/python
admin(24252): sys.prefix = /usr
admin(24252): sys.exec_prefix = /usr
admin(24252): sys.path = ['/usr/local/cpanel/3rdparty/mailman/pythonlib', '/usr/local/cpanel/3rdparty/mailman', '/usr/local/cpanel/3rdparty/mailman/scripts', '/usr/local/cpanel/3rdparty/mailman', '/usr/lib64/python26.zip', '/usr/lib64/python2.6/', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages']
admin(24252): sys.platform = linux2
admin(24252): [----- Environment Variables -----]
admin(24252): HTTP_COOKIE: marketing_ccsindo.com+admin=280200000069e1213b5a732800000033383233626664643034383363363361306532396462643162623031656137313662663533356231

i'm newbie on cpanel, so i hope can get help from anyone of you.
i get this error message when try to access page "Tend to pending moderator requests" to see held message by mailman.

Many thanks for your help.

Mark Sapiro (msapiro)
Changed in mailman:
status: New → Incomplete
Changed in mailman:
status: Incomplete → New
status: New → Incomplete
status: Incomplete → New
Revision history for this message
Mark Sapiro (msapiro) wrote :

There is apparently some corruption in the list's request.pck file resulting in a held message with a non-numeric request ID.

Do the following:

cd /usr/local/cpanel/3rdparty/mailman
bin/dumpdb lists/LIST_HOST/request.pck

And post the result.

Revision history for this message
Mark Sapiro (msapiro) wrote :

In my prior comment, 'LIST_HOST' is the cPanel list name. In this case 'marketing_ccsindo.com'.

Changed in mailman:
status: New → Incomplete
Revision history for this message
Adis Satwian (adissatwian) wrote :
Download full text (100.6 KiB)

i try like what you said, this is the result not complete because i can only copy some of them,

                  { '_parsemsg': True,
                      'from_is_list': 0,
                      'lang': 'en',
                      'listname': 'marketing_ccsindo.com',
                      'pipeline': [ 'MimeDel',
                                      'Scrubber',
                                      'Emergency',
                                      'Tagger',
                                      'CalcRecips',
                                      'AvoidDuplicates',
                                      'Cleanse',
                                      'CleanseDKIM',
                                      'CookHeaders',
                                      'ToDigest',
                                      'ToArchive',
                                      'ToUsenet',
                                      'AfterDelivery',
                                      'Acknowledge',
                                      'WrapMessage',
                                      'ToOutgoing'],
                      'received_time': 1466059404.619036,
                      'rejection_notice': 'Please trim the recipient list; it is too long.',
                      'tolist': 1,
                      'version': 3})),
    '37': ( 1,
              ( 1466144568.3981531,
                  '<email address hidden>',
                  'RE: PENAWARAN JASA CUSTOM CLEARANCE DAN IMPORT DOOR TO DOOR BORONGAN',
                  'Too many recipients to the message',
                  'heldmsg-marketing_ccsindo.com-37.pck',
                  { '_parsemsg': True,
                      'from_is_list': 0,
                      'lang': 'en',
                      'listname': 'marketing_ccsindo.com',
                      'pipeline': [ 'MimeDel',
                                      'Scrubber',
                                      'Emergency',
                                      'Tagger',
                                      'CalcRecips',
                                      'AvoidDuplicates',
                                      'Cleanse',
                                      'CleanseDKIM',
                                      'CookHeaders',
                                      'ToDigest',
                                      'ToArchive',
                                      'ToUsenet',
                                      'AfterDelivery',
                                      'Acknowledge',
                                      'WrapMessage',
                                      'ToOutgoing'],
                      'received_time': 1466144567.4788461,
                      'rejection_notice': 'Please trim the recipient list; it is too long.',
                      'tolist': 1,
                      'version': 3})),
    '38': ( 1,
              ( 1466482742.6789839,
                  '<email address hidden>',
                  '***SPAM*** RE: PENAWARAN JASA CUSTOM CLEARANCE DAN IMPORT DOOR TO DOOR BORONGAN',
                  'Too many recipients to the message',
                  'heldmsg-marketing_ccsindo.com-38.pck',
                ...

Revision history for this message
Mark Sapiro (msapiro) wrote :

The entries that begin with things like

    '37': ( 1,

and

    '38': ( 1,

and presumably all the others are the problem. In these two, the keys are strings '37' and '38'. They are supposed to be integers like 37 and 38. It is not at all clear to me how this can happen.

Presumably, the messages are held properly and there are message files in /usr/local/cpanel/3rdparty/mailman/data/ with names like heldmsg-marketing_ccsindo.com-37.pck and heldmsg-marketing_ccsindo.com-38.pck which would indicate that the 'id' was an integer at that point.

Look at http://bazaar.launchpad.net/~mailman-coders/mailman/2.1/view/head:/Mailman/ListAdmin.py at lines 180 - 228 and compare that to /usr/local/cpanel/3rdparty/mailman/Mailman/ListAdmin.py. I would expect them to be the same, and I don't see how id can be an integer at line 196 and somehow become a string at line 227.

If there are differences in your cPanel ListAdmin.py in this area, it would seem that would be a bug in every cPanel installation, and that doesn't appear to be the case.

If this is just some one time anomaly, you could just remove the /usr/local/cpanel/3rdparty/mailman/lists/marketing_ccsindo.com/request.pck file. That will result in the held messages being orphaned, but you can use a script such as the one at https://www.msapiro.net/scripts/hold_again to reprocess the heldmsg-marketing_ccsindo.com-*.pck files.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.