Richard wrote:

> When I restart amavisd , the mail queue is getting bigger and bigger. 
> When I run a spamassassin by hand, I get the folowing results.

> [12489] dbg: locker: safe_lock: created 
> /home/amavis/.spamassassin/bayes.lock.server.com.12489
> [12489] dbg: locker: safe_lock: trying to get lock on 
> /home/amavis/.spamassassin/bayes with 0 retries
> [12489] dbg: locker: safe_lock: trying to get lock on 
> /home/amavis/.spamassassin/bayes with 1 retries
> [12489] dbg: locker: safe_lock: trying to get lock on 
> /home/amavis/.spamassassin/bayes with 2 retries
> [12489] dbg: locker: safe_lock: trying to get lock on 
> /home/amavis/.spamassassin/bayes with 3 retries
> [12489] dbg: locker: safe_lock: trying to get lock on 
> /home/amavis/.spamassassin/bayes with 4 retries
> [12489] dbg: locker: safe_lock: trying to get lock on 
> /home/amavis/.spamassassin/bayes with 5 retries
> [12489] dbg: locker: safe_lock: trying to get lock on 
> /home/amavis/.spamassassin/bayes with 6 retries
> [12489] dbg: locker: safe_lock: trying to get lock on 
> /home/amavis/.spamassassin/bayes with 7 retries
> [12489] dbg: locker: safe_lock: trying to get lock on 
> /home/amavis/.spamassassin/bayes with 8 retries
> [12489] dbg: locker: safe_lock: trying to get lock on 
> /home/amavis/.spamassassin/bayes with 9 retries
> [12489] warn: bayes: cannot open bayes databases 
> /home/amavis/.spamassassin/bayes_* R/W: lock failed: File exists
> [12489] dbg: bayes: bayes journal sync completed

> When I delete the *lock* files from /home/amavis.spamassassin everything 
> works good. (almost every time) sometimes I have to do a double restart 
> to get things working again.

> How can I prevent this ?

> Greetings... Richard

This is often seen when the default nfssafe lock_method is used. If
your Bayes database is only used by amavis you can probably use:

lock_method flock

http://spamassassin.apache.org/full/3.0.x/dist/doc/Mail_SpamAssassin_Conf.html#miscellaneous_options

Or, you could possibly migrate Bayes to MySQL.

Gary V



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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/

Reply via email to