PDA

View Full Version : amavisd crash


vinx
25th March 2006, 19:34
Hello everyone.

My Debian Sarge Mail Server with postfix+mysql+courier+blablabla is working pretty well exept that sometimes amavisd crashes.

this is from /var/log/mail.log:

Mar 25 04:23:49 mail amavis[28483]: Net::Server: 2006/03/25-04:23:49 Server clos
ing!
Mar 25 04:23:49 mail amavis[6680]: (06680-03) tempdir being removed: /var/lib/am
avis/amavis-20060324T161921-06680
Mar 25 04:23:49 mail amavis[6469]: (06469-03) tempdir being removed: /var/lib/am
avis/amavis-20060324T145310-06469
Mar 25 04:23:49 mail amavis[6587]: (06587-03) tempdir being removed: /var/lib/am
avis/amavis-20060324T150854-06587

this is from crontab:

23 4 */2 * * /usr/local/sbin/sa_rules_update.sh &> /dev/null

I think somethimes, during sa_rules_update.sh job, amavisd crashes.

Any idea?

Regards,
Vince

falko
26th March 2006, 12:10
Does amavisd stop totally, or does it continue to work?
I can imagine that this is just a server process that stops and that another server process is started. amavisd runs several server processes at the same time.

vinx
3rd April 2006, 16:58
Does amavisd stop totally, or does it continue to work?
I can imagine that this is just a server process that stops and that another server process is started. amavisd runs several server processes at the same time.

amavisd stop totally, all email received are deferred until I manually start it with /etc/init.d/amavis restart command.

falko
3rd April 2006, 20:05
You could try to update the Net::Server Perl module. Maybe it helps.

vinx
4th April 2006, 12:05
You could try to update the Net::Server Perl module. Maybe it helps.

Excuse my ignorance, but, how to do that?

falko
4th April 2006, 18:28
Run
perl -MCPAN -e shell
On the Perl shell, you do this:
install Net::DNS
Afterwards, type q to leave the Perl shell.

vinx
8th April 2006, 11:17
Ok, I did it, but now I have another problem!.

Apr 8 09:55:38 mail amavis[12355]: (12355-03) lookup_sql: 2013, Lost connection to MySQL server during query

Apr 8 09:55:38 mail amavis[12355]: (12355-03) NOTICE: Disconnected from SQL server

Apr 8 09:55:38 mail amavis[12355]: (12355-03) TROUBLE in check_mail: creating_partsdir FAILED: DBD::mysql::st execute failed: Lost connection to MySQL server during query at (eval 38) line 238, <GEN14> line 275.

Apr 8 09:55:38 mail amavis[12355]: (12355-03) PRESERVING EVIDENCE in /var/lib/amavis/amavis-20060407T224427-12355

Apr 8 09:55:38 mail postfix/smtp[15289]: D8F1A62D45: to=<xxx@xxxx.xx
>, relay=127.0.0.1[127.0.0.1], delay=1500, status=deferred host127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=12355-03, creating_partsdir FAILED: DBD::mysql::st execute failed: Lost connection to MySQL server during query at (eval 38) line 238, <GEN14> line 275. (in reply to end of DATA command))

falko
8th April 2006, 13:59
Please check again all the configuration files and compare them to the ones from the tutorial (also check their format (spaces, etc.)).

vinx
11th April 2006, 11:52
the problem above happened just once, but amavisd crash still happens.

what about to put /etc/init.d/amavis restart in crontab everyday?

falko
11th April 2006, 15:04
That wouldn't be very reliable.
You could install monit to check the availability of amavisd (and let it restart it if it isn't running): http://www.tildeslash.com/monit/doc/