[Mailman-Users] Broken pickle
Grigory Batalov
bga at altlinux.org
Wed Dec 5 07:46:00 CET 2007
On Tue, 4 Dec 2007 17:06:36 -0800, Mark Sapiro wrote:
> > Also, as you can see, I have no IncomingRunner:1:6 and it fails to start
> > every time I try to:
> >
> >$ sudo -u mailman /usr/bin/python /usr/share/mailman/bin/qrunner --runner=IncomingRunner:1:6
>
> Note that the documentation states that the number of slices must be a
> power of two.
Which documentation?
Mailman/Defaults.py.in:677
# BAW: Although not enforced, the # of slices must be a power of 2
$ /usr/share/mailman/bin/qrunner --help
...
-r runner[:slice:range]
--runner=runner[:slice:range]
Run the named qrunner, which must be one of the strings returned by
the -l option. Optional slice:range if given, is used to assign
multiple qrunner processes to a queue. range is the total number of
qrunners for this queue while slice is the number of this qrunner from
[0..range).
If using the slice:range form, you better make sure that each qrunner
for the queue is given the same range value. If slice:runner is not
given, then 1:1 is used.
Multiple -r options may be given, in which case each qrunner will run
once in round-robin fashion. The special runner `All' is shorthand
for a qrunner for each listed by the -l option.
...
If power of 2 is important, it should be noted in qrunner's help too.
(Also "then 1:1 is used" is wrong, usually 0:1 is used.)
> I don't think it really matters, and I'm sure it isn't
> anything to do with the corrupt pickle, but that's what it says.
...
> > Using "strace" I have found which file it tries to load:
> >
> >$ python
> >>>> file=open("/var/spool/mailman/in/1196682806.813381+4ffeef3dcbdc578279784fb47aa271ad8f6462f7.bak", "r")
>
> Actually, I hope it was actually trying to open
> 1196682806.813381+4ffeef3dcbdc578279784fb47aa271ad8f6462f7.pck
> and had then renamed it to
> 1196682806.813381+4ffeef3dcbdc578279784fb47aa271ad8f6462f7.bak
>
> dequeue should never be trying to open a .bak file.
Sure, I just took last one which was mentioned in strace log.
--
Grigory Batalov,
ALT Linux Team
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.python.org/pipermail/mailman-users/attachments/20071205/8d505577/attachment.pgp
More information about the Mailman-Users
mailing list