amavisd crash

Discussion in 'HOWTO-Related Questions' started by vinx, Mar 25, 2006.

  1. vinx

    vinx New Member

    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
     
  2. falko

    falko Super Moderator ISPConfig Developer

    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.
     
  3. vinx

    vinx New Member

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

    falko Super Moderator ISPConfig Developer

    You could try to update the Net::Server Perl module. Maybe it helps.
     
  5. vinx

    vinx New Member

    Excuse my ignorance, but, how to do that?
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Run
    Code:
    perl -MCPAN -e shell
    On the Perl shell, you do this:
    Code:
    install Net::DNS
    Afterwards, type q to leave the Perl shell.
     
  7. vinx

    vinx New Member

    Ok, I did it, but now I have another problem!.

    Code:
    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=<[email protected]
    >, 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))
    
     
  8. falko

    falko Super Moderator ISPConfig Developer

    Please check again all the configuration files and compare them to the ones from the tutorial (also check their format (spaces, etc.)).
     
  9. vinx

    vinx New Member

    the problem above happened just once, but amavisd crash still happens.

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

    falko Super Moderator ISPConfig Developer

Share This Page