[Rspamd-Users] redis script from file: bayes_stat.lua is not ready, waiting it to be loaded // service rspamd restart duration

Florian Piekert floppy at floppy.org
Tue Feb 11 12:15:04 UTC 2025


Hello all,

I am puzzled a bit. I have redis running and I more or less know how lua scripts in redis need to be loaded, etc.

However, what I do not understand at all is the following (3 different machines, similar, not always reproducible results).

I sometimes need to do a "service rspamd restart" on my ubuntu boxes.

Apart from taking ages (approx 1 min. with time!
real    1m0,280s
user    0m0,005s
sys     0m0,009s
) for this procedure - WHY?
local.d/worker-proxy.conf/timeout=30s;
local.d/options.inc/heartbeats_loss_max =3, task_timeout=30s

I often have the issue of
Feb 11 12:08:52 butterfly rspamd[377600]: <63a576>; lua; lua_redis.lua:1538: redis script from file: bayes_stat.lua is not ready, waiting it to be loaded
Feb 11 12:09:22 butterfly rspamd[377600]: <63a576>; lua; lua_redis.lua:1538: redis script from file: bayes_stat.lua is not ready, waiting it to be loaded
Feb 11 12:09:52 butterfly rspamd[377600]: <63a576>; lua; lua_redis.lua:1538: redis script from file: bayes_stat.lua is not ready, waiting it to be loaded
(why multiple entries at all btw?)

in the logs for as long as I do another "service rspamd restart" attempt. Sometimes that solves it, sometimes not.

I doesn't matter if emails come in (from postfix, rspamd as milter) - they get handled OK as far as I was able to follow (BAYES_HAM mentioned in log)

Feb 11 12:08:40 butterfly rspamd[377601]: <88694F>; proxy; rspamd_task_write_log: id: <ffdaac83fe0e4fa89c338af575a4e950 at Exchange01.domain.de>, qid: <88694F8B02A>, ip: 87.128.109.56, from: <user at domain.de>, (default: F (no action): [-3.69/14.00] [BAYES_HAM(-3.00){100.00%;},GENERIC_REPUTATION(-0.81){-0.8166312192775;},MIME_BASE64_TEXT(0.11){},RCVD_NO_TLS_LAST(0.11){},MIME_GOOD(-0.10){multipart/mixed;multipart/related;multipart/alternative;text/plain;},ARC_NA(0.00){},ARC_SIGNED(0.00){domain.de:s=arc20241222:i=1;},DKIM_SIGNED(0.00){domain.de:s=mail20241221a;domain.de:s=mail20241221b;},FROM_EQ_ENVFROM(0.00){},FROM_HAS_DN(0.00){},HAS_ATTACHMENT(0.00){},HAS_XOIP(0.00){},MID_RHS_MATCH_FROMTLD(0.00){},MIME_TRACE(0.00){0:+;1:+;2:+;3:+;4:~;5:~;6:~;7:~;},MISSING_XM_UA(0.00){},RCPT_COUNT_ONE(0.00){1;},RCVD_COUNT_TWO(0.00){2;},SUSPICIOUS_AUTH_ORIGIN(0.00){},TO_DN_ALL(0.00){},TO_MATCH_ENVRCPT_ALL(0.00){}]), len: 182987, time: 2094.248ms, dns req: 22, digest: <45b53733b083813910c62e600d981603>, rcpts: <targetuser at otherdomain.de>, mime_rcpts: <targetuser at otherdomain.de>

So what is the issue in my configuration that triggers the above bayes_stat.lua is not ready?

And why does it so persistently keep on being "is not ready" over - if I don't check by chance - hours possibly?

Thanks for any help,
Florian



More information about the Users mailing list