[Mailman-Users] Re: Lists still point to old install dir after upgrade

Tarjei Huse tarjei at nu.no
Mon Nov 18 14:09:25 CET 2002


Ups. Fixed it with this script: (taken from the faq. I included it for 
the archives :)
-----------------------
#!/bin/sh

newroot='/var/mailman'

for list in `ls $newroot/lists`
do
python -i $newroot/bin/withlist -l $list <<EOF
m.private_archive_file_dir
m.private_archive_file_dir='$newroot/archives/private/$list.mbox'
m.public_archive_file_dir
m.public_archive_file_dir='$newroot/archives/public'
m.archive_directory
m.archive_directory='$newroot/archives/private/$list'
m.Save()
EOF
done
--------------------------
Tarjei Huse wrote:

> Hi,
>
> I just upgraded my server to rh 8.0. In the process I also upgraded
> mailman by copying over some dirs from /home/mailman to /var/mailman.
> I'm sorry, but I cannot remember which directories.However, I got
> mailman working :)
>
> Now, some time later, I'm getting big trouble.
> I got many messages in the queue that just stays there. I try running
> qrunner but that doesn't help. Also, the webinterface hangs when I try
> to make changes etc.
>
> After som checking I find this in the log:
>       /home/mailman/archives/private/nnv-samf.mbox/nnv-samf.mbox [Errno
> 2] No such file or directory:
> '/home/mailman/archives/private/nnv-samf.mbox/nnv-samf.mbox'
> Nov 18 09:14:01 2002 (31263) Delivery exception: [Errno 2] No such file
> or directory: '/home/mailman/archives/private/nnv-samf.mbox/nnv-samf.mbox'
> Nov 18 09:14:01 2002 (31263) Traceback (most recent call last):
>   File "/var/mailman/Mailman/Handlers/HandlerAPI.py", line 82, in
> do_pipeline
>     func(mlist, msg, msgdata)
>   File "/var/mailman/Mailman/Handlers/ToArchive.py", line 49, in process
>     mlist.ArchiveMail(msg, msgdata)
>   File "/var/mailman/Mailman/Archiver/Archiver.py", line 189, in
> ArchiveMail
>     self.__archive_to_mbox(msg)
>   File "/var/mailman/Mailman/Archiver/Archiver.py", line 159, in
> __archive_to_mbox
>     mbox = self.__archive_file(afn)
>   File "/var/mailman/Mailman/Archiver/Archiver.py", line 149, in
> __archive_file
>     return Mailbox.Mailbox(open_ex(afn, "a+"))
>   File "/var/mailman/Mailman/Utils.py", line 601, in open_ex
>     fd = os.open(filename, flags, perms)
> IOError: [Errno 2] No such file or directory:
> '/home/mailman/archives/private/nnv-samf.mbox/nnv-samf.mbox'
>
> So, how do I locate where this value (archivepath) is set up, and change
> it?
>
> Please CC me offlist.
>
> Yours,
>
> Tarjei
>
>
>
>
> ------------------------------------------------------
> Mailman-Users mailing list
> Mailman-Users at 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/
>
> This message was sent to: python-mailman-users at m.gmane.org
> Unsubscribe or change your options at
> http://mail.python.org/mailman/options/mailman-users/python-mailman-users%40m.gmane.org 
>
>
>






More information about the Mailman-Users mailing list