[Mailman-Users] delate all bounces....

Mark Sapiro msapiro at value.net
Thu Jun 8 22:39:16 CEST 2006


kalin mintchev wrote:
>
>i guess no attachments.... ok.... here it is:
>
>Jun 08 06:43:23 2006 qrunner(8159): Traceback (most recent call last):
>Jun 08 06:43:23 2006 qrunner(8159):   File "/var/mailman/bin/qrunner",
>line 270, in ?
>Jun 08 06:43:23 2006 qrunner(8159):      main()
>Jun 08 06:43:23 2006 qrunner(8159):   File "/var/mailman/bin/qrunner",
>line 230, in main
>Jun 08 06:43:23 2006 qrunner(8159):      qrunner.run()
>Jun 08 06:43:23 2006 qrunner(8159):   File
>"/var/mailman/Mailman/Queue/Runner.py", line 70, in run
>Jun 08 06:43:23 2006 qrunner(8159):      filecnt = self._oneloop()
>Jun 08 06:43:23 2006 qrunner(8159):   File
>"/var/mailman/Mailman/Queue/Runner.py", line 99, in _oneloop
>Jun 08 06:43:23 2006 qrunner(8159):      msg, msgdata =
>self._switchboard.dequeue(filebase)
>Jun 08 06:43:23 2006 qrunner(8159):   File
>"/var/mailman/Mailman/Queue/Switchboard.py", line 151, in dequeue
>Jun 08 06:43:23 2006 qrunner(8159):      msg =
>email.message_from_string(msg, Message.Message)
>Jun 08 06:43:23 2006 qrunner(8159):   File
>"/var/mailman/pythonlib/email/__init__.py", line 52, in
>message_from_string
>Jun 08 06:43:23 2006 qrunner(8159):      return Parser(_class,
>strict=strict).parsestr(s)
>Jun 08 06:43:23 2006 qrunner(8159):   File
>"/var/mailman/pythonlib/email/Parser.py", line 75, in parsestr
>Jun 08 06:43:23 2006 qrunner(8159):      return self.parse(StringIO(text),
>headersonly=headersonly)
>Jun 08 06:43:23 2006 qrunner(8159):   File
>"/var/mailman/pythonlib/email/Parser.py", line 64, in parse
>Jun 08 06:43:23 2006 qrunner(8159):      self._parsebody(root, fp,
>firstbodyline)
>Jun 08 06:43:23 2006 qrunner(8159):   File
>"/var/mailman/pythonlib/email/Parser.py", line 240, in _parsebody
>Jun 08 06:43:23 2006 qrunner(8159):      msgobj = self.parsestr(part)
>Jun 08 06:43:23 2006 qrunner(8159):   File
>"/var/mailman/pythonlib/email/Parser.py", line 75, in parsestr
>Jun 08 06:43:23 2006 qrunner(8159):      return self.parse(StringIO(text),
>headersonly=headersonly)
>Jun 08 06:43:23 2006 qrunner(8159):   File
>"/var/mailman/pythonlib/email/Parser.py", line 61, in parse
>Jun 08 06:43:23 2006 qrunner(8159):      root = self._class()
>Jun 08 06:43:23 2006 qrunner(8159):   File
>"/var/mailman/Mailman/Message.py", line 46, in __init__
>Jun 08 06:43:23 2006 qrunner(8159):      email.Message.Message.__init__(self)
>Jun 08 06:43:23 2006 qrunner(8159): AttributeError :  'tuple' object has
>no attribute 'Message'



