Byteplant Forum

Home » CleanMail Support » CleanMail Server Talk » lock failed ?
lock failed ? [message #899] Mon, 08 November 2004 15:44
fonager
Messages: 8
Registered: July 2004
Junior Member
I very often get this error message :

" (SpamAssassin) Cannot open bayes databases db\bayes_* R/W: lock failed: File exists"

What does this mean ?



Regards,
Tony Fonager, Denmark
Re: lock failed ? [message #900 is a reply to message #899] Mon, 08 November 2004 18:20 Go to previous message
support
Messages: 919
Registered: April 2004
Senior Member
While SpamAssassin 3.0 is updating a SpamAssassin 2.6 database, or while SpamAssassin expires old tokens, the database is locked. This usually takes a few minutes, and the lock should be removed automatically.

If expiring or rebuilding the database fails, this lock sometimes is not removed. If so you will find a file with the extension "lock" in the base database directory.

To remove this lock, do the following:

- Stop the NoSpamToday! service
- delete the lock file
- open a command line window, and cd to the installation directory
- run the following command (may take several minutes)
sa\sa-learn -C sa\ruleset --sync
- run the following command (may take several minutes)
sa\sa-learn -C sa\ruleset --force-expire

Afterwards, restart the service.



Customer Support
Byteplant GmbH
Previous Topic: No Spam Today! Slowness
Next Topic: Harvester attack - lost mail?
Goto Forum:
  


Current Time: Sat Dec 03 22:50:00 CET 2016