我对/.spamassassin/bayes.lock
这是我看到的错误:
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
命令spamassassin -V
显示:
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
# 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
该命令还ll -d /.spamassassin
显示:
drwxrwxrwx 3 nobody nobody 4096 oct 23 15:16 /.spamassassin
您知道如何解决它吗?
答案1
我认为锁文件的存在意味着 spamassassin 正在运行或未正确关闭。我会确保 SA 完全关闭,删除锁文件,重新启动 SA,看看是否能解决问题。