[Rspamd-Users] Neural.lua: bad argument #1 to 'zstd_decompress' ('text' expected)
Marc Risse
marc at risse.email
Mon Nov 19 10:29:55 UTC 2018
Hi list,
I cant narrow down the problem, maybe you'll see what goes wrong.
rspamadm configtest is okay...
Nov 19 11:16:29 relay rspamd[13763]: <>; ;
rspamd_lua_check_udata_common: lua type error: expected rspamd{text} at
position 1, but userdata has userdata metatable; trace:
[1]:{/usr/share/rspamd/lua//neural.lua:371 - load_or_invalidate_ann
[Lua]}; [2]:{/usr/share/rspamd/lua//neural.lua:868 - callback [Lua]};
[3]:{/usr/share/rspamd/lib/lua_redis.lua:929 - callback [Lua]};
[4]:{/usr/share/rspamd/lib/lua_redis.lua:662 - <unknown> [Lua]};
stack(1): [1: ud=userdata]
Nov 19 11:16:29 relay rspamd[13763]: <>; ; lua_redis_push_data: call to
callback failed: /usr/share/rspamd/lua//neural.lua:371: bad argument #1
to 'zstd_decompress' ('text' expected)
local.d/neural.conf:
servers = 127.0.0.1; # Redis server to store learning data and ANN
train {
max_train = 1k; # Number of trains per epoch
max_usages = 20; # Number of learn iterations while ANN data is
valid
spam_score = 11; # Score to learn spam
ham_score = -5; # Score to learn ham
learning_rate = 0.01; # Rate of learning (Torch only)
max_iterations = 25; # Maximum iterations of learning (Torch only)
}
timeout = 20; # Increase redis timeout
enabled = true;
use_settings = false; # If enabled, then settings-id is used to dispatch
networks
rules {
"LONG" {
train {
max_trains = 5000;
max_usages = 200;
max_iterations = 25;
learning_rate = 0.01,
spam_score = 8;
ham_score = -4;
}
symbol_spam = "NEURAL_SPAM_LONG";
symbol_ham = "NEURAL_HAM_LONG";
ann_expire = 100d;
}
"SHORT" {
train {
max_trains = 100;
max_usages = 2;
max_iterations = 25;
learning_rate = 0.01,
spam_score = 8;
ham_score = -4;
}
symbol_spam = "NEURAL_SPAM_SHORT";
symbol_ham = "NEURAL_HAM_SHORT";
ann_expire = 5d;
}
}
System:
Ubuntu 16.04 LTS
rspamd: 1.8.1
redis-server: 5:5.0.0-3chl1~xenial1
lua5.2: 5.2.4-1ubuntu1
lua5.3: 5.3.1-1ubuntu2
Best,
Marc
More information about the Users
mailing list