[Rspamd-Users] Upgrade from 1.8.3 to 1.9.0 broke ( Debian 9.8 )

Sophie Loewenthal sophie at klunky.co.uk
Tue Mar 26 20:27:26 UTC 2019


The local.d/actions.conf has metrics configured and  I see a reference to this:
>  unknown element in actions section: metrics

I have deleted this file and it started.
# cat actions.conf 
    reject = 14;
    add_header = 6;
    rewrite_subject = 6;
    subject = "***SPAM*** %s";
    greylist = null; 

metrics {
symbol "MX_INVALID" {
  score = 1.0;
  description = "No connectable MX";
  one_shot = "true"; }
symbol "MX_MISSING" {
  score = 1.5;
  description = "No MX record";
  one_shot = "true"; }
symbol "MX_GOOD" {
  score = -0.5;
  description = "MX was ok";
  one_shot = "true"; }
}


I have removed the local.d/statistics.conf file.

Rspamd now starts.

How can I add the metrics back in?


> On 26 Mar 2019, at 21:16, Sophie Loewenthal <sophie at klunky.co.uk> wrote:
> 
> Hi,
> 
> This evening upgraded from 1.8.3 to 1.9.0.  Rspamd would not start up afterwards. I did not change any configuration files:
> 
> 2019-03-26 20:13:12 #3207(main) <>; lua; lua_cfg_transform.lua:230: conflicting files /etc/rspamd/local.d/statistic.conf and /etc/rspamd/local.d/classifier-bayes.conf are found: Rspamd classifier configuration might be broken!
> 2019-03-26 20:13:12 #3207(main) lua; lua_cfg_transform.lua:287: unknown element in actions section: metrics
> 2019-03-26 20:13:12 #3207(main) lua; lua_cfg_transform.lua:160: group excessqp has no symbols
> 2019-03-26 20:13:12 #3207(main) lua; lua_cfg_transform.lua:160: group excessb64 has no symbols
> 2019-03-26 20:13:12 #3207(main) cfg; rspamd_rcl_maybe_apply_lua_transform: configuration has been transformed in Lua
> 2019-03-26 20:13:12 #3207(main) <uon7mu>; cfg; rspamd_config_set_action_score: action add header has been already registered with priority 0, override it with new priority: 0, old score: nan
> 2019-03-26 20:13:12 #3207(main) <uon7mu>; cfg; rspamd_config_set_action_score: action reject has been already registered with priority 0, override it with new priority: 0, old score: nan
> 2019-03-26 20:13:12 #3207(main) <uon7mu>; cfg; rspamd_config_set_action_score: action rewrite subject has been already registered with priority 0, override it with new priority: 0, old score: nan
> 2019-03-26 20:13:12 #3207(main) <uon7mu>; cfg; rspamd_config_action_from_ucl: action metrics has no threshold being set and it is not a no threshold action
> 2019-03-26 20:13:12 #3207(main) <uon7mu>; cfg; rspamd_config_read: rcl parse error: invalid action definition for: 'metrics'
> 
> 
> Any idea what changed between the releases and what the best way to recover from this is?
> 
> Regards.
> 
> 
> -- 
> Users mailing list
> Users at lists.rspamd.com
> https://lists.rspamd.com/mailman/listinfo/users



More information about the Users mailing list