[Mailman-Users] MM and mhonarc problems...

Jon Carnes jonc at nc.rr.com
Mon Nov 11 17:15:42 CET 2002


I haven't looked at the Source code for it, but it appears to be telling
you that Mailman is running the external Archiver (which you've setup as
Mhonarc).  The call to run the external Archiver returns a non-zero
code, meaning that there was an error in running the external archive.

Look at the command you have setup for the external archive. Su as
"mailman" and run that exact command.  See what output you get.  

Does the successful completion of the command depend on any environment
variables being set?  If so, you may wish to run the command via a
script/subshell which sets the environment properly before invoking
Mhonarch.

Hope this helps - Jon Carnes
======
On Mon, 2002-11-11 at 09:39, João Sá Marta wrote:
> 
> 
> -----Original Message-----
> From: mailman-users-bounces+samarta=ci.uc.pt at python.org
> [mailto:mailman-users-bounces+samarta=ci.uc.pt at python.org] On Behalf Of
> Bryce Tate
> Sent: 08 November 2002 19:28
> To: mailman-users at python.org
> Subject: [Mailman-Users] MM and mhonarc problems...
> 
> 
> I am testing mailman for use at my university, and we want to be able to
> support different MIME types in the archives.  I've installed Mhonarc
> and I followed the directions of a very helpful list member from an
> earlier post to the group.  When I manually run:
> 
> mhonarc -mbox
> $prefix/archives/private/yourmaillist.mbox/yourmaillist.mbox
> -outdir /var/mhonarc/archives/yourmaillist -rcfile
> /var/mhonarc/archives/yourmaillist/main.mrc
> 
> All of the messages (if I have any) move over just fine, but new
> messages are archived automatically...I have this in the
> /var/log/mailman/error
> file:
> 
> Nov 08 14:19:02 2002 qrunner(1884): Traceback (most recent call last):
> Nov 08 14:19:02 2002 qrunner(1884):   File
> "/var/mailman/Mailman/Archiver/Archiver.py", line 213, in ArchiveMail
> Nov 08 14:19:02 2002 qrunner(1884):    
> self.ExternalArchive(mm_cfg.PUBLIC_EXTERNAL_ARCHIVER, txt)
> Nov 08 14:19:02 2002 qrunner(1884):   File
> "/var/mailman/Mailman/Archiver/Archiver.py", line 174, in
> ExternalArchive
> Nov 08 14:19:02 2002 qrunner(1884):     syslog('error', 'external
> archiver
> non-zero exit status: %d\n' %
> Nov 08 14:19:02 2002 qrunner(1884): TypeError: unsupported operand
> type(s) for >>: 'str' and 'int' Nov 08 14:19:02 2002 (1884) CORRUPT
> ARCHIVE FOR LIST: testlist
> 
> I even created an empty test list (as seen above) and it didn't have any
> messages in it.  When I sent my first message to the list, the above is
> also what the /var/log/mailman/error file reported.
> 
> Does anyone know what could be wrong?  I'm hoping that i'm not the only
> one on this list who has had this problem before.  Below is my mm_cfg.py
> file.  I also have appropriate aliases set in httpd.conf
> 
> And other than this Mhonarc issue (and pipermails lack of MIME support)
> I've been very pleased with Mailman (and related programs), and my
> recommendation will be that we use it.
> 
> Thanks for any feedback!
> 
> Bryce
> 
> #######################################################
> #    Here's where we get the distributed defaults.    #
> 
> from Defaults import *
> import pwd, grp
> 
> ##############################################################
> #    Here's where we override shipped defaults with settings #
> #    suitable for the RPM package.                           #
> MAILMAN_UID = pwd.getpwnam('mailman')[2]
> MAILMAN_GID = grp.getgrnam('mailman')[2]
> LOG_DIR     = '/var/log/mailman'
> QUEUE_DIR   = '/var/spool/mailman/qfiles'
> 
> ##############################################################
> # Put YOUR site-specific configuration below, in mm_cfg.py . #
> # See Defaults.py for explanations of the values.	     #
> 
> DEFAULT_HOST_NAME = '<MYHOSTNAME>'
> DEFAULT_URL       = '<MYDEFAULTURL>'
> MAILMAN_OWNER     = 'mailman-owner@%s' % DEFAULT_HOST_NAME
> 
> # Note - if you're looking for something that is imported from mm_cfg,
> but you # didn't find it above, it's probably in Defaults.py.
> 
> PUBLIC_ARCHIVE_URL = '/mhonarchive'
> PRIVATE_ARCHIVE_URL = '/mhonarchive'
> PUBLIC_EXTERNAL_ARCHIVER = '/usr/bin/mhonarc -add -outdir
> /var/mhonarc/archives/%(listname)s'
> PRIVATE_EXTERNAL_ARCHIVER = '/usr/bin/mhonarc -add -outdir
> /var/mhonarc/archives/%(listname)s'
> #PRIVATE_ARCHIVE_FILE_DIR = os.path.join(VAR_PREFIX,
> '/var/mhonarc/archives/', 'private')
> 
> 
> 
> Hi,
> 
>  Did you added in your httpd.conf the alias for /mhonarchive ?
> 
> ---snip 
> Alias /mhonarchive/ "/var/mhonarc/archives/"
> <Directory "/var/mhonarc/archives">
>     AllowOverride ALL   ---I am not sure about this option
> </Directory>
> 
> 
> Greetings,
> 
> 
> ------------------------------------------------------
> 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: jonc at nc.rr.com
> Unsubscribe or change your options at
> http://mail.python.org/mailman/options/mailman-users/jonc%40nc.rr.com





More information about the Mailman-Users mailing list