[Mailman-Users] Strange Archives Issue

Mark Sapiro msapiro at value.net
Mon Dec 4 21:24:52 CET 2006


Christopher Wawak wrote:
>

>Here's some logs from the 'error' log:
>
>Dec 04 14:07:09 2006 (4446) Uncaught runner exception: [Errno 21] Is a
>directory: '/var/
>lib/mailman/archives/public/LISTNAME'
>Dec 04 14:07:09 2006 (4446) 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/IncomingRunner.py", line 133,
>in _dispose
>    mlist.Save()
>  File "/usr/lib/mailman/Mailman/MailList.py", line 565, in Save
>    self.CheckHTMLArchiveDir()
>  File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 236, in
>CheckHTMLArchiveDir
>    breaklink(pubdir)
>  File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 56, in
>breaklink
>    os.unlink(link)
>OSError: [Errno 21] Is a directory:
>'/var/lib/mailman/archives/public/LISTNAME'
>
>Dec 04 14:07:09 2006 (4446) SHUNTING:
>1165258558.144629+452aa00f48fbbba74e1259752d575731
>e2085546
>
>
>Here's an idea of directory structure:
>[root at HOSTNAME: /var/lib/mailman/archives]# ls -la
>total 24
>drwxrwsr-x   3 root    mailman 4096 Nov 13 15:47 ./
>drwxrwsr-x   6 root    mailman 4096 Nov  7 09:58 ../
>drwxrwsr-x  29 mailman mailman 4096 Dec  4 12:32 private/
>lrwxrwxrwx   1 root    mailman    7 Nov 13 15:47 public -> private/

The above is your problem.

archives/public should be a directory, not a symlink. The symlinks
should be for lists with public archives only and should be like

archives/public/listname -> archives/private/listname and maybe
archives/public/listname.mbox -> archives/private/listname.mbox if the
global .mbox is also public.

All you need to do is rm the archives/public symlink and create the
archives/public directory with group mailman and permissions
drwxrwsr-x.

Also, the archives/private directory should nt be world readable. Its
permissions should be drwxrws--x.

You don't need to create any symlinks in the archives/public directory.
Mailman will create these as required for lists with public archives
as the lists are accessed.

After fixing the above, you can run bin/unshunt to reprocess the
shunted messages.

-- 
Mark Sapiro <msapiro at value.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