#1  
Old 25th March 2006, 18:34
vinx vinx is offline
Junior Member
 
Join Date: Feb 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default amavisd crash

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
Reply With Quote
Sponsored Links
  #2  
Old 26th March 2006, 11:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 3rd April 2006, 15:58
vinx vinx is offline
Junior Member
 
Join Date: Feb 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
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.
Reply With Quote
  #4  
Old 3rd April 2006, 19:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

You could try to update the Net::Server Perl module. Maybe it helps.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 4th April 2006, 11:05
vinx vinx is offline
Junior Member
 
Join Date: Feb 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
You could try to update the Net::Server Perl module. Maybe it helps.
Excuse my ignorance, but, how to do that?
Reply With Quote
  #6  
Old 4th April 2006, 17:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 8th April 2006, 10:17
vinx vinx is offline
Junior Member
 
Join Date: Feb 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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=<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))
Reply With Quote
  #8  
Old 8th April 2006, 12:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Please check again all the configuration files and compare them to the ones from the tutorial (also check their format (spaces, etc.)).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 11th April 2006, 10:52
vinx vinx is offline
Junior Member
 
Join Date: Feb 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

what about to put /etc/init.d/amavis restart in crontab everyday?
Reply With Quote
  #10  
Old 11th April 2006, 14:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

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/
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Server crash abys Server Operation 6 15th March 2006 09:43
Arts crash on KDE start cafeina Desktop Operation 5 7th March 2006 23:33
ISPConfig crash DrAgOOn General 4 11th August 2005 22:00


All times are GMT +2. The time now is 00:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.