On Thu, 19 Jul 2018, Nick Bright wrote:

I've deployed SA into my environment, and I'm trying to add some training data. This is in a site-wide configuration, so it's a site-wide bayes file. The server is fairly active (several thousand mailboxes, hundreds of messages per second).

When attemting to sa-learn some spam, it runs for a few moments, then gets:

Jul 19 13:12:03.797 [5437] dbg: locker: safe_lock: trying to get lock on /var/spamassassin/bayes_db/bayes with 175 retries

It doesn't seem to get anywhere, it's been running for several minutes that way.

Do you happen to have autolearn enabled? If so, turn it off.

I suspect that this is simply because my activity level in bayes is higher than a flat file may support.

Is this something I should fix on a flat file bayes DB, or should I look at going to Bayes-SQL?

Redis would probably be better.

Also, if you don't have autolearn enabled and you're using flat files, you could learn into an offline database and when done copy the files over to the live instance (ideally by directory renaming to minimize the window).

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 jhar...@impsec.org    FALaholic #11174     pgpk -a jhar...@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  If the rock of doom requires a gentle nudge away from Gaia to
  prevent a very bad day for Earthlings, NASA won’t be riding to the
  rescue. These days, NASA does dodgy weather research and outreach
  programs, not stuff in actual space with rockets piloted by
  flinty-eyed men called Buzz.                       -- Daily Bayonet
-----------------------------------------------------------------------
 Tomorrow: the 49th anniversary of Apollo 11 landing on the Moon

Reply via email to