>Jun 08 06:43:42 2006 qrunner(8170): Traceback (most recent call last):
>Jun 08 06:43:42 2006 qrunner(8170):   File "/var/mailman/bin/qrunner",
>line 270, in ?
>Jun 08 06:43:42 2006 qrunner(8170):      main()
>Jun 08 06:43:42 2006 qrunner(8170):   File "/var/mailman/bin/qrunner",
>line 217, in main
>Jun 08 06:43:42 2006 qrunner(8170):      qrunner = make_qrunner(*runners[0])
>Jun 08 06:43:42 2006 qrunner(8170):   File "/var/mailman/bin/qrunner",
>line 106, in make_qrunner
>Jun 08 06:43:42 2006 qrunner(8170):      __import__(modulename)
>Jun 08 06:43:42 2006 qrunner(8170):   File
>"/var/mailman/Mailman/Queue/BounceRunner.py", line 29, in ?
>Jun 08 06:43:42 2006 qrunner(8170):      from Mailman import Utils
>Jun 08 06:43:42 2006 qrunner(8170):   File
>"/var/mailman/Mailman/Utils.py", line 68, in ?
>Jun 08 06:43:42 2006 qrunner(8170):      cre =
>re.compile(r'%\(([_a-z]\w*?)\)s?', re.IGNORECASE)
>Jun 08 06:43:42 2006 qrunner(8170):   File
>"/usr/local/lib/python2.4/sre.py", line 180, in compile
>Jun 08 06:43:42 2006 qrunner(8170):      return _compile(pattern, flags)
>Jun 08 06:43:42 2006 qrunner(8170):   File
>"/usr/local/lib/python2.4/sre.py", line 222, in _compile
>Jun 08 06:43:42 2006 qrunner(8170):      if not
>sre_compile.isstring(pattern):
>Jun 08 06:43:42 2006 qrunner(8170):   File
>"/usr/local/lib/python2.4/sre_compile.py", line 471, in isstring
>Jun 08 06:43:42 2006 qrunner(8170):      if isinstance(obj, tp):
>Jun 08 06:43:42 2006 qrunner(8170): TypeError :  isinstance() arg 2 must
>be a class, type, or tuple of classes and types



