Skip to Content.
Sympa Menu

en - Re: [sympa-users] mhonarc error after last debian update

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Marco Gaiarin <address@concealed>
  • To: David Verdin <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-users] mhonarc error after last debian update
  • Date: Wed, 30 Oct 2013 23:37:03 +0100

Mandi! David Verdin
In chel di` si favelave...

Sorry for the late answer, i was busy; anyway in the meantime i've upgraded
all my debian sympa setup, and *all* of them expose the same behaviour.

> So we need to guess. Here are a few things to check:

OK.


> * Sympa calls the mhonarc command line on a file located in the
> outgoing spool. Does the outgoing spool has the good rights? You can
> stop the archived.pl daemon and see what you find in the spools,

I've send a test message in a list, and log say:

Oct 30 21:05:04 eraldo sympa[18535]: main::DoFile() Processing
/var/spool/sympa/msg/listname.1383163503.18577 ; sender: Marco Gaiarin
<gaio@listdomain>#012 ; message-id: <address@concealed>#012
Oct 30 21:05:04 eraldo sympa[18535]: main::DoMessage() Processing message
for listname with priority 5, <address@concealed>#012
Oct 30 21:05:04 eraldo sympa[18535]: main::DoMessage() Message for listname
from gaio@listdomain accepted (0 seconds, 1 sessions, 12 subscribers),
message-id=<address@concealed>#012, size=1515

Spool permission is OK:

eraldo:~# ls -la /var/spool/sympa/msg/
totale 4
drwxrwx--x 3 sympa sympa 16 30 ott 21.05 .
drwxrwx--x 24 sympa sympa 4096 11 lug 12.26 ..
drwxrwx--x 2 sympa sympa 6 19 ago 12.50 bad

but file does not exist:

eraldo:~# ls -la /var/spool/sympa/msg/listname.1383163503.18577
ls: impossibile accedere a /var/spool/sympa/msg/listname.1383163503.18577:
No such file or directory

> * Sympa has the rights to execute mhonarc command line, otherwise you
> wouls have an explicit error. however, does mhonarc executes with
> the right user id? It should be Sympa user id. You can check it with
> the following command:
> o while test 1=1; do ps -ef | grep -i mhon; sleep 1; done
> o As soon as a message is archived, you will see the MhonArc
> command. The process should belong to sympa.

I've restarted sympa (and so, archived.pl) and message (that was the first)
got archived with no trouble at all:

Oct 30 23:23:22 eraldo archived[25557]: archived 6.0.1 Started
Oct 30 23:23:28 eraldo archived[25557]: Archiving
address@concealed for list
address@concealed

Boh. Anyway, i've send a second message, catching mhonarc call:

sympa 27986 27968 54 23:35 pts/0 00:00:00 /usr/bin/perl
/usr/bin/mhonarc -add -modifybodyaddresses -addressmodifycode $4 -rcfile
/usr/share/sympa/default/mhonarc-ressources.tt2 -outdir
/address@concealed/2013-10 -definevars
listname='listname' hostname=liste.listdomain yyyy=2013 mois=10
yyyymm=2013-10 wdir=/var/lib/sympa/wwsarchive
base=http://liste.listdomain/wws/arc tag=4bc40547a3 -umask 027

as you can see, sympa user.


> * By any chance, could it be possible that you upgraded at the
> beginning of the month, i.e. when Sympa needs to create a new
> directory in the archives? It might create it correctly but, for
> some reason, return an error code. This could explain why the error
> shows up only once per list.

No. The first listserver i upgrade was a rather busy server, surely this is
not the case.


> Last question: what version of MHonArc do you use? You can check it with
> /usr/bin/mhonarc -v

Sure:

eraldo:~# mhonarc -v
MHonArc v2.6.16 (Perl 5.010001 linux)
Copyright (C) 1995-2005 Earl Hood, address@concealed
MHonArc comes with ABSOLUTELY NO WARRANTY and MHonArc may be copied only
under the terms of the GNU General Public License, which may be found in
the MHonArc distribution.

--
ma l'impresa eccezionale, dammi retta
e` essere normale (L. Dalla)




Archive powered by MHonArc 2.6.19+.

Top of Page