Re: Error "cannot open bayes databases" lock failed: File exists

2020-12-30 Thread Kris Deugau

Emanuel Gonzalez wrote:


# SpamAssassin Deamon config

SPAMDOPTIONS="-u spamd --round-robin --min-children=30 
--max-children=180 --min-spare=25 --max-spare=80 --timeout-child=60 
--max-conn-per-child=150
-i -A 
172.17.0.0/16,10.0.0.0/8,200.58.96.0/19,179.43.112.0/20,168.197.48.0/22,168.181.184.0/22,138.219.40.0/22,138.36.236.0/22,66.97.32.0/20"


Putting aside your Bayes error (which I'm pretty sure Matus answered), 
this seems like an awful lot of individual systems allowed to connect to 
a single spamd instance - it's not generally an end-user-accessible 
service.  Do you really need to access this spamd instance from ~20,000 
public IPs?


-kgd


Re: Error "cannot open bayes databases" lock failed: File exists

2020-12-30 Thread Matus UHLAR - fantomas

On 30.12.20 13:53, Emanuel Gonzalez wrote:

Dec 30 09:56:57 eternia6 spamd[15993]: bayes: cannot open bayes databases 
/var/spamassassin/bayesdb/bayes_* R/W: lock failed: File exists
Dec 30 09:56:57 eternia6 spamd[15915]: bayes: cannot open bayes databases 
/var/spamassassin/bayesdb/bayes_* R/W: lock failed: File exists
Dec 30 09:56:58 eternia6 spamd[16002]: bayes: cannot open bayes databases 
/var/spamassassin/bayesdb/bayes_* R/W: lock failed: File exists
Dec 30 09:56:59 eternia6 spamd[15960]: bayes: cannot open bayes databases 
/var/spamassassin/bayesdb/bayes_* R/W: lock failed: File exists
Dec 30 09:57:00 eternia6 spamd[15847]: bayes: cannot open bayes databases 
/var/spamassassin/bayesdb/bayes_* R/W: lock failed: File exists
Dec 30 09:57:01 eternia6 spamd[15909]: bayes: cannot open bayes databases 
/var/spamassassin/bayesdb/bayes_* R/W: lock failed: File exists

is possible be an error of permission?


aparently no. That's apparently problem of a process having the database
locked while other process tries to write to it.


drwsr-sr-x 3 spamd spamd 20 dic 18 10:26 /var/spamassassin
drwxr-xr-x 2 spamd spamd 60 dic 30 10:03 /var/spamassassin/bayesdb/

-rw--- 1 spamd spamd   66960 dic 30 10:03 bayes_journal
-rwxr-xr-x 1 spamd spamd  172032 dic 18 10:52 bayes_seen
-rwxr-xr-x 1 spamd spamd 5132288 dic 30 10:03 bayes_toks

# Bayes config

use_bayes yes
bayes_path /var/spamassassin/bayesdb/bayes
bayes_auto_learn 0
bayes_auto_expire 0

# SpamAssassin Deamon config

SPAMDOPTIONS="-u spamd --round-robin --min-children=30 --max-children=180 
--min-spare=25 --max-spare=80 --timeout-child=60 --max-conn-per-child=150
-i -A 
172.17.0.0/16,10.0.0.0/8,200.58.96.0/19,179.43.112.0/20,168.197.48.0/22,168.181.184.0/22,138.219.40.0/22,138.36.236.0/22,66.97.32.0/20"

I read various publications for this error but i don't know how resolve it.

Any ideas, recommendations?


bayes_learn_to_journal 1


--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
On the other hand, you have different fingers.


Error "cannot open bayes databases" lock failed: File exists

2020-12-30 Thread Emanuel Gonzalez
Good Morning everyone,

In the logs of spamassassin i see this error:

Dec 30 09:56:57 eternia6 spamd[15993]: bayes: cannot open bayes databases 
/var/spamassassin/bayesdb/bayes_* R/W: lock failed: File exists
Dec 30 09:56:57 eternia6 spamd[15915]: bayes: cannot open bayes databases 
/var/spamassassin/bayesdb/bayes_* R/W: lock failed: File exists
Dec 30 09:56:58 eternia6 spamd[16002]: bayes: cannot open bayes databases 
/var/spamassassin/bayesdb/bayes_* R/W: lock failed: File exists
Dec 30 09:56:59 eternia6 spamd[15960]: bayes: cannot open bayes databases 
/var/spamassassin/bayesdb/bayes_* R/W: lock failed: File exists
Dec 30 09:57:00 eternia6 spamd[15847]: bayes: cannot open bayes databases 
/var/spamassassin/bayesdb/bayes_* R/W: lock failed: File exists
Dec 30 09:57:01 eternia6 spamd[15909]: bayes: cannot open bayes databases 
/var/spamassassin/bayesdb/bayes_* R/W: lock failed: File exists

is possible be an error of permission?

drwsr-sr-x 3 spamd spamd 20 dic 18 10:26 /var/spamassassin
drwxr-xr-x 2 spamd spamd 60 dic 30 10:03 /var/spamassassin/bayesdb/

-rw--- 1 spamd spamd   66960 dic 30 10:03 bayes_journal
-rwxr-xr-x 1 spamd spamd  172032 dic 18 10:52 bayes_seen
-rwxr-xr-x 1 spamd spamd 5132288 dic 30 10:03 bayes_toks

# Bayes config

use_bayes yes
bayes_path /var/spamassassin/bayesdb/bayes
bayes_auto_learn 0
bayes_auto_expire 0

# SpamAssassin Deamon config

SPAMDOPTIONS="-u spamd --round-robin --min-children=30 --max-children=180 
--min-spare=25 --max-spare=80 --timeout-child=60 --max-conn-per-child=150
-i -A 
172.17.0.0/16,10.0.0.0/8,200.58.96.0/19,179.43.112.0/20,168.197.48.0/22,168.181.184.0/22,138.219.40.0/22,138.36.236.0/22,66.97.32.0/20"

I read various publications for this error but i don't know how resolve it.

Any ideas, recommendations?

Regards, Emanuel.