>Jun 08 06:44:07 2006 qrunner(8173): Traceback (most recent call last):
>Jun 08 06:44:07 2006 qrunner(8173):   File "/var/mailman/bin/qrunner",
>line 270, in ?
>Jun 08 06:44:07 2006 qrunner(8173):      main()
>Jun 08 06:44:07 2006 qrunner(8173):   File "/var/mailman/bin/qrunner",
>line 217, in main
>Jun 08 06:44:07 2006 qrunner(8173):      qrunner = make_qrunner(*runners[0])
>Jun 08 06:44:07 2006 qrunner(8173):   File "/var/mailman/bin/qrunner",
>line 106, in make_qrunner
>Jun 08 06:44:07 2006 qrunner(8173):      __import__(modulename)
>Jun 08 06:44:07 2006 qrunner(8173):   File
>"/var/mailman/Mailman/Queue/BounceRunner.py", line 24, in ?
>Jun 08 06:44:07 2006 qrunner(8173):      from email.MIMEText import MIMEText
>Jun 08 06:44:07 2006 qrunner(8173):   File
>"/var/mailman/pythonlib/email/MIMEText.py", line 8, in ?
>Jun 08 06:44:07 2006 qrunner(8173):      from email.MIMENonMultipart
>import MIMENonMultipart
>Jun 08 06:44:07 2006 qrunner(8173):   File
>"/var/mailman/pythonlib/email/MIMENonMultipart.py", line 8, in ?
>Jun 08 06:44:07 2006 qrunner(8173):      from email import MIMEBase
>Jun 08 06:44:07 2006 qrunner(8173):   File
>"/var/mailman/pythonlib/email/MIMEBase.py", line 7, in ?
>Jun 08 06:44:07 2006 qrunner(8173):      from email import Message
>Jun 08 06:44:07 2006 qrunner(8173):   File
>"/var/mailman/pythonlib/email/Message.py", line 15, in ?
>Jun 08 06:44:07 2006 qrunner(8173):      from email import Utils
>Jun 08 06:44:07 2006 qrunner(8173):   File
>"/var/mailman/pythonlib/email/Utils.py", line 123, in ?
>Jun 08 06:44:07 2006 qrunner(8173):      ecre = re.compile(r'''
>Jun 08 06:44:07 2006 qrunner(8173):   File
>"/usr/local/lib/python2.4/sre.py", line 180, in compile
>Jun 08 06:44:07 2006 qrunner(8173):      return _compile(pattern, flags)
>Jun 08 06:44:07 2006 qrunner(8173):   File
>"/usr/local/lib/python2.4/sre.py", line 225, in _compile
>Jun 08 06:44:07 2006 qrunner(8173):      p = sre_compile.compile(pattern,
>flags)
>Jun 08 06:44:07 2006 qrunner(8173):   File
>"/usr/local/lib/python2.4/sre_compile.py", line 496, in compile
>Jun 08 06:44:07 2006 qrunner(8173):      p = sre_parse.parse(p, flags)
>Jun 08 06:44:07 2006 qrunner(8173):   File
>"/usr/local/lib/python2.4/sre_parse.py", line 665, in parse
>Jun 08 06:44:07 2006 qrunner(8173):      p = _parse_sub(source, pattern, 0)
>Jun 08 06:44:07 2006 qrunner(8173):   File
>"/usr/local/lib/python2.4/sre_parse.py", line 308, in _parse_sub
>Jun 08 06:44:07 2006 qrunner(8173):      itemsappend(_parse(source, state))
>Jun 08 06:44:07 2006 qrunner(8173):   File
>"/usr/local/lib/python2.4/sre_parse.py", line 398, in _parse
>Jun 08 06:44:07 2006 qrunner(8173):      if this in WHITESPACE:
>Jun 08 06:44:07 2006 qrunner(8173): TypeError :  iterable argument required



>Jun 08 06:44:12 2006 qrunner(8176): Traceback (most recent call last):
>Jun 08 06:44:12 2006 qrunner(8176):   File "/var/mailman/bin/qrunner",
>line 270, in ?
>Jun 08 06:44:12 2006 qrunner(8176):      main()
>Jun 08 06:44:12 2006 qrunner(8176):   File "/var/mailman/bin/qrunner",
>line 217, in main
>Jun 08 06:44:12 2006 qrunner(8176):      qrunner = make_qrunner(*runners[0])
>Jun 08 06:44:12 2006 qrunner(8176):   File "/var/mailman/bin/qrunner",
>line 106, in make_qrunner
>Jun 08 06:44:12 2006 qrunner(8176):      __import__(modulename)
>Jun 08 06:44:12 2006 qrunner(8176):   File
>"/var/mailman/Mailman/Queue/BounceRunner.py", line 29, in ?
>Jun 08 06:44:12 2006 qrunner(8176):      from Mailman import Utils
>Jun 08 06:44:12 2006 qrunner(8176):   File
>"/var/mailman/Mailman/Utils.py", line 68, in ?
>Jun 08 06:44:12 2006 qrunner(8176):      cre =
>re.compile(r'%\(([_a-z]\w*?)\)s?', re.IGNORECASE)
>Jun 08 06:44:12 2006 qrunner(8176):   File
>"/usr/local/lib/python2.4/sre.py", line 180, in compile
>Jun 08 06:44:12 2006 qrunner(8176):      return _compile(pattern, flags)
>Jun 08 06:44:12 2006 qrunner(8176):   File
>"/usr/local/lib/python2.4/sre.py", line 222, in _compile
>Jun 08 06:44:12 2006 qrunner(8176):      if not
>sre_compile.isstring(pattern):
>Jun 08 06:44:12 2006 qrunner(8176):   File
>"/usr/local/lib/python2.4/sre_compile.py", line 471, in isstring
>Jun 08 06:44:12 2006 qrunner(8176):      if isinstance(obj, tp):
>Jun 08 06:44:12 2006 qrunner(8176): TypeError :  isinstance() arg 2 must
>be a class, type, or tuple of classes and types



There are four separate tracebacks above (I added a little whitespace
between them) and three distinct errors, all of which seem to be a
result of python internal data being clobbered.

Previously, I guessed this may have something to do with the sheer
volume of bounces in the bounce queue at this point. I still think
this is likely.

Here is my suggestion.

Stop Mailman - bin/mailmanctl stop

Abandon all the old queued bounces and remove the bounces queue to
shrink it - rm -rf qfiles/bounces

Remove the orphaned  bounce-events-*.pck files - rm
data/bounce-events-*.pck

Start Mailman - bin/mailmanctl start

Then go to
http://svn.sourceforge.net/viewcvs.cgi/mailman/trunk/mailman/contrib/
and download the latest 'mmdsr' and 'README.mmdsr' (If you have
Mailman 2.1.8, the latest version is in your contrib/ directory).

Install mmdsr and set up a cron to run it, so you can catch these kinds
of situations in the future before they become disastrous.
.
-- 
Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan




More information about the Mailman-Users mailing list