get_content_type() takes exactly 1 argument (2 given)

Hi
I keep seeing this error in my mailman error logs. I've tried googling it for reasons but to no avail.
Anyone seen it before/have a reason.
Feb 21 17:03:21 2008 (16810) SHUNTING: 1176744092.7541261+83406355fa8fca831709ca6993e45b1b8763a180 Feb 21 17:03:25 2008 (16810) Uncaught runner exception: get_content_type() takes exactly 1 argument (2 given) Feb 21 17:03:25 2008 (16810) Traceback (most recent call last): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 111, in _oneloop self._onefile(msg, msgdata) File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 167, in _onefile keepqueued = self._dispose(mlist, msg, msgdata) File "/usr/lib/mailman/Mailman/Queue/IncomingRunner.py", line 130, in _dispose more = self._dopipeline(mlist, msg, msgdata, pipeline) File "/usr/lib/mailman/Mailman/Queue/IncomingRunner.py", line 153, in _dopipeline sys.modules[modname].process(mlist, msg, msgdata) File "/usr/lib/mailman/Mailman/Handlers/ToDigest.py", line 91, in process send_digests(mlist, mboxfp) File "/usr/lib/mailman/Mailman/Handlers/ToDigest.py", line 132, in send_digests send_i18n_digests(mlist, mboxfp) File "/usr/lib/mailman/Mailman/Handlers/ToDigest.py", line 306, in send_i18n_digests msg = scrubber(mlist, msg) File "/var/lib/mailman/Mailman/Handlers/Scrubber.py", line 177, in process if ctype == 'text/plain': TypeError: get_content_type() takes exactly 1 argument (2 given)
Feb 21 17:03:25 2008 (16810) SHUNTING: 1176751776.884974+121ed930b09df2e15bc8390b3ab74317a382467c
Thanks in advance
Darragh

Darragh Gammell wrote:
I keep seeing this error in my mailman error logs. I've tried googling it for reasons but to no avail.
Anyone seen it before/have a reason.
Feb 21 17:03:21 2008 (16810) SHUNTING: 1176744092.7541261+83406355fa8fca831709ca6993e45b1b8763a180 Feb 21 17:03:25 2008 (16810) Uncaught runner exception: get_content_type() takes exactly 1 argument (2 given) Feb 21 17:03:25 2008 (16810) Traceback (most recent call last): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 111, in _oneloop self._onefile(msg, msgdata) File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 167, in _onefile keepqueued = self._dispose(mlist, msg, msgdata) File "/usr/lib/mailman/Mailman/Queue/IncomingRunner.py", line 130, in _dispose more = self._dopipeline(mlist, msg, msgdata, pipeline) File "/usr/lib/mailman/Mailman/Queue/IncomingRunner.py", line 153, in _dopipeline sys.modules[modname].process(mlist, msg, msgdata) File "/usr/lib/mailman/Mailman/Handlers/ToDigest.py", line 91, in process send_digests(mlist, mboxfp) File "/usr/lib/mailman/Mailman/Handlers/ToDigest.py", line 132, in send_digests send_i18n_digests(mlist, mboxfp) File "/usr/lib/mailman/Mailman/Handlers/ToDigest.py", line 306, in send_i18n_digests msg = scrubber(mlist, msg) File "/var/lib/mailman/Mailman/Handlers/Scrubber.py", line 177, in process if ctype == 'text/plain': TypeError: get_content_type() takes exactly 1 argument (2 given)
Feb 21 17:03:25 2008 (16810) SHUNTING: 1176751776.884974+121ed930b09df2e15bc8390b3ab74317a382467c
I think this is a different manifestation of the same problem discussed in the thread at <http://mail.python.org/pipermail/mailman-users/2008-February/060328.html>.
The underlying cause may not be the same, but the problem is precipitated by a message in the list's lists/listname/digest.mbox file.
If you can't figure out which message it is (It's probably the first one in the digest.mbox that's missing from the HTML archive if the list is archived) You can move the digest.mbox aside, and at worst, you'll lose the digest, but the list will start again. Then you can run bin/unshunt to finish processing the shunted messages. Before running unshunt, it is always a good idea to check the shunt queue for old messages that you don't want to unshunt and delete those before unshunting.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Feb 21, 2008, at 10:48 AM, Mark Sapiro wrote:
The underlying cause may not be the same, but the problem is precipitated by a message in the list's lists/listname/digest.mbox file.
Just FTR, I really want to move MM3's digest mailbox to maildir format
instead of mbox. MM3 will require Python 2.5, so we can use it's
really great updated mailbox module to handle problems like this.
That's the plan anyway.
- -Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin)
iEYEARECAAYFAke9shwACgkQ2YZpQepbvXE64wCeJ5g98PTgMAJ+J5ipiU9DzOk+ ncsAnRJ5hG886mTjIpT6rcKyzRqfKRp5 =yZPy -----END PGP SIGNATURE-----

On 2/21/08, Barry Warsaw wrote:
Just FTR, I really want to move MM3's digest mailbox to maildir format instead of mbox. MM3 will require Python 2.5, so we can use it's really great updated mailbox module to handle problems like this. That's the plan anyway.
Can we at least use a hashed mail directory solution that doesn't have massive scalability problems?
-- Brad Knowles <brad@shub-internet.org> LinkedIn Profile: <http://tinyurl.com/y8kpxu>

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Feb 21, 2008, at 10:42 PM, Brad Knowles wrote:
On 2/21/08, Barry Warsaw wrote:
Just FTR, I really want to move MM3's digest mailbox to maildir
format instead of mbox. MM3 will require Python 2.5, so we can use it's really great updated mailbox module to handle problems like this. That's the plan anyway.Can we at least use a hashed mail directory solution that doesn't
have massive scalability problems?
For the digests it probably doesn't matter because they'll never get
that big. I'm still planning on making this change for the queue
directories (though I haven't yet).
- -Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin)
iEYEARECAAYFAke+0koACgkQ2YZpQepbvXGeRgCfanXNjb4NYNzVnK7i7FM2TZpM NIMAnjcwkm0ElMle7RmHP65n7sIcqetD =Ndfd -----END PGP SIGNATURE-----

On 2/22/08, Barry Warsaw wrote:
Can we at least use a hashed mail directory solution that doesn't have massive scalability problems?
For the digests it probably doesn't matter because they'll never get that big. I'm still planning on making this change for the queue directories (though I haven't yet).
I thought we were talking about replacing the 7th edition mbox file format for the raw or the similar mbox-like format for the cooked archives. Using some sort of a hashed directory structure would allow a lot more flexibility in terms of going in and deleting or editing messages in the archive, along with many other benefits it might bring.
However, if you imagine python-list with hundreds of thousands of messages in the archive, there's just no way that could possibly scale with Maildir, Maildir+, or any other solution that does not enforce a good hashed directory scheme that is kept invisible to the higher-level applications.
-- Brad Knowles <brad@shub-internet.org> LinkedIn Profile: <http://tinyurl.com/y8kpxu>

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I set the Reply-To to mailman-developers, since that's where we should
move this discussion to.
On Feb 22, 2008, at 11:14 PM, Brad Knowles wrote:
On 2/22/08, Barry Warsaw wrote:
Can we at least use a hashed mail directory solution that doesn't have massive scalability problems?
For the digests it probably doesn't matter because they'll never get that big. I'm still planning on making this change for the queue directories (though I haven't yet).
I thought we were talking about replacing the 7th edition mbox file
format for the raw or the similar mbox-like format for the cooked
archives. Using some sort of a hashed directory structure would
allow a lot more flexibility in terms of going in and deleting or
editing messages in the archive, along with many other benefits it
might bring.However, if you imagine python-list with hundreds of thousands of
messages in the archive, there's just no way that could possibly
scale with Maildir, Maildir+, or any other solution that does not
enforce a good hashed directory scheme that is kept invisible to the
higher-level applications.
The archives is an entirely different subsystem, and without a
volunteer stepping forward (for which I've been practically begging
for years ;), I don't see us being able to do any architectural
changes to Pipermail, at least until after MM3 comes out, if ever.
That's the unfortunate reality, but I do have thoughts about our
archiver situation, which I'll outline at some future date.
Actually, what I was talking about was the temporary digest mailbox.
When Mailman receives messages destined for the list's digest, it
holds these messages in a mailbox, currently mbox format, because
that's all that older Python's supported. Then when Mailman is
building the digest, it reads messages from this mbox, and chucks it
when its done. So they never get that big, or live for that long.
Still, mbox presents its own problems, such as what Mark outlined.
One corrupted message, or a broken mbox delimiter horks the whole
digest. I think we can do better with maildir and for the digest
application, we don't have to worry about scalability.
- -Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin)
iEYEARECAAYFAkfAILwACgkQ2YZpQepbvXGm2ACggEuyXvTC7iV/32tK7y435VyL lNsAn2UPZg9QNKZUkWwZHDzBmkPYbz02 =L7kZ -----END PGP SIGNATURE-----
participants (4)
-
Barry Warsaw
-
Brad Knowles
-
Darragh Gammell
-
Mark Sapiro