On Wed, 24 Oct 2018, Emanuel Gonzalez wrote:

Hello.!!

I have a problem with the `/.spamassassin/bayes.lock`

This is the error I'm seeing :

   Oct 23 15:12:14 server spamd[18073]: bayes: cannot open bayes databases
/.spamassassin/bayes_* R/W: lock failed: File exists
   Oct 23 15:12:14 server spamd[18157]: bayes: cannot open bayes databases
/.spamassassin/bayes_* R/W: lock failed: File exists
   Oct 23 15:12:14 server spamd[18107]: bayes: cannot open bayes databases
/.spamassassin/bayes_* R/W: lock failed: File exists


The command `spamassassin -V` is showing :

   SpamAssassin version 3.4.1
   running on Perl version 5.10.1

   bayes_expiry_max_db_size 150000
   bayes_learn_to_journal 1
   bayes_auto_learn 0


128K    bayes_journal
547M    bayes_seen
4,0M    bayes_toks


   # spamassassin

   SPAMDOPTIONS="-u nobody -H --round-robin --min-children=30
--max-children=190 --min-spare=5 --max-spare=80 --timeout-child=120
--max-conn-per-child=100 -i -A IP"

   # directory perms

Also the command `ll -d /.spamassassin` is showing :

   drwxrwxrwx 3 nobody nobody 4096 oct 23 15:16 /.spamassassin

I restart the service and it works, but the problem reappears again

Do you have any idea how to solve it?


As was suggested earlier, disable auto-expiry and run a cron job to expire Bayes tokens.




--
 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
-----------------------------------------------------------------------
  Britain used to be the most powerful empire in the world.
  Now they're terrified of pocketknives.
  How the mighty have fallen.                           -- Matt Walsh
-----------------------------------------------------------------------
 573 days since the first commercial re-flight of an orbital booster (SpaceX)

Reply via email to