[Mailman-Users] Upgrade to 2.0rc2 destroyed some archives

Greg Connor gconnor at nekodojo.org
Sun Nov 12 06:55:49 CET 2000


After upgrading, some of my archives are now "corrupt" according to
qrunner, and looks like additional messages are not being archived. 
This is the message from the error log that suggests archiving is not
working.

Nov 11 17:18:34 2000 qrunner(5155): Traceback (innermost last):
Nov 11 17:18:34 2000 qrunner(5155):   File
"/home/mailman/Mailman/Archiver/Archiver.py", line 221, i
n ArchiveMail
Nov 11 17:18:34 2000 qrunner(5155):     h.processUnixMailbox(f,
HyperArch.Article)
Nov 11 17:18:34 2000 qrunner(5155):   File
"/home/mailman/Mailman/Archiver/pipermail.py", line 521, 
in processUnixMailbox
Nov 11 17:18:34 2000 qrunner(5155):     a = articleClass(m,
self.sequence)
Nov 11 17:18:34 2000 qrunner(5155):   File
"/home/mailman/Mailman/Archiver/HyperArch.py", line 224, 
in __init__
Nov 11 17:18:34 2000 qrunner(5155):     self.cenc = string.lower(cenc)
Nov 11 17:18:34 2000 qrunner(5155): TypeError: read-only character
buffer, None
Nov 11 17:18:34 2000 (5155) CORRUPT ARCHIVE FOR LIST: poly-listowners


I have tried to rebuild the archives, but I get a similar error (see
below).  

Unfortunately, due to stupidity on my part, I deleted all the .mbox
files and directories, thinking "What are these doing here, I thought I
turned off 'mbox' archiving a long time ago".  I didn't realize at the
time, but "update" probably re-created these (since they aren't in my
backup).

Anyway, I tried to regenerate the mbox files by doing
  gunzip *.txt.gz
  cat *.txt > ../listname.mbox/listname.mbox
and then moving the directory and re-running bin/arch.  When I do that,
it thinks about it for a while, and then I get this error.  bin/arch
creates a directory but there are no files inside.

Traceback (innermost last):
  File "/home/mailman/bin/arch", line 129, in ?
    main()
  File "/home/mailman/bin/arch", line 118, in main
    archiver.processUnixMailbox(fp, Article)
  File "/home/mailman/Mailman/Archiver/pipermail.py", line 521, in
processUnixMailbox
    a = articleClass(m, self.sequence)
  File "/home/mailman/Mailman/Archiver/HyperArch.py", line 224, in
__init__
    self.cenc = string.lower(cenc)
TypeError: read-only character buffer, None


I am still working on trying to get my archives back, but I wanted to
put the word out in case this is a new issue.  I searched the entire
archive and I couldn't find any reference to self.cenc or
string.lower(cenc).  I have also tried padding each .txt file with one
newline (even tried two) and the results are the same.

If you happen to know how I can make the archives usable again, or how
to rebuild the archives, help would be appreciated.  My only thing left
to try is to restore mailman from backup and try the upgrade again, but
the rest of the upgrade was quite painful...

Thanks
gregc

--
Greg Connor <gconnor at nekodojo.org>




More information about the Mailman-Users mailing list