订阅通配主题时 Error: Connection closed

错误报告

2022-11-08T11:07:12.020301+08:00 [error] supervisor: ‘esockd_connection_sup - <0.1830.0>’, errorContext: connection_crashed, reason: {{badmatch,{error,{bad_type,{emqx_trie,{<<“testtopic/#”>>,1},1}}}},[{emqx_session,subscribe,4,[{file,“emqx_session.erl”},{line,248}]},{emqx_channel,do_subscribe,3,[{file,“emqx_channel.erl”},{line,659}]},{emqx_channel,process_subscribe,4,[{file,“emqx_channel.erl”},{line,644}]},{emqx_channel,handle_in,2,[{file,“emqx_channel.erl”},{line,636}]},{emqx_connection,with_channel,3,[{file,“emqx_connection.erl”},{line,659}]},{emqx_connection,process_msg,2,[{file,“emqx_connection.erl”},{line,364}]},{emqx_connection,process_msg,2,[{file,“emqx_connection.erl”},{line,370}]},{emqx_connection,handle_recv,3,[{file,“emqx_connection.erl”},{line,328}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,236}]}]}, offender: [{pid,<0.29925.313>},{name,connection},{mfargs,{emqx_connection,start_link,[[{deflate_options,[]},{max_conn_rate,1000},{active_n,100},{zone,external},{proxy_address_header,<<>>},{proxy_port_header,<<>>},{supported_subprotocols,[]}]]}}]


环境

  • EMQX 版本:
    sysdescr : EMQ X Broker
    version : 4.3.5

  • 操作系统版本:linux

重现此问题的步骤

订阅主题 testtopic/#时提示
Error: Connection closed

你好,请问在此之前你有对 EMQX 做过什么操作吗?例如进行热升级等?

没有做过

这个部署的时候还需要自己改什么配置吗

你是一个全新的部署吗?

这个时间比较旧了, 不记得了 , 如果不是全新的部署会有什么影响吗? 怎么解决呢?

你可能安装了新版本的 emqx,但没有清除旧的数据。
解决办法是:删掉 data/mnesia/* 然后重启 emqx。

好的 解决了 谢谢