Re: [Mailman-Users] archiving gets "shunted"
Lucio Chiappetti wrote: > >>> The other question is that if I send a message to a list, the member >>> receive it, but the message is NOT archived. >>> >>>I see that a file appears in qfiles/shunt/ > >> Have you run Mailman's bin/check_perms? > >yes I did. As a result of the first run, as instructed in manual, I did > > cd /var/lib/mailman/archives/ > chown wwwrun private > chmod o-x private > >and re-run it again. >(wwwrun is the suse user under which apache runs) While the above changes result in the most secure configuration, they are only necessary (as opposed to o+x) if you have a multi-user system and you are concerned about local users being able to access private archives. >I see now that the default configuration of the list is archive=yes >archive_private=public. > >I see there are directories archive/private/listname, >archive/private/listname.mbox and public/listname. The latter is a >softlink to private. Is this normal ? Yes, this is exactly as it should be. archives/private/listname.mbox contains a single file archives/private/listname.mbox/listname.mbox which is a unix mbox containing all archived posts to the list and which can be used as input to bin/arch to rebuild the pipermail archive which is in archives/private/listname/. The symlinks in archives/public/ exist only for lists with public archives and are used by the web server to serve public archive pages without authentication. These are maintained automatically by Mailman as the list archives are changed from public to private or vice versa. The actual archive is always in archives/private. >All of them are setgid directories owned by wwwrun.mailman except for >those of list mailman which are owned by root.mailman, but I guess such >list is special, and will have no traffic to be archived. The owner doesn't matter. Only the group. The 'mailman' list is not special in this case and can have archives. The ownership difference is because the mailman list was created with bin/newlist (by root) whereas the others were created by the web CGI. >As a result of posting the first message to the list, a file listname.mbox >is created in archive/private/listname.mbox (why private ?) and it contain >the messages. But the index.html is not updated. A message is shunted, >and the attached errors are generated. The HTML is not updated because the exception occurs after the listname.mbox file is (created and) written, but before the HTML archive is updated. The underlying problem is the same Mailman 2.1.11/Python2.6.5 incompatibility I mentioned in the 'bug adding user, and archiving gets "shunted"' thread. -- Mark Sapiro The highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
[Mailman-Users] archiving gets "shunted"
I separate this other error in a separate thread. The other question is that if I send a message to a list, the member receive it, but the message is NOT archived. I see that a file appears in qfiles/shunt/ Have you run Mailman's bin/check_perms? yes I did. As a result of the first run, as instructed in manual, I did cd /var/lib/mailman/archives/ chown wwwrun private chmod o-x private and re-run it again. (wwwrun is the suse user under which apache runs) I see now that the default configuration of the list is archive=yes archive_private=public. I see there are directories archive/private/listname, archive/private/listname.mbox and public/listname. The latter is a softlink to private. Is this normal ? All of them are setgid directories owned by wwwrun.mailman except for those of list mailman which are owned by root.mailman, but I guess such list is special, and will have no traffic to be archived. As a result of posting the first message to the list, a file listname.mbox is created in archive/private/listname.mbox (why private ?) and it contain the messages. But the index.html is not updated. A message is shunted, and the attached errors are generated. -- Lucio Chiappetti - INAF/IASF - via Bassini 15 - I-20133 Milano (Italy) For more info : http://www.iasf-milano.inaf.it/~lucio/personal.html Mar 31 18:34:57 2011 (23431) uncaught archiver exception at filepos: 0 Mar 31 18:34:57 2011 (23431) Uncaught runner exception: Message instance has no attribute 'get_type' Mar 31 18:34:57 2011 (23431) Traceback (most recent call last): File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 120, in _oneloop self._onefile(msg, msgdata) File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 191, 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 216, in ArchiveMail h.processUnixMailbox(f) File "/usr/lib/mailman/Mailman/Archiver/pipermail.py", line 564, in processUnixMailbox m = mbox.next() File "/usr/lib64/python2.6/mailbox.py", line 1955, in next return self.factory(_PartialFile(self.fp, start, stop)) File "/usr/lib/mailman/Mailman/Mailbox.py", line 89, in scrubber return mailbox.scrub(msg) File "/usr/lib/mailman/Mailman/Mailbox.py", line 109, in scrub return self._scrubber(self._mlist, msg) File "/usr/lib/mailman/Mailman/Handlers/Scrubber.py", line 192, in process ctype = part.get_type(part.get_default_type()) AttributeError: Message instance has no attribute 'get_type' Mar 31 18:34:57 2011 (23431) SHUNTING: 1301589295.8064201+16d79fd82afe19253addf5855da0a63569b6d873 -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org