5.0.20 升级到 5.8.4失败。
日志:
WARNING: Default (insecure) Erlang cookie is in use.
WARNING: Configure node.cookie in /opt/emqx/etc/emqx.conf or override from environment variable EMQX_NODE__COOKIE
WARNING: NOTE: Use the same cookie for all nodes in the cluster.
[error] input-config:
#{‘$hcVal’ =>
[#{‘$hcVal’ =>
#{<<“enable”>> =>
#{‘$hcVal’ => false,
‘$hcMeta’ =>
#{from_env =>
“EMQX_AUTHORIZATION__SOURCES__1__ENABLE”}}}},
#{‘$hcVal’ =>
#{<<“cmd”>> =>
#{‘$hcVal’ => <<“HGETALL mqtt_acl:${username}”>>,
‘$hcMeta’ =>
#{from_env => “EMQX_AUTHORIZATION__SOURCES__2__CMD”}},
<<“password”>> =>
#{‘$hcVal’ => <<>>,
‘$hcMeta’ =>
#{from_env =>
“EMQX_AUTHORIZATION__SOURCES__2__PASSWORD”}},
<<“redis_type”>> =>
#{‘$hcVal’ => <<“single”>>,
‘$hcMeta’ =>
#{from_env =>
“EMQX_AUTHORIZATION__SOURCES__2__REDIS_TYPE”}},
<<“server”>> =>
#{‘$hcVal’ => <<“sunlogin-redis:6379”>>,
‘$hcMeta’ =>
#{from_env =>
“EMQX_AUTHORIZATION__SOURCES__2__SERVER”}},
<<“type”>> =>
#{‘$hcVal’ => <<“redis”>>,
‘$hcMeta’ =>
#{from_env =>
“EMQX_AUTHORIZATION__SOURCES__2__TYPE”}}}}]}
#{reason => failed_to_check_field,path => “authorization”,
exception => {badmap,“missing_type_field”},
field => <<“sources”>>}
escript: exception error: #{reason => failed_to_check_field,path => “authorization”,
exception => {badmap,“missing_type_field”},
field => <<“sources”>>}
in function hocon_tconf:ensure_path/2 (hocon_tconf.erl, line 1189)
in call from hocon_tconf:validation_errs/2 (hocon_tconf.erl, line 1185)
in call from hocon_tconf:map_field/4 (hocon_tconf.erl, line 610)
in call from hocon_tconf:map_one_field_non_hidden/4 (hocon_tconf.erl, line 492)
in call from hocon_tconf:do_map_array/5 (hocon_tconf.erl, line 805)
in call from hocon_tconf:‘-map_field/4-fun-4-’/4 (hocon_tconf.erl, line 626)
in call from hocon_tconf:map_one_field_non_hidden/4 (hocon_tconf.erl, line 492)
in call from hocon_tconf:map_fields_cont/4 (hocon_tconf.erl, line 431)
ERROR: call_hocon_failed: -v -t 2025.04.17.09.32.45 -s emqx_conf_schema -c /opt/emqx/etc/base.hocon -c /opt/emqx/data/configs/cluster.hocon -c /opt/emqx/etc/emqx.conf -d /opt/emqx/data/configs generate
请问下这是什么问题造成的?