[Rspamd-Users] constant redis/lua errors in rspamd logs

Michal Soltys msoltyspl at yandex.pl
Thu Dec 12 12:57:25 UTC 2024


On 12/12/24 1:29 PM, Michal Soltys wrote:
> On 12/12/24 2:14 AM, Gerald Galster wrote:
>>
>> Do you require expand_keys and/or prefix?
>>
>> If not, try to remove them from config. Stop rspamd and redis, move 
>> the *.rdb file elsewhere.
>> Start redis and rspamd and learn a bunch of spam-/ham mails and see if 
>> the error persists.
>>
>> You could also try redis_cli monitor to see what's going on.
>>
> 
> Hmm, after restarting rspamd everything went back to normal - with 
> everything across the board related to redis - as far as logs go at least.
> 
> It turned out restarting redis caused the issues - it looks like rspamd 
> doesn't not attempt to reconnect and just throws errors in the logs. And 
> such state persists indefinitely until rspamd itself is restarted.
> 
> Is there any way to enforce reconnection ? I see no obvious options 
> anywhere ...
> 

One more to add - judging from connections rspamd indeed reconnects to 
redis, but it doesn't really change the functional side - parts of 
rspamd are not aware that reconnection happened.

Maybe this should be reported reported as a bug.


More information about the Users mailing list