[prev in list] [next in list] [prev in thread] [next in thread] 

List:       amavis-user
Subject:    [AMaViS-user] logging of perl runtime errors when daemonized
From:       "Alexander 'Leo' Bergolth" <leo () strike ! wu-wien ! ac ! at>
Date:       2007-03-04 17:34:21
Message-ID: 45EB031D.6040500 () strike ! wu-wien ! ac ! at
[Download RAW message or body]

Hi!

I'm experiencing some random crashes (once or twice a day) of amavisd
worker processes.

However, since amavisd runs in daemonized-mode, I don't see any
error-message, I'm just seeing that postfix looses the connection to
amavisd. (See attachend syslog-messages.)

How about redirecting runtime-errors to the log when running daemonized?

The attached patch could do the job. (Just a quick hack, maybe the
location isn't perfect.)

Cheers,
--leo
-- 
-----------------------------------------------------------------------
Alexander.Bergolth@wu-wien.ac.at                Fax: +43-1-31336-906050
Zentrum fuer Informatikdienste - Wirtschaftsuniversitaet Wien - Austria


["amavis-error.txt" (text/plain)]

Mar  4 11:16:20 strike postfix/smtpd[12847]: connect from \
                cpe-72-226-101-38.nycap.res.rr.com[72.226.101.38]
Mar  4 11:16:20 strike amavis[12042]: (12042-15) loaded policy bank "STRIKE"
Mar  4 11:16:20 strike postfix/smtpd[12847]: NOQUEUE: \
                client=cpe-72-226-101-38.nycap.res.rr.com[72.226.101.38]
Mar  4 11:16:20 strike amavis[12042]: (12042-16) ESMTP:[127.0.0.1]:10024 \
/var/amavis/tmp/amavis-20070304T103648-12042: <izqcarboxy@bsdplaza.com> -> \
                <leo@strike.wu-wien.ac
.at> Received: from strike.wu-wien.ac.at ([127.0.0.1]) by localhost \
(strike.wu-wien.ac.at [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for \
<leo@strike.wu-wien.ac.at> ; Sun,  4 Mar 2007 11:16:20 +0100 (CET)
Mar  4 11:16:20 strike postfix/smtpd[12847]: warning: lost connection with proxy \
                127.0.0.1:10024
Mar  4 11:16:20 strike amavis[12861]: TIMING [total 7 ms] - bdb-open: 7 (100%)100, \
                rundown: 0 (0%)100
Mar  4 11:16:20 strike amavis[12861]: storage and lookups will use the same \
                connection to SQL
Mar  4 11:16:21 strike postfix/cleanup[12858]: 12D90C03E88: \
                message-id=<20070304101621.12D90C03E88@strike.wu-wien.ac.at>
Mar  4 11:16:21 strike postfix/qmgr[27040]: 12D90C03E88: \
                from=<double-bounce@strike.wu-wien.ac.at>, size=849, nrcpt=1 (queue \
                active)
Mar  4 11:16:21 strike postfix/smtpd[12847]: disconnect from \
cpe-72-226-101-38.nycap.res.rr.com[72.226.101.38]



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic