环境
- EMQX 版本:5.0.6
- 操作系统版本:centos
重现此问题的步骤
用mqttx无法连接上emqx服务,服务器内正常启动,端口也正常启动
2023-12-24T11:53:55.213846+08:00 [error] at_state: <<“clean”>>, input_bytes: <<1,194,0,0,0,4,0,0,182,1,0,0,83,81,76,68,66,50,82,65,0,1,0,0,4,1,1,0,5,0,29,0,136,0,0,0,1,0,0,128,0,0,0,1,9,0,0,0,1,0,0,64,0,0,0,1,9,0,0,0,1,0,0,64,0,0,0,1,8,0,0,0,4,0,0,64,0,0,0,1,4,0,0,0,1,0,0,64,0,0,0,64,4,0,0,0,4,0,0,…>>, line: 772, mfa: emqx_connection:parse_incoming/2, parsed_packets: , peername: 223.113.128.222:53390, reason: function_clause, stacktrace: [{emqx_frame,parse_packet,[{mqtt_packet_header,0,false,0,true},<<0,0,4,0,0,182,1,0,0,83,81,76,68,66,50,82,65,0,1,0,0,4,1,1,0,5,0,29,0,136,0,0,0,1,0,0,128,0,0,0,1,9,0,0,0,1,0,0,64,0,0,0,1,9,0,0,0,1,0,0,64,0,0,0,1,8>>,#{max_size => 1048576,strict_mode => false,version => 4}],[{file,“emqx_frame.erl”},{line,258}]},{emqx_frame,parse_frame,4,[{file,“emqx_frame.erl”},{line,231}]},{emqx_connection,parse_incoming,3,[{file,“emqx_connection.erl”},{line,750}]},{emqx_connection,handle_msg,2,[{file,“emqx_connection.erl”},{line,729}]},{emqx_connection,process_msg,2,[{file,“emqx_connection.erl”},{line,466}]},{emqx_connection,handle_recv,3,[{file,“emqx_connection.erl”},{line,428}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,236}]}]
2023-12-24T11:53:57.407906+08:00 [error] at_state: <<“clean”>>, input_bytes: <<0,3,0,1,0,0,0,0,0,0,0,2,0,0,0,0,15,0>>, line: 772, mfa: emqx_connection:parse_incoming/2, parsed_packets: , peername: 223.113.128.222:55966, reason: function_clause, stacktrace: [{emqx_frame,parse_packet,[{mqtt_packet_header,0,false,0,false},<<0,1,0>>,#{max_size => 1048576,strict_mode => false,version => 4}],[{file,“emqx_frame.erl”},{line,258}]},{emqx_frame,parse_frame,4,[{file,“emqx_frame.erl”},{line,231}]},{emqx_connection,parse_incoming,3,[{file,“emqx_connection.erl”},{line,750}]},{emqx_connection,handle_msg,2,[{file,“emqx_connection.erl”},{line,729}]},{emqx_connection,process_msg,2,[{file,“emqx_connection.erl”},{line,466}]},{emqx_connection,handle_recv,3,[{file,“emqx_connection.erl”},{line,428}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,236}]}]
2023-12-24T11:54:29.066373+08:00 [error] clientid: nmap, line: 145, mfa: emqx_authn_utils:with_successful_render/2, msg: placeholder_interpolation_failed, peername: 223.113.128.222:35706, placeholder: <<“username”>>, provider: emqx_authn_mysql, tag: AUTHN
2023-12-29T22:53:00.447443+08:00 [warning] line: 405, message: <<“88.95% mem usage”>>, mfa: emqx_alarm:do_actions/3, msg: alarm_is_activated, name: high_system_memory_usage