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 Howtoforge Staff

    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.
     
    vuongduyhn likes this.
  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 Howtoforge Staff

    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 Howtoforge Staff

    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 Howtoforge Staff

    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 Howtoforge Staff

  11. flop25

    flop25 New Member

    Hello
    I'm on Debian 8.7 and I get the same problem with amavis: do you have issues with mysql too? what server are you using? I'm using a small Kimsufi server.
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Maybe not enough RAM? Did you check with e.g. top that you have enough free ram and did you check the syslog for "out of ram" related errors like "can not free memory" and similar issues?
     
  13. flop25

    flop25 New Member

    probably right, because with
    Cron <root@ns363248> /usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done
    I get
    /bin/sh: fork: Can't allocate memory
     
    Last edited: Jan 25, 2017
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    How much RAM does your VServer has?
     
  15. flop25

    flop25 New Member

    total used free shared buffers cached​
    Mem: 3926 2778 1147 156 53 2021
    -/+ buffers/cache: 703 3223
    Swap: 510 448 62
     
  16. Hi , I'm new beginning for this site recommend I thank you for everything.
     

Share This Page