[Rspamd-Users] Please help: rspamd_redis_processed: got invalid reply from redis: error, array expected
Seibel Andreas
a.seibel at fis-asp.de
Fri Aug 7 12:12:13 UTC 2020
Hello,
from time to time (about once a month) we have the following problem: in rspamd.log the lines appear for every email:
2020-08-05 16:09:29 #873(normal) <3344ec>; task; rspamd_redis_processed: got invalid reply from redis: error, array expected
2020-08-05 16:09:29 #873(normal) <3344ec>; task; rspamd_redis_processed: got invalid reply from redis: error, array expected
2020-08-05 16:09:29 #873(normal) <3344ec>; task; rspamd_stat_classifiers_process: skip statistics as SPAM class is missing
Learning and evaluating Bayes no longer works.
I can fix it by stopping redis, deleting the corresponding ".rdb" file and starting redis again. But then of course the data is gone and Bayes has to learn again.
We have a separate redis instance for Bayes. Our "local.d/statistics.conf" looks like this
------------------------------------------------------------------------------------------------------
classifier "bayes" {
tokenizer {
name = "osb";
}
cache {
}
new_schema = true; # Always use new schema
store_tokens = false; # Redefine if storing of tokens is desired
signatures = false; # Store learn signatures
#per_user = true; # Enable per user classifier
min_tokens = 11;
backend = "redis";
min_learns = 200;
servers = "localhost:6378";
statfile {
symbol = "BAYES_HAM";
spam = false;
}
statfile {
symbol = "BAYES_SPAM";
spam = true;
}
# learn_condition = 'return require("lua_bayes_learn").can_learn';
# Autolearn sample
autolearn {
spam_threshold = 6.0; # When to learn spam (score >= threshold)
ham_threshold = -0.5; # When to learn ham (score <= threshold)
check_balance = true; # Check spam and ham balance
min_balance = 0.9; # Keep diff for spam/ham learns for at least this value
}
}
------------------------------------------------------------------------------------------------------
Does anyone have any idea what's going wrong?
Thanks a lot in advance.
Regards, Andreas.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5513 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.rspamd.com/pipermail/users/attachments/20200807/b878c39c/attachment.bin>
More information about the Users
mailing list