[Mailman-Users] Mailman Archives page not updating
Mark Sapiro
mark at msapiro.net
Mon Mar 15 02:48:27 CET 2010
LexIcon wrote:
>
>Ok, so I ran...
>
>chown -hR mailman private/
>
>... and changed the owner of everything in there to the mailman user. I
>then ran...
What you really want is
chgrp -R mailman private/
>./unshunt
>
>... which took a long time to process, and then I ran...
>
>./arch listname
>
>... which did not seem to have resolved the issue, so I ran...
>
>[root at domain bin]# ./arch --wipe listname
>/var/lib/mailman/archives/private/listname.mbox/listname.mbox
>
>... which resulted in ...
>
>Traceback (most recent call last):
> File "./arch", line 200, in ?
> main()
> File "./arch", line 177, in main
> shutil.rmtree(mlist.archive_dir())
> File "/usr/lib/python2.4/shutil.py", line 155, in rmtree
> onerror(os.listdir, path, sys.exc_info())
> File "/usr/lib/python2.4/shutil.py", line 153, in rmtree
> names = os.listdir(path)
>OSError: [Errno 2] No such file or directory:
>'/var/lib/mailman/archives/private/listname'
So there are now no 'listname' archives at all as they were probably
removed by a prior "bin/arch --wipe".
>... and I checked the error logs again and found...
>
>Feb 20 21:37:10 2010 (9826) Archive file access failure:
> /var/lib/mailman/archives/private/listname.mbox/listname.mbox
>[Errno 13] Permission denied:
>'/var/lib/mailman/archives/private/listname.mbox/listname.mbox'
>Feb 20 21:37:10 2010 (9826) Uncaught runner exception: [Errno 13]
>Permission denied:
>'/var/lib/mailman/archives/private/listname.mbox/listname.mbox'
>Feb 20 21:37:10 2010 (9826) Traceback (most recent call last):
> File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 112, in _oneloop
> self._onefile(msg, msgdata)
> File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 170, in _onefile
> keepqueued = self._dispose(mlist, msg, msgdata)
> File "/usr/lib/mailman/Mailman/Queue/ArchRunner.py", line 73, in _dispose
> mlist.ArchiveMail(msg)
> File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 200, in
>ArchiveMail
> self.__archive_to_mbox(msg)
> File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 169, in
>__archive_to_mbox
> mbox = self.__archive_file(afn)
> File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 157, in
>__archive_file
> return Mailbox.Mailbox(open(afn, 'a+'))
>IOError: [Errno 13] Permission denied:
>'/var/lib/mailman/archives/private/listname.mbox/listname.mbox'
>
>Feb 20 21:37:10 2010 (9826) SHUNTING:
>1266730628.7653761+286a6674cf078ace752aad7c7525dadae0f85338
So fix the group and permissions on
/var/lib/mailman/archives/private/listname.mbox and
/var/lib/mailman/archives/private/listname.mbox/listname.mbox
chgrp -R mailman /var/lib/mailman/archives/private/listname.mbox
chmod 2775 /var/lib/mailman/archives/private/listname.mbox
chmod 0664 /var/lib/mailman/archives/private/listname.mbox/listname.mbox
Then run unshunt again and this time check for errors and reshunted
messages before continuing.
Then run "bin/arch --wipe listname"
It would be a good idea to stop mailman before doing all this, and
then start it when done.
--
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