k8s部署emqx5.0.16启动后添加插件,插件启动后,新增节点报错无法启动

在k8s集群环境中完成emqx5.0.16集群搭建
在dashboard上将emqx_plugin_template-5.0.0.tar.gz上传
正常启动该插件后
新增一个Replicant节点,新增的节点中会出现以下报错信息并无法成功启动

2023-02-07T15:25:28.130697+08:00 [error] REPORT_CB/2 CRASH: [{mfa,["proc_lib",":","crash_report","/4"]},{line,525},{label,{proc_lib,crash}},{report,[[{initial_call,{application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}},{pid,<0.3014.0>},{registered_name,[]},{error_info,{exit,{bad_return,{{emqx_plugins_app,start,[normal,[]]},{'EXIT',{#{errors => [{"emqx_plugin_template-5.0.0",#{error => "bad_info_file",path => "plugins/emqx_plugin_template-5.0.0/release.json",return => {enoent,"/opt/emqx/plugins/emqx_plugin_template-5.0.0/release.json"}}}],function => fun emqx_plugins:do_ensure_started/1},[{emqx_plugins,for_plugins,1,[{file,"emqx_plugins.erl"},{line,680}]},{emqx_plugins_app,start,2,[{file,"emqx_plugins_app.erl"},{line,28}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,293}]}]}}}},[{application_master,init,4,[{file,"application_master.erl"},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}},{ancestors,[<0.3013.0>]},{message_queue_len,1},{messages,[{'EXIT',<0.3015.0>,normal}]},{links,[<0.3013.0>,<0.1707.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,987},{stack_size,29},{reductions,213}],[]]}]; Reason: {error,function_clause,[{proc_lib,report_cb,[[{mfa,["proc_lib",":","crash_report","/4"]},{line,525},{label,{proc_lib,crash}},{report,[[{initial_call,{application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}},{pid,<0.3014.0>},{registered_name,[]},{error_info,{exit,{bad_return,{{emqx_plugins_app,start,[normal,[]]},{'EXIT',{#{errors => [{"emqx_plugin_template-5.0.0",#{error => "bad_info_file",path => "plugins/emqx_plugin_template-5.0.0/release.json",return => {enoent,"/opt/emqx/plugins/emqx_plugin_template-5.0.0/release.json"}}}],function => fun emqx_plugins:do_ensure_started/1},[{emqx_plugins,for_plugins,1,[{file,"emqx_plugins.erl"},{line,680}]},{emqx_plugins_app,start,2,[{file,"emqx_plugins_app.erl"},{line,28}]},{application_master,start_it_old,4,[{file,"appl
ication_master.erl"},{line,293}]}]}}}},[{application_master,init,4,[{file,"application_master.erl"},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}},{ancestors,[<0.3013.0>]},{message_queue_len,1},{messages,[{'EXIT',<0.3015.0>,normal}]},{links,[<0.3013.0>,<0.1707.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,987},{stack_size,29},{reductions,213}],[]]}],#{chars_limit => unlimited,depth => 100,single_line => true}],[{file,"proc_lib.erl"},{line,774}]}]}

2023-02-07T15:25:28.131316+08:00 [critical] msg: failed_to_start_app, mfa: emqx_machine_boot:start_one_app/1, line: 88, app: emqx_plugins, reason: {emqx_plugins,{bad_return,{{emqx_plugins_app,start,[normal,[]]},{'EXIT',{#{errors => [{"emqx_plugin_template-5.0.0",#{error => "bad_info_file",path => "plugins/emqx_plugin_template-5.0.0/release.json",return => {enoent,"/opt/emqx/plugins/emqx_plugin_template-5.0.0/release.json"}}}],function => fun emqx_plugins:do_ensure_started/1},[{emqx_plugins,for_plugins,1,[{file,"emqx_plugins.erl"},{line,680}]},{emqx_plugins_app,start,2,[{file,"emqx_plugins_app.erl"},{line,28}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,293}]}]}}}}}

2023-02-07T15:25:28.131541+08:00 [error] REPORT_CB/2 CRASH: [{mfa,["supervisor",":","start_children","/2"]},{line,392},{label,{supervisor,start_error}},{report,[{supervisor,{local,emqx_machine_sup}},{errorContext,start_error},{reason,{'EXIT',{{failed_to_start_app,emqx_plugins,{emqx_plugins,{bad_return,{{emqx_plugins_app,start,[normal,[]]},{'EXIT',{#{errors => [{"emqx_plugin_template-5.0.0",#{error => "bad_info_file",path => "plugins/emqx_plugin_template-5.0.0/release.json",return => {enoent,"/opt/emqx/plugins/emqx_plugin_template-5.0.0/release.json"}}}],function => fun emqx_plugins:do_ensure_started/1},[{emqx_plugins,for_plugins,1,[{file,"emqx_plugins.erl"},{line,680}]},{emqx_plugins_app,start,2,[{file,"emqx_plugins_app.erl"},{line,28}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,293}]}]}}}}}},[{emqx_machine_boot,start_one_app,1,[{file,"emqx_machine_boot.erl"},{line,89}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{emqx_machine_boot,post_boot,0,[{file,"emqx_machine_boot.erl"},{line,38}]},{supervisor,do_start_child_i,3,[{file,"supervisor.erl"},{line,414}]},{supervisor,do_start_child,2,[{file,"supervisor.erl"},{line,400}]},{supervisor,'-start_children/2-fun-0-',3,[{file,"supervisor.erl"},{line,384}]},{supervisor,children_map,4,[{file,"supervisor.erl"},{line,1250}]},{supervisor,init_children,2,[{file,"supervisor.erl"},{line,350}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,423}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}}},{offender,[{pid,undefined},{id,emqx_machine_boot},{mfargs,{emqx_machine_boot,post_boot,[]}},{restart_type,temporary},{significant,false},{shutdown,5000},{child_type,worker}]}]}]; Reason: {error,function_clause,[{supervisor,format_log_multi,[[{mfa,["supervisor",":","start_children","/2"]},{line,392},{label,{supervisor,start_error}},{report,[{supervisor,{local,emqx_machine_sup}},{errorContext,start_error},{reason,{'EXIT',{{failed_to_start_
app,emqx_plugins,{emqx_plugins,{bad_return,{{emqx_plugins_app,start,[normal,[]]},{'EXIT',{#{errors => [{"emqx_plugin_template-5.0.0",#{error => "bad_info_file",path => "plugins/emqx_plugin_template-5.0.0/release.json",return => {enoent,"/opt/emqx/plugins/emqx_plugin_template-5.0.0/release.json"}}}],function => fun emqx_plugins:do_ensure_started/1},[{emqx_plugins,for_plugins,1,[{file,"emqx_plugins.erl"},{line,680}]},{emqx_plugins_app,start,2,[{file,"emqx_plugins_app.erl"},{line,28}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,293}]}]}}}}}},[{emqx_machine_boot,start_one_app,1,[{file,"emqx_machine_boot.erl"},{line,89}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{emqx_machine_boot,post_boot,0,[{file,"emqx_machine_boot.erl"},{line,38}]},{supervisor,do_start_child_i,3,[{file,"supervisor.erl"},{line,414}]},{supervisor,do_start_child,2,[{file,"supervisor.erl"},{line,400}]},{supervisor,'-start_children/2-fun-0-',3,[{file,"supervisor.erl"},{line,384}]},{supervisor,children_map,4,[{file,"supervisor.erl"},{line,1250}]},{supervisor,init_children,2,[{file,"supervisor.erl"},{line,350}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,423}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}}},{offender,[{pid,undefined},{id,emqx_machine_boot},{mfargs,{emqx_machine_boot,post_boot,[]}},{restart_type,temporary},{significant,false},{shutdown,5000},{child_type,worker}]}]}],#{chars_limit => unlimited,depth => 100,encoding => utf8,single_line => true}],[{file,"supervisor.erl"},{line,1657}]},{supervisor,format_log,2,[{file,"supervisor.erl"},{line,1619}]}]}

2023-02-07T15:25:28.132351+08:00 [error] REPORT_CB/2 CRASH: [{mfa,["proc_lib",":","crash_report","/4"]},{line,525},{label,{proc_lib,crash}},{report,[[{initial_call,{application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}},{pid,<0.1946.0>},{registered_name,[]},{error_info,{exit,{{shutdown,{failed_to_start_child,emqx_machine_boot,{'EXIT',{{failed_to_start_app,emqx_plugins,{emqx_plugins,{bad_return,{{emqx_plugins_app,start,[normal,[]]},{'EXIT',{#{errors => [{"emqx_plugin_template-5.0.0",#{error => "bad_info_file",path => "plugins/emqx_plugin_template-5.0.0/release.json",return => {enoent,"/opt/emqx/plugins/emqx_plugin_template-5.0.0/release.json"}}}],function => fun emqx_plugins:do_ensure_started/1},[{emqx_plugins,for_plugins,1,[{file,"emqx_plugins.erl"},{line,680}]},{emqx_plugins_app,start,2,[{file,"emqx_plugins_app.erl"},{line,28}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,293}]}]}}}}}},[{emqx_machine_boot,start_one_app,1,[{file,"emqx_machine_boot.erl"},{line,89}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{emqx_machine_boot,post_boot,0,[{file,"emqx_machine_boot.erl"},{line,38}]},{supervisor,do_start_child_i,3,[{file,"supervisor.erl"},{line,414}]},{supervisor,do_start_child,2,[{file,"supervisor.erl"},{line,400}]},{supervisor,'-start_children/2-fun-0-',3,[{file,"supervisor.erl"},{line,384}]},{supervisor,children_map,4,[{file,"supervisor.erl"},{line,1250}]},{supervisor,init_children,2,[{file,"supervisor.erl"},{line,350}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,423}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}}}},{emqx_machine_app,start,[normal,[]]}},[{application_master,init,4,[{file,"application_master.erl"},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}},{ancestors,[<0.1945.0>]},{message_queue_len,1},{messages,[{'EXIT',<0.1947.0>,normal}]},{links,[<0.1945.0>,<0.1707.0>]},{dictionary,[]},{t
rap_exit,true},{status,running},{heap_size,1598},{stack_size,29},{reductions,158}],[]]}]; Reason: {error,function_clause,[{proc_lib,report_cb,[[{mfa,["proc_lib",":","crash_report","/4"]},{line,525},{label,{proc_lib,crash}},{report,[[{initial_call,{application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}},{pid,<0.1946.0>},{registered_name,[]},{error_info,{exit,{{shutdown,{failed_to_start_child,emqx_machine_boot,{'EXIT',{{failed_to_start_app,emqx_plugins,{emqx_plugins,{bad_return,{{emqx_plugins_app,start,[normal,[]]},{'EXIT',{#{errors => [{"emqx_plugin_template-5.0.0",#{error => "bad_info_file",path => "plugins/emqx_plugin_template-5.0.0/release.json",return => {enoent,"/opt/emqx/plugins/emqx_plugin_template-5.0.0/release.json"}}}],function => fun emqx_plugins:do_ensure_started/1},[{emqx_plugins,for_plugins,1,[{file,"emqx_plugins.erl"},{line,680}]},{emqx_plugins_app,start,2,[{file,"emqx_plugins_app.erl"},{line,28}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,293}]}]}}}}}},[{emqx_machine_boot,start_one_app,1,[{file,"emqx_machine_boot.erl"},{line,89}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{emqx_machine_boot,post_boot,0,[{file,"emqx_machine_boot.erl"},{line,38}]},{supervisor,do_start_child_i,3,[{file,"supervisor.erl"},{line,414}]},{supervisor,do_start_child,2,[{file,"supervisor.erl"},{line,400}]},{supervisor,'-start_children/2-fun-0-',3,[{file,"supervisor.erl"},{line,384}]},{supervisor,children_map,4,[{file,"supervisor.erl"},{line,1250}]},{supervisor,init_children,2,[{file,"supervisor.erl"},{line,350}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,423}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}}}},{emqx_machine_app,start,[normal,[]]}},[{application_master,init,4,[{file,"application_master.erl"},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}},{ancestors,[<0.1945.0>]},{message_queue_len,1},{messages,[{'EXIT',<0.1947.0>,normal}]
},{links,[<0.1945.0>,<0.1707.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,1598},{stack_size,29},{reductions,158}],[]]}],#{chars_limit => unlimited,depth => 100,single_line => true}],[{file,"proc_lib.erl"},{line,774}]}]}

Stop listener http:dashboard on :18083 successfully.

Listener ssl:default on 0.0.0.0:8883 stopped.

Listener tcp:default on 0.0.0.0:1883 stopped.

Listener ws:default on 0.0.0.0:8083 stopped.

Listener wss:default on 0.0.0.0:8084 stopped.

[os_mon] memory supervisor port (memsup): Erlang has closed

[os_mon] cpu supervisor port (cpu_sup): Erlang has closed

{"Kernel pid terminated",application_controller,"{application_start_failure,emqx_machine,{{shutdown,{failed_to_start_child,emqx_machine_boot,{'EXIT',{{failed_to_start_app,emqx_plugins,{emqx_plugins,{bad_return,{{emqx_plugins_app,start,[normal,[]]},{'EXIT',{#{errors => [{\"emqx_plugin_template-5.0.0\",#{error => \"bad_info_file\",path => \"plugins/emqx_plugin_template-5.0.0/release.json\",return => {enoent,\"/opt/emqx/plugins/emqx_plugin_template-5.0.0/release.json\"}}}],function => fun emqx_plugins:do_ensure_started/1},[{emqx_plugins,for_plugins,1,[{file,\"emqx_plugins.erl\"},{line,680}]},{emqx_plugins_app,start,2,[{file,\"emqx_plugins_app.erl\"},{line,28}]},{application_master,start_it_old,4,[{file,\"application_master.erl\"},{line,293}]}]}}}}}},[{emqx_machine_boot,start_one_app,1,[{file,\"emqx_machine_boot.erl\"},{line,89}]},{lists,foreach,2,[{file,\"lists.erl\"},{line,1342}]},{emqx_machine_boot,post_boot,0,[{file,\"emqx_machine_boot.erl\"},{line,38}]},{supervisor,do_start_child_i,3,[{file,\"supervisor.erl\"},{line,414}]},{supervisor,do_start_child,2,[{file,\"supervisor.erl\"},{line,400}]},{supervisor,'-start_children/2-fun-0-',3,[{file,\"supervisor.erl\"},{line,384}]},{supervisor,children_map,4,[{file,\"supervisor.erl\"},{line,1250}]},{supervisor,init_children,2,[{file,\"supervisor.erl\"},{line,350}]},{gen_server,init_it,2,[{file,\"gen_server.erl\"},{line,423}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,226}]}]}}}},{emqx_machine_app,start,[normal,[]]}}}"}

Kernel pid terminated (application_controller) ({application_start_failure,emqx_machine,{{shutdown,{failed_to_start_child,emqx_machine_boot,{'EXIT',{{failed_to_start_app,emqx_plugins,{emqx_plugins,{bad_return,{{emqx_plugins_app,start,[normal,[]]},{'EXIT',{#{errors => [{"emqx_plugin_template-5.0.0",#{error => "bad_info_file",path => "plugins/emqx_plugin_template-5.0.0/release.json",return => {enoent,"/opt/emqx/plugins/emqx_plugin_template-5.0.0/release.json"}}}],function => fun emqx_plugins:do_ensure_started/1},[{emqx_plugins,for_plugins,1,[{file,"emqx_plugins.erl"},{line,680}]},{emqx_plugins_app,start,2,[{file,"emqx_plugins_app.erl"},{line,28}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,293}]}]}}}}}},[{emqx_machine_boot,start_one_app,1,[{file,"emqx_machine_boot.erl"},{line,89}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{emqx_machine_boot,post_boot,0,[{file,"emqx_machine_boot.erl"},{line,38}]},{supervisor,do_start_child_i,3,[{file,"supervisor.erl"},{line,414}]},{super

Crash dump is being written to: log/erl_crash.dump...done

新增一个Core节点,会出现以下报错

Listener ssl:default on 0.0.0.0:8883 started.

Listener tcp:default on 0.0.0.0:1883 started.

Listener ws:default on 0.0.0.0:8083 started.

Listener wss:default on 0.0.0.0:8084 started.

Listener http:dashboard on :18083 started.

EMQX 5.0.16-g79fd0748 is running now!

Stop listener http:dashboard on :18083 successfully.

Listener ssl:default on 0.0.0.0:8883 stopped.

Listener tcp:default on 0.0.0.0:1883 stopped.

Listener ws:default on 0.0.0.0:8083 stopped.

Listener wss:default on 0.0.0.0:8084 stopped.

2023-02-07T15:29:30.119421+08:00 [error] Mria(Membership): Unexpected cast: {pong,false}

2023-02-07T15:29:30.119532+08:00 [error] Mria(Membership): Unexpected cast: {pong,false}

Listener ssl:default on 0.0.0.0:8883 started.

Listener tcp:default on 0.0.0.0:1883 started.

Listener ws:default on 0.0.0.0:8083 started.

Listener wss:default on 0.0.0.0:8084 started.

Listener http:dashboard on :18083 started.

2023-02-07T15:29:30.224427+08:00 [error] REPORT_CB/2 CRASH: [{mfa,["proc_lib",":","crash_report","/4"]},{line,525},{label,{proc_lib,crash}},{report,[[{initial_call,{application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}},{pid,<0.4279.0>},{registered_name,[]},{error_info,{exit,{bad_return,{{emqx_plugins_app,start,[normal,[]]},{'EXIT',{#{errors => [{"emqx_plugin_template-5.0.0",#{error => "bad_info_file",path => "plugins/emqx_plugin_template-5.0.0/release.json",return => {enoent,"/opt/emqx/plugins/emqx_plugin_template-5.0.0/release.json"}}}],function => fun emqx_plugins:do_ensure_started/1},[{emqx_plugins,for_plugins,1,[{file,"emqx_plugins.erl"},{line,680}]},{emqx_plugins_app,start,2,[{file,"emqx_plugins_app.erl"},{line,28}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,293}]}]}}}},[{application_master,init,4,[{file,"application_master.erl"},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}},{ancestors,[<0.4278.0>]},{message_queue_len,1},{messages,[{'EXIT',<0.4280.0>,normal}]},{links,[<0.4278.0>,<0.1707.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,987},{stack_size,29},{reductions,213}],[]]}]; Reason: {error,function_clause,[{proc_lib,report_cb,[[{mfa,["proc_lib",":","crash_report","/4"]},{line,525},{label,{proc_lib,crash}},{report,[[{initial_call,{application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}},{pid,<0.4279.0>},{registered_name,[]},{error_info,{exit,{bad_return,{{emqx_plugins_app,start,[normal,[]]},{'EXIT',{#{errors => [{"emqx_plugin_template-5.0.0",#{error => "bad_info_file",path => "plugins/emqx_plugin_template-5.0.0/release.json",return => {enoent,"/opt/emqx/plugins/emqx_plugin_template-5.0.0/release.json"}}}],function => fun emqx_plugins:do_ensure_started/1},[{emqx_plugins,for_plugins,1,[{file,"emqx_plugins.erl"},{line,680}]},{emqx_plugins_app,start,2,[{file,"emqx_plugins_app.erl"},{line,28}]},{application_master,start_it_old,4,[{file,"appl
ication_master.erl"},{line,293}]}]}}}},[{application_master,init,4,[{file,"application_master.erl"},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}},{ancestors,[<0.4278.0>]},{message_queue_len,1},{messages,[{'EXIT',<0.4280.0>,normal}]},{links,[<0.4278.0>,<0.1707.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,987},{stack_size,29},{reductions,213}],[]]}],#{chars_limit => unlimited,depth => 100,single_line => true}],[{file,"proc_lib.erl"},{line,774}]}]}

2023-02-07T15:29:30.225068+08:00 [critical] msg: failed_to_start_app, mfa: emqx_machine_boot:start_one_app/1, line: 88, app: emqx_plugins, reason: {emqx_plugins,{bad_return,{{emqx_plugins_app,start,[normal,[]]},{'EXIT',{#{errors => [{"emqx_plugin_template-5.0.0",#{error => "bad_info_file",path => "plugins/emqx_plugin_template-5.0.0/release.json",return => {enoent,"/opt/emqx/plugins/emqx_plugin_template-5.0.0/release.json"}}}],function => fun emqx_plugins:do_ensure_started/1},[{emqx_plugins,for_plugins,1,[{file,"emqx_plugins.erl"},{line,680}]},{emqx_plugins_app,start,2,[{file,"emqx_plugins_app.erl"},{line,28}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,293}]}]}}}}}

2023-02-07T15:29:30.225808+08:00 [error] msg: Mria callback crashed, mfa: mria_lib:exec_callback/1, line: 286, callback: start, error: {failed_to_start_app,emqx_plugins,{emqx_plugins,{bad_return,{{emqx_plugins_app,start,[normal,[]]},{'EXIT',{#{errors => [{"emqx_plugin_template-5.0.0",#{error => "bad_info_file",path => "plugins/emqx_plugin_template-5.0.0/release.json",return => {enoent,"/opt/emqx/plugins/emqx_plugin_template-5.0.0/release.json"}}}],function => fun emqx_plugins:do_ensure_started/1},[{emqx_plugins,for_plugins,1,[{file,"emqx_plugins.erl"},{line,680}]},{emqx_plugins_app,start,2,[{file,"emqx_plugins_app.erl"},{line,28}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,293}]}]}}}}}}, stacktrace: [{emqx_machine_boot,start_one_app,1,[{file,"emqx_machine_boot.erl"},{line,89}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{ekka,start,0,[{file,"ekka.erl"},{line,100}]},{mria_lib,exec_callback,1,[{file,"mria_lib.erl"},{line,283}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]

非常感谢,这个问题还在修中.
目前处理方法等集群节点稳定后再上传插件.
暂时不要在插件上传成功后再增加节点,我们会尽快修复哈.

请问5.0.17解决这个问题了吗 我用了5.0.17版本还是有这个问题

还有另一个问题,一个插件装载并启动后,如果卸载,重新装载,会出现这样的错误,必须再卸载一次,再装载一次才正常

Generic server <0.6738.0> terminating. Reason: {{crc32cer_nif_not_loaded,"plugins/emqx_plugin_kafka-0.1/crc32cer-0.1.8/priv/crc32cer_nif"},[{erlang,nif_error,[{crc32cer_nif_not_loaded,"plugins/emqx_plugin_kafka-0.1/crc32cer-0.1.8/priv/crc32cer_nif"}],[{error_info,#{module => erl_erts_errors}}]},{crc32cer,nif,2,[{file,"/home/zz/work/docker-build/plugin/emqx_plugin_kafka_on_client_connect/_build/default/lib/crc32cer/src/crc32cer.erl"},{line,19}]},{kpro_batch,encode_tx,4,[{file,"/home/zz/work/docker-build/plugin/emqx_plugin_kafka_on_client_connect/_build/default/lib/kafka_protocol/src/kpro_batch.erl"},{line,96}]},{kpro_req_lib,produce,5,[{file,"/home/zz/work/docker-build/plugin/emqx_plugin_kafka_on_client_connect/_build/default/lib/kafka_protocol/src/kpro_req_lib.erl"},{line,286}]},{wolff_producer,send_to_kafka,1,[{file,"/home/zz/work/docker-build/plugin/emqx_plugin_kafka_on_client_connect/_build/default/lib/wolff/src/wolff_producer.erl"},{line,389}]},{wolff_producer,handle_info,2,[{file,"/home/zz/work/docker-build/plugin/emqx_plugin_kafka_on_client_connect/_build/default/lib/wolff/src/wolff_producer.erl"},{line,221}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,695}]},{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,771}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}. Last message: {send,no_queued_reply,[#{key => <<"emqx_client_connect">>,ts => 1676624737099,value => <<"{\"clientid\" : \"abc\", \"username\" : \"zz\",\"from\" : \"abc\",\"topic\" : \"\", \"payload\" : \"\", \"qos\" : \"\",  \"node\" : \"emqx@core-emqx-cluster2-0.emqx-cluster2-headless.emqx-test.svc.cluster.local\",\"ts\" : \"1676624737099\" }">>}],#Fun<wolff_producer.0.66661746>}. State: #{call_id_base => 1676624728790944,client_id => <<"emqx_kafka_on_client_connect">>,config => #{ack_timeout => 10000,compression => no_compression,max_batch_bytes => 1000000,max_linger_ms
=> 0,max_send_ahead => 0,name => 'client.connect_1',partitioner => random,reconnect_delay_ms => 2000,required_acks => all_isr},conn => <0.6737.0>,linger_expire_timer => false,partition => 0,pending_acks => #{},produce_api_vsn => 3,reconnect_attempts => 0,reconnect_timer => no_timer,replayq => #{committer => <0.6740.0>,config => #{dir => <<"undefined/emqx@db-emqx-cluster2-0.emqx-cluster2-headless.emqx-test.svc.cluster.local/mqtt-data-to-cassandra/0">>,max_total_bytes => 2000000000,offload => false,seg_bytes => 10485760},head_segno => 1,in_mem => {[],[]},marshaller => fun wolff_producer:queue_item_marshaller/1,max_total_bytes => 2000000000,sizer => fun wolff_producer:queue_item_sizer/1,stats => #{bytes => 0,count => 0},w_cur => #{bytes => 0,count => 0,fd => {file_descriptor,raw_file_io_delayed,#{buffer => #Ref<0.2477287098.3803054109.183430>,delay_size => 65536,owner => <0.6738.0>,pid => <0.6739.0>}},segno => 1}},sent_reqs => {[],[]},sent_reqs_count => 0,topic => <<"mqtt-kafka">>}.

计划是下个版本修复,得5.0.18了。

5.0.18也还是没有解决

不好意思,5.0.18 当时处于即将发布的状态了,没有来得及赶上,需要等到下个版本了。

5.0.19也还是没解决啊

不好意思,这周没安排上,当前还有其它的紧急任务,争取下周哈。
到时修复了,我把PR贴在这里。

Hi, 临时解决方案: 建议您先手动将 plugins 从集群节点copy 到新创建的 replicant 节点上,我们尽快修复后回复您。

谢谢。

另外还有插件卸载的时候,如果有多个节点,因为插件卸载比较慢,总是会出现超时的报错,这块是不是可以超时时间改长一点或干脆直接返回成功

谢谢反馈, 这个问题我们跟进下。

还有另一个问题,一个插件装载并启动后,如果卸载,重新装载,会出现这样的错误,必须再卸载一次,再装载一次才正常

Generic server <0.6738.0> terminating. Reason: {{crc32cer_nif_not_loaded,"plugins/emqx_plugin_kafka-0.1/crc32cer-0.1.8/priv/crc32cer_nif"},[{erlang,nif_error,[{crc32cer_nif_not_loaded,"plugins/emqx_plugin_kafka-0.1/crc32cer-0.1.8/priv/crc32cer_nif"}],[{error_info,#{module => erl_erts_errors}}]},{crc32cer,nif,2,[{file,"/home/zz/work/docker-build/plugin/emqx_plugin_kafka_on_client_connect/_build/default/lib/crc32cer/src/crc32cer.erl"},{line,19}]},{kpro_batch,encode_tx,4,[{file,"/home/zz/work/docker-build/plugin/emqx_plugin_kafka_on_client_connect/_build/default/lib/kafka_protocol/src/kpro_batch.erl"},{line,96}]},{kpro_req_lib,produce,5,[{file,"/home/zz/work/docker-build/plugin/emqx_plugin_kafka_on_client_connect/_build/default/lib/kafka_protocol/src/kpro_req_lib.erl"},{line,286}]},{wolff_producer,send_to_kafka,1,[{file,"/home/zz/work/docker-build/plugin/emqx_plugin_kafka_on_client_connect/_build/default/lib/wolff/src/wolff_producer.erl"},{line,389}]},{wolff_producer,handle_info,2,[{file,"/home/zz/work/docker-build/plugin/emqx_plugin_kafka_on_client_connect/_build/default/lib/wolff/src/wolff_producer.erl"},{line,221}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,695}]},{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,771}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}. Last message: {send,no_queued_reply,[#{key => <<"emqx_client_connect">>,ts => 1676624737099,value => <<"{\"clientid\" : \"abc\", \"username\" : \"zz\",\"from\" : \"abc\",\"topic\" : \"\", \"payload\" : \"\", \"qos\" : \"\",  \"node\" : \"emqx@core-emqx-cluster2-0.emqx-cluster2-headless.emqx-test.svc.cluster.local\",\"ts\" : \"1676624737099\" }">>}],#Fun<wolff_producer.0.66661746>}. State: #{call_id_base => 1676624728790944,client_id => <<"emqx_kafka_on_client_connect">>,config => #{ack_timeout => 10000,compression => no_compression,max_batch_bytes => 1000000,max_linger_ms
=> 0,max_send_ahead => 0,name => 'client.connect_1',partitioner => random,reconnect_delay_ms => 2000,required_acks => all_isr},conn => <0.6737.0>,linger_expire_timer => false,partition => 0,pending_acks => #{},produce_api_vsn => 3,reconnect_attempts => 0,reconnect_timer => no_timer,replayq => #{committer => <0.6740.0>,config => #{dir => <<"undefined/emqx@db-emqx-cluster2-0.emqx-cluster2-headless.emqx-test.svc.cluster.local/mqtt-data-to-cassandra/0">>,max_total_bytes => 2000000000,offload => false,seg_bytes => 10485760},head_segno => 1,in_mem => {[],[]},marshaller => fun wolff_producer:queue_item_marshaller/1,max_total_bytes => 2000000000,sizer => fun wolff_producer:queue_item_sizer/1,stats => #{bytes => 0,count => 0},w_cur => #{bytes => 0,count => 0,fd => {file_descriptor,raw_file_io_delayed,#{buffer => #Ref<0.2477287098.3803054109.183430>,delay_size => 65536,owner => <0.6738.0>,pid => <0.6739.0>}},segno => 1}},sent_reqs => {[],[]},sent_reqs_count => 0,topic => <<"mqtt-kafka">>}.

这个问题也麻烦看下

大概什么时候能修,是否可以明确的说明在哪个版本修复

确定具体版本后第一时间来回复您。

你可以关注这个PR,他已经在review状态了,合并就能后发的版本有了。

老哥 ,你的 crc32 问题解决了没

更新最新的版本好像没有这个问题了但是有新问题 插件名前缀不能相同

我还是遇到了这个问题:v5.0.21

你这个有可能环境不一样的问题,需要确保你编译的 qx_plugin_plusar 的机器和运行 emqx 的机器 CPU架构、操作系统版本之类的一样才行