突然无法连接,服务器内服务正常运行

环境

  • 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

这个报错是 MQTT 端口收到的消息格式不对,可能和你反馈的问题无关,建议再看看有没有其他日志,或则再检查下网络看看

crash.dump

emqx.log.1

emqx.log.2

emqx.log.3

emqx.log.4

emqx.log.5

emqx.log.idx

emqx.log.siz

erlang.log.1

run_erl.log

这几个日志我全看了,没有收到明显的提示问题

2022-10-11T16:30:53.575677+08:00 [error] 175.10.53.247:37332 Connection rejected due to the license expiration

2022-10-11T16:30:54.629044+08:00 [error] 175.10.53.247:37334 Connection rejected due to the license expiration

2022-10-11T16:30:55.695508+08:00 [error] 175.10.53.247:37336 Connection rejected due to the license expiration

2022-10-11T16:30:56.771830+08:00 [error] 175.10.53.247:37338 Connection rejected due to the license expiration

2022-10-11T16:30:57.861594+08:00 [error] 175.10.53.247:37340 Connection rejected due to the license expiration

2022-10-11T16:30:58.915815+08:00 [error] 175.10.53.247:37342 Connection rejected due to the license expiration

2022-10-11T16:30:59.983379+08:00 [error] 175.10.53.247:37344 Connection rejected due to the license expiration

2022-10-11T16:31:01.054375+08:00 [error] 175.10.53.247:37346 Connection rejected due to the license expiration

2022-10-11T16:31:02.114346+08:00 [error] 175.10.53.247:37348 Connection rejected due to the license expiration

2022-10-11T16:31:03.185838+08:00 [error] 175.10.53.247:37350 Connection rejected due to the license expiration

有这个,但是时间上又不对

看起来是这个原因,你用的是企业版,然后客户端数量超过了连接数限制了

应该不是这个原因,还有什么办法查原因吗?