On October 9, 2003 at 08:24, Dave Sill wrote:

> I'm migrating from 2.5.13 under Tru64-Unix to 2.6.8 under Solaris 8. I
> run mhonarc from a script via procmail. The invocation looks like:
> 
>   echo `date`: $1 >>archive.log
>   mhonarc -spammode -add -quiet -outdir /home/http/ornl/lists/mailing-lists/$
> {li
> st}/${year}/${month} >>archive.log 2>&1
> 
> The problem is that on the new system, the log shows errors, e.g.:
> 
> Tue Oct 7 13:29:13 EDT 2003: qmail
> ERROR: Unable to create "/home/http/ornl/lists/mailing-lists/qmail/2003/10/db
> 0mR
> VoYLx8t": Permission denied
> 
> An empty file is left in the archive directory:
> 
> [EMAIL PROTECTED] pwd
> /home/http/ornl/lists/mailing-lists/qmail/2003/10
> [EMAIL PROTECTED] ls -l
> total 32
> -rwxr-xr-x   1 de5      w_mlists       0 Oct  7 13:29 db0mRVoYLx8t
> -rwxr-xr-x   1 de5      w_mlists       0 Oct  7 13:28 db5dSTbD8Sn8
> -rwxr-xr-x   1 de5      w_mlists     473 Oct  7 13:29 maillist.html
> -rwxr-xr-x   1 de5      w_mlists    1640 Oct  7 13:28 msg00000.html
> -rwxr-xr-x   1 de5      w_mlists    1640 Oct  7 13:29 msg00001.html
> -rwxr-xr-x   1 de5      w_mlists     462 Oct  7 13:29 threads.html
> [EMAIL PROTECTED] ls -ld .
> drwxr-sr-x   2 de5      w_mlists    4096 Oct  7 13:29 .
> [EMAIL PROTECTED] 
> 
> And, although the messages are all archived, the indexes only show the
> most recent message:

What version of Perl are you using?

The source of the error message is in the file_temp() routing in
mhfile.pl.  The reason for the error is curious since it appears
that the temp file was created, but looking at the source code, it
implies that an attempt to create the temp file exceeded TEMP_MAX_TRIES
(which is set to 10).

Since the error message indicates that MHonArc's own temp file
generation is being done, you are probably running an older version
of Perl since the File::Temp module is not being used.  My guess
is that there is something wrong with your version of perl or you
have some ACL settings that may cause permission problems.

The error also indicates that the .mhonarc.db file is not getting
written.

--ewh

Reply via email to