----- Original Message ----- From: "Mark Sapiro" <[EMAIL PROTECTED]>
To: "John Fleming" <[EMAIL PROTECTED]>; <mailman-users@python.org>
Sent: Thursday, January 27, 2005 11:08 PM
Subject: Re: [Mailman-Users] mailmanlistinfo without slash
John Fleming wrote:
Well, it doesn't like bin/arch as above because the archive is empty:
Luke:/var/lib/mailman/bin# ./arch --wipe sked
<snip>
Cannot open mbox file /var/lib/mailman/archives/private/sked.mbox/sked.mbox:
[Errno 2] No such file or directory:
'/var/lib/mailman/archives/private/sked.mbox/sked.mbox'
Luke:/var/lib/mailman/bin#
I also tried just ./arch without the --wipe and got the same error.
*** I did create a brand new test list, and the link is CORRECT for that
list, so fix_url after adding the trailing slash did fix the problem. Now
to get the existing lists fixed - maybe. I intend for these lists to NOT
have archives, so it's academic for existing lists. I just would like fix
it so that the incorrect link doesn't appear if someone goes there out of
curiosity and then hits the listinfo link to get back. I guess I might have
to save the config and recreate the lists if I really want the link fixed
that badly. Thanks Mark and Tokio for your help - Future lists won't have
this problem! - John
Tokio's suggestion to move (or copy) lists/<listname>/config.pck aside and then remove and recreate the list and then move the config.pck back is a good one, but a simpler idea is if there is no archives/private/<listname>.mbox/<listname>.mbox file, just do
bin/arch --wipe sked /dev/null
or whatever your other list names might be.
I tested that this time and it works :-)
The above seemed to work. I restarted Mailman, and then when clicking the Archives link on the Listinfo page, I was taken to
Forbidden
You don't have permission to access /pipermail/sked/ on this server.
I thought maybe I just needed to rebuild the archive, so I did that, but same error. I looked at the permissions of /var/lib/mailman/archives/private/sked.mbox and it is the same as my other lists that don't give the FORBIDDEN error - group-list, owner www-data, 2775 (set GID). Which page exactly has incorrect permissions?
Here's the bin/arch run:
Luke:/var/lib/mailman/bin# ./arch --wipe sked /dev/null
Traceback (most recent call last):
File "./arch", line 187, in ?
main()
File "./arch", line 166, in main
shutil.rmtree(mlist.archive_dir())
File "/usr/lib/python2.3/shutil.py", line 142, in rmtree
raise exc[0], (exc[1][0], exc[1][1] + ' removing '+arg)
OSError: [Errno 2] No such file or directory removing /var/lib/mailman/archives/private/sked
Luke:/var/lib/mailman/bin#
-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.1 - Release Date: 1/27/2005
------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/