[Mailman-Users] shunt - errors

Mark Sapiro mark at msapiro.net
Thu Dec 17 05:49:24 CET 2009


Con Wieland wrote:

>It seems I have a loop going on but I don't understand the error.  I  
>have multiple similar messages:


It's not a loop.


>Here's an excerpt from the /opt/nsp/mailman/logs/error
>
>Dec 16 17:22:02 2009 (817) SHUNTING: 1261012921.337497 
>+ef91a103dec2273f323d2758d
>097a1357db67d3a
>Dec 16 18:11:34 2009 (817) Uncaught runner exception: invalid load  
>key, '\245'.
>Dec 16 18:11:34 2009 (817) Traceback (most recent call last):
>   File "/opt/nsp/mailman/Mailman/Queue/Runner.py", line 112, in  
>_oneloop
>     self._onefile(msg, msgdata)
>   File "/opt/nsp/mailman/Mailman/Queue/Runner.py", line 170, in  
>_onefile
>     keepqueued = self._dispose(mlist, msg, msgdata)
>   File "/opt/nsp/mailman/Mailman/Queue/ArchRunner.py", line 73, in  
>_dispose
>     mlist.ArchiveMail(msg)
>   File "/opt/nsp/mailman/Mailman/Archiver/Archiver.py", line 215, in  
>ArchiveMail
>     h = HyperArch.HyperArchive(self)
>   File "/opt/nsp/mailman/Mailman/Archiver/HyperArch.py", line 641,  
>in __init__
>     self.__super_init(dir, reload=1, database=db)
>   File "/opt/nsp/mailman/Mailman/Archiver/pipermail.py", line 300,  
>in __init__
>     d = pickle.load(f)
>UnpicklingError: invalid load key, '\245'.
>
>any help would be appreciated


A list's archives/private/LISTNAME/pipermail.pck file is corrupt. Every
post to that list results in the above error and shunting of the
message to be archived.

You can do

bin/dumpdb qfiles/shunt/1261012921.337497+ef91a103dec2273f323d2758d.pck

on one or more of the shunted files and that should tell you what list.
The messages have probably been successfully added to
archives/private/LISTNAME.mbox/LISTNAME.mbox, and that affects what to
do.

After you determine the list, stop Mailman. Then copy aside the
archives/private/LISTNAME/ directory and it's contents just in case
somethin goes wrong at the next step. Then do

bin/arch --wipe listname

to rebuild the archive. Then you can start Mailman. Then you want to
examine the messages in the qfiles/shunt/*.pck files with bin/dumpdb
or bin/show_qfiles. They are probably in the rebuilt archive. For
those that are, remove the .pck file. If any aren't in the archive,
leave them in qfiles/shunt and run bin/unshunt after deleting the
others.

-- 
Mark Sapiro <mark at msapiro.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