Mark Sapiro wrote:
Then the recent posts are probably not in the
archives/private/LISTNAME.mbox/LISTNAME.mbox file, perhaps because of
some permissions error. If that is the reason, they are probably all
shunted and in the shunt queue. If so, you will find error messages
and tracebacks in Mailman's error log and running bin/unshunt will
probably archive the messages assuming the permissions or whatever
issue has been fixed.

Ah! I was relying on check_perms and did not look directly at the error logs.

Ok, so I ran...

chown -hR mailman private/

... and changed the owner of everything in there to the mailman user. I then ran...

./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...

[r...@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'

... 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 I'm still not getting anywhere.

- Lex
------------------------------------------------------
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

Reply via email to