我使用plugin模版创建了一个auth_mysql的插件。在dashboard里启动的时候一切正常,可以正常使用。但是当我配置成跟随pod自启动的时候,会导致pod奔溃,启动不了。
plugins {
states = [
{
name_vsn = “my_emqx_plugin-5.9.0-beta.3”, enable = true
},
{
name_vsn = “test_emqx_plugin-1.0.0”, enable = true
}
]
}
当我把这段代码启动的时候,一切正常工作。 当我配置emqx,这个插件自启动的时候,会导致pod启动失败 2025-04-28T01:14:28.275838+00:00 [debug] msg: ensure_local_table, table: emqx_channel_registry, ‘$span’: {complete,true} 2025-04-28T01:14:28.275954+00:00 [info] msg: starting_rlog_shard, shard: emqx_cm_shard 2025-04-28T01:14:28.276280+00:00 [info] msg: Shard fully up, node: ‘emqx@emqx-core-58556659c5-0.emqx-headless.emqx.svc.cluster.local’, shard: emqx_cm_shard 2025-04-28T01:14:28.276503+00:00 [debug] msg: mria_mnesia_create_table, name: emqx_activated_alarm, options: [{type,ordered_set},{storage,disc_copies},{local_content,true},{record_name,activated_alarm},{attributes,[name,details,message,activate_at]}] 2025-04-28T01:14:28.277016+00:00 [debug] msg: ensure_local_table, table: emqx_activated_alarm, ‘$span’: start 2025-04-28T01:14:28.277115+00:00 [debug] msg: ensure_local_table, table: emqx_activated_alarm, ‘$span’: {complete,true} 2025-04-28T01:14:28.277197+00:00 [debug] msg: mria_mnesia_create_table, name: emqx_deactivated_alarm, options: [{type,ordered_set},{storage,disc_copies},{local_content,true},{record_name,deactivated_alarm},{attributes,[activate_at,name,details,message,deactivate_at]}] 2025-04-28T01:14:28.277639+00:00 [debug] msg: ensure_local_table, table: emqx_deactivated_alarm, ‘$span’: start 2025-04-28T01:14:28.277711+00:00 [debug] msg: ensure_local_table, table: emqx_deactivated_alarm, ‘$span’: {complete,true} Listener tcp:default is NOT started due to: disabled. Listener ssl:default on :8883 started. Listener ws:default is NOT started due to: disabled. Listener wss:default is NOT started due to: disabled. 2025-04-28T01:14:28.281584+00:00 [debug] msg: started_apps, apps: [os_mon,hocon,lc,emqx] 2025-04-28T01:14:28.281677+00:00 [debug] msg: starting_app, app: emqx_plugins 2025-04-28T01:14:28.298627+00:00 [debug] msg: started_plugin_apps, apps: [map_sets,my_emqx_plugin] 插件正在加载: test_emqx_plugin size_object: matchstate term not allowed[os_mon] cpu supervisor port (cpu_sup): Erlang has closed [os_mon] memory supervisor port (memsup): Erlang has closed