从ejabberd 18.04升级到19.09.1后,出现以下错误不太精通erlang,请帮助我调试此问题。
日志:
12:26:43.791 [error] CRASH REPORT Process <0.506.0> with 0 neighbours crashed with reason: call to undefined function gen_mod:get_opt(send_pings, #{ahenviroment => false,ahprotocol => "https://",basedomain => "sit3lhc.1atesting.in",iqdisc => no_queue,...}, #Fun<mod_lhcping.0.4469384>, false)
12:26:43.791 [critical] Failed to start module mod_lhcping:
{error,{{undef,[{gen_mod,get_opt,
[send_pings,
#{ahenviroment => false,ahprotocol => "https://",
basedomain => "localhost",
iqdisc => no_queue,
ping_address =>
"https://localhost/xmppservice/operatorstatus",
ping_interval => 5,send_pings => true,
timeout_action => kill},
#Fun<mod_lhcping.0.4469384>,false],
[]},
{mod_lhcping,init,1,[{file,"src/mod_lhcping.erl"},{line,120}]},
{gen_server,init_it,2,[{file,"gen_server.erl"},{line,374}]},
{gen_server,init_it,6,[{file,"gen_server.erl"},{line,342}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,249}]}]},
{child,undefined,'mod_lhcping_localhost',
{mod_lhcping,start_link,
[<<"localhost">>,
#{ahenviroment => false,ahprotocol => "https://",
basedomain => "localhost",
iqdisc => no_queue,
ping_address =>
"https://localhost/xmppservice/operatorstatus",
ping_interval => 5,send_pings => true,
timeout_action => kill}]},
transient,2000,worker,
[mod_lhcping]}}}
12:26:43.792 [critical] ejabberd initialization was aborted because a module start failed.
提前感谢!
该模块未更新为最近的ejabberd更改,这些更改更改了源代码中定义模块选项的方式。而且很可能模块的其他部分与ejabberd当前的API都不是最新的...