[Rspamd-Users] replies module error "Attempt to perform arithmetic [on string]"
Gerald Galster
list+rspamd at gcore.biz
Wed Sep 11 19:07:37 UTC 2024
>>>>>> I noticed an error ...
>>>>>> ...
>>>>>> call to (REPLIES_SET) failed (2):
>>>>>> /usr/local/share/rspamd/plugins/replies.lua:276: attempt to perform
>>>>>> arithmetic on field 'expire' (a string value); trace:
>>>>>> [1]:{/usr/local/share/rspamd/plugins/replies.lua:276 - <unknown> [Lua]};
>>>>>> Any ideas?
>>>>> rspamadm configtest?
>>>> (root at rivendell) 242# rspamadm configtest
>>>> implicitly enabling luapattern returncodes_matcher for rule SH_EMAIL_ZRD
>>>> implicitly enabling luapattern returncodes_matcher for rule SPAMHAUS_ZRD
>>>> syntax OK
>>> Have a look at https://rspamd.com/doc/modules/replies.html
>>> If your config looks like that, create it from scratch (no copy & paste),
>>> to rule out any invisible chars that might interfere.
>>> Basically expire = 5d; is accepted here.
>>
>> Re-created the file from scratch, precisely the same error. Here's its hexdump (FreeBSD machine so line ends are proper):
>
> IIRC sources are compiled via ports on FreeBSD. You could grab a tarball of
> the original rspamd sources and diff the directory trees. If they match you
> could look for lua/luajit versions.
>
> I've verified that the following config works on Linux with rspamd 3.9 and
> liblua 5.4:
My instance was compiled without luajit, so I've tried that and it worked as well.
Luajit is from "git clone -b v2.1 https://luajit.org/git/luajit-2.0.git".
Best regards,
Gerald
More information about the Users
mailing list