[Pkg-mailman-hackers] mailman: fix for 412142 gives
unicodify_archives traceback
Paul Wise
pabs at debian.org
Wed Apr 4 01:58:06 UTC 2007
Hi all,
The other day due to hardware issues, we migrated lists.indymedia.org
data from mailman 2.1.7 to 2.1.9. I ran the postinst manually since we
installed etch instead of sarge. Unfortunately, the unicodify_archives
script gave a traceback:
# /var/lib/mailman/bin/withlist --all -q -r unicodify_archives
Traceback (most recent call last):
File "/var/lib/mailman/bin/withlist", line 297, in ?
main()
File "/var/lib/mailman/bin/withlist", line 272, in main
r = [do_list(listname, args, func) for listname in Utils.list_names()]
File "/var/lib/mailman/bin/withlist", line 201, in do_list
return func(m, *args)
File "/usr/lib/mailman/bin/unicodify_archives.py", line 60, in unicodify_archives
h.database.mapKeys(unicodify_fst, archive, hdr)
File "/usr/lib/mailman/Mailman/Archiver/HyperDatabase.py", line 341, in mapKeys
self.__openIndices(archive)
File "/usr/lib/mailman/Mailman/Archiver/HyperDatabase.py", line 251, in __openIndices
t = DumbBTree(os.path.join(arcdir, archive + '-' + i))
File "/usr/lib/mailman/Mailman/Archiver/HyperDatabase.py", line 65, in __init__
self.load()
File "/usr/lib/mailman/Mailman/Archiver/HyperDatabase.py", line 179, in load
self.__sort(dirty=1)
File "/usr/lib/mailman/Mailman/Archiver/HyperDatabase.py", line 73, in __sort
self.sorted.sort()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 9: ordinal not in range(128)
After that I modified the script to print the list, archive period and
header when tracebacks are encountered in unicodify_archives on line 60:
Error: list imc-hungary archive 2006-February hdr subject
Error: list imc-hungary archive 2006-February hdr author
Error: list imc-france-lille archive 2007-April hdr subject
Error: list imc-france-lille archive 2007-April hdr author
Error: list cmi-brasil-contato archive 2006-February hdr subject
Error: list cmi-brasil-contato archive 2006-February hdr author
Error: list bcn-trad archive 2005-December hdr subject
Error: list bcn-trad archive 2005-December hdr author
I can provide the archive/database for the three public lists -
cmi-brasil-contato has private archives. Please let me know which files
are needed. We will be able to use --wipe and therefore ignore this, but
it might be nice to fix this case for etch, if there is time left.
--
bye,
pabs
http://wiki.debian.org/PaulWise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/pkg-mailman-hackers/attachments/20070404/71a23004/attachment.pgp
More information about the Pkg-mailman-hackers
mailing list