设备连接eqmx 老是断开

环境

  • EMQX 版本:4.7
  • 操作系统版本:centoes 7

抓包


#####日志
2023-07-31T10:05:51.431345+08:00 [error] 29718181-95c0000e@116.7.169.89:9303 [Channel] Unexpected frame error: function_clause
2023-07-31T10:05:51.431416+08:00 [error] 29718181-95c0000e@116.7.169.89:9303 [MQTT] , Parse failed for function_clause, [{emqx_frame,parse_packet,[{mqtt_packet_header,4,true,0,true},<<“b1QkH9azm0zw9KzCfw/auepwSvNHKhnOxeIPD1wN0erLGP+msbj+QNP/tCxfJhu0lHYhWAP5gVoze”>>,#{max_size => 1048576,strict_mode => false,version => 4}],[{file,“emqx_frame.erl”},{line,224}]},{emqx_frame,parse_frame,4,[{file,“emqx_frame.erl”},{line,201}]},{emqx_connection,parse_incoming,3,[{file,“emqx_connection.erl”},{line,655}]},{emqx_connection,handle_msg,2,[{file,“emqx_connection.erl”},{line,648}]},{emqx_connection,process_msg,2,[{file,“emqx_connection.erl”},{line,394}]},{emqx_connection,handle_recv,3,[{file,“emqx_connection.erl”},{line,358}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,236}]}], Frame data:<<“IMb1QkH9azm0zw9KzCfw/auepwSvNHKhnOxeIPD1wN0erLGP+msbj+QNP/tCxfJhu0lHYhWAP5gVozeEfClw5Z9IdMnOEn4/lTT4J8KeUwhS9tnPAKuGA/OjlAqxzxPjbNFknGDIo/mavppl1K4WMQuxOAFuYyf/AEKs/wD4V9p06lF8RXsS9MNCv+NVpPhrJCQ1t4uDsDkF4CuPyalyhY2ZtOvrcMZrWRNp5OMj8xVZo5OhjYf8BNUF8BeJZHBg8WwH0Uxtg/8Aj1TnQPiBpbf6NqNndDHRUx/PNHKFicccdxS1RkPxKjYmXTbe4Xr8vT+VRy+JvEcODceDopWUc4DDP45/pS5QNHI7mlBHSuem8X3SMXvPC81sp4xE5IH5igeP9DiVRcaZ”…>>
2023-07-31T10:05:51.431672+08:00 [error] 29718181-95c0000e@116.7.169.89:9303 [Channel] Unexpected frame error: function_clause
2023-07-31T10:05:51.431727+08:00 [error] 29718181-95c0000e@116.7.169.89:9303 [MQTT] , Parse failed for function_clause, [{emqx_frame,parse_packet,[{mqtt_packet_header,7,false,1,false},<<“q6ddlTiEHHo6n+teSLeX8efKvXUfTP9aeNS1oNldUbHoUP+NFgPV/sV0OsD/lR9luO8Mn/AHya8uTWdfXpqIY”>>,#{max_size => 1048576,strict_mode => false,version => 4}],[{file,“emqx_frame.erl”},{line,224}]},{emqx_frame,parse_frame,4,[{file,“emqx_frame.erl”},{line,201}]},{emqx_connection,parse_incoming,3,[{file,“emqx_connection.erl”},{line,655}]},{emqx_connection,handle_msg,2,[{file,“emqx_connection.erl”},{line,648}]},{emqx_connection,process_msg,2,[{file,“emqx_connection.erl”},{line,394}]},{emqx_connection,handle_recv,3,[{file,“emqx_connection.erl”},{line,358}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,236}]}], Frame data:<<“rUq6ddlTiEHHo6n+teSLeX8efKvXUfTP9aeNS1oNldUbHoUP+NFgPV/sV0OsD/lR9luO8Mn/AHya8uTWdfXpqIYehU/41fh8X+IYBxcoT9KAPQPLdRyjD6igEVwy+OfEKt800bj/AHami+Ieto3zWcDj3oA7UGnrg1yS/Eu/HEumWw9cZqRfiSqkebpSMP8AYYigDqwBuwDUrRsjYcYP1rll+I+mHro8i+/m/wD1qlHxD0Iti4gnh9cMG/pQB0oTuakVR34rn08e+FGP/H1OPqoq1D4x8Lz9NR2f72BQM20VSwDNgetPEa7m2SgAc8iqMOs6G7fu9WifPYtV2C5sZWPlXcb57BhQAp8sgZnTNKsaE5EykVMFhPRkNP8ALQj7ooAj8rjKsD+N”…>>
2023-07-31T10:05:51.431949+08:00 [error] 29718181-95c0000e@116.7.169.89:9303 [Channel] Unexpected frame error: function_clause
2023-07-31T10:05:51.432002+08:00 [error] 29718181-95c0000e@116.7.169.89:9303 [MQTT] , Parse failed for function_clause, [{emqx_frame,parse_packet,[{mqtt_packet_header,7,false,1,false},<<“V4nxLo11j1QKw/Q1X8+QcvY3i84INu3H6V6WJG+tHHdV/Ki7Cx5sL+zjmjE5miRjhma3k+Uf8AfNT3V1pSzItnqU”>>,#{max_size => 1048576,strict_mode => false,version => 4}],[{file,“emqx_frame.erl”},{line,224}]},{emqx_frame,parse_frame,4,[{file,“emqx_frame.erl”},{line,201}]},{emqx_connection,parse_incoming,3,[{file,“emqx_connection.erl”},{line,655}]},{emqx_connection,handle_msg,2,[{file,“emqx_connection.erl”},{line,648}]},{emqx_connection,process_msg,2,[{file,“emqx_connection.erl”},{line,394}]},{emqx_connection,handle_recv,3,[{file,“emqx_connection.erl”},{line,358}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,236}]}], Frame data:<<“rXV4nxLo11j1QKw/Q1X8+QcvY3i84INu3H6V6WJG+tHHdV/Ki7Cx5sL+zjmjE5miRjhma3k+Uf8AfNT3V1pSzItnqUcykc5BUj8wK794YJVKSwRsD6rVWTRtKm4ksIj+GKdwOIDRnkSKc+jU8c8ZzXTt4Q0Jjn7Kw+jmom8FaQGLQtPE56HfkD8KLhYwFd0yVJU+oqJ8shVjkE5Oe9bjeCVwVi1idcnPMYNZXiTSJvDukRXQ1ETu1wkQ3xYzuOMcGi6FYWOcqhUjr09qQyHGMnFaEvhbVlYGK4tWXuGQg/zqq2i60j4NmjqO6uf8KNBkBOadE3luGzx6VHJFfxSFJNLuAR3XBFRCc877eeMj+8tMRqC5QLktinNJHIhV8EVkC+tsNul27OTu”…>>
2023-07-31T10:05:51.432159+08:00 [error] 29718181-95c0000e@116.7.169.89:9303 [Channel] Unexpected frame error: function_clause
2023-07-31T10:05:51.432191+08:00 [error] 29718181-95c0000e@116.7.169.89:9303 [MQTT] , Parse failed for malformed_utf8_string, [{emqx_frame,parse_utf8_string,2,[{file,“emqx_frame.erl”},{line,513}]},{emqx_frame,parse_packet,3,[{file,“emqx_frame.erl”},{line,268}]},{emqx_frame,parse_frame,4,[{file,“emqx_frame.erl”},{line,201}]},{emqx_connection,parse_incoming,3,[{file,“emqx_connection.erl”},{line,655}]},{emqx_connection,handle_msg,2,[{file,“emqx_connection.erl”},{line,648}]},{emqx_connection,process_msg,2,[{file,“emqx_connection.erl”},{line,394}]},{emqx_connection,handle_recv,3,[{file,“emqx_connection.erl”},{line,358}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,236}]}], Frame data:<<“6xtt0st1kHysRgDq1U4bUxammD/qwZMV0Ys2EiIAct8xOOB3ouBky6a52yupGOgzwazLyDy5umM8AV2j2oS2fepO8Yjb3rl9cK2wjypLFsKPWi4w8NaVLrF1c+SwYwuEKenGSa29RsLW2061lEsbTThjtBztx0q18N7CextdTuJoysksbMfYnoKr3mnTRQ2cUi732M5I7ZNK4HJzxO0zyHcVzwT0qFlrUNpKRJvBXaeRjNZ8iFWwQaYiE9Kbgheacw4pCPl5pgRjJqQDK0zHNSpyKAGxgg1YkVBCGALNjJGKbbx+ZcbB2XJqwEwSD0pAVNwiRyV5bknFIyNhcoyhhkEgipb5FSRgvIz1qWW+vLy1twkKrDAAjMB70DKLdcUq9eRQy4elAxTE”…>>
2023-07-31T10:05:51.432344+08:00 [error] 29718181-95c0000e@116.7.169.89:9303 [Channel] Unexpected frame error: malformed_utf8_string

emqx 还没有 4.7 的版本,请确认下具体的版本。

从日志上来看应该是解析 MQTT 报文失败了,而且显然这种不是一个正确的 MQTT 报文

IMb1QkH9azm0zw9KzCfw/auepwSvNHKhnOxeIPD1wN0erLGP+msbj+QNP/tCxfJhu0lHYhWAP5gVozeEfClw5Z9IdMnOEn4/lTT4J8KeUwhS9tnPAKuGA/OjlAqxzxPjbNFknGDIo/mavppl1K4WMQuxOAFuYyf/AEKs/wD4V9p06lF8RXsS9MNCv+NVpPhrJCQ1t4uDsDkF4CuPyalyhY2ZtOvrcMZrWRNp5OMj8xVZo5OhjYf8BNUF8BeJZHBg8WwH0Uxtg/8Aj1TnQPiBpbf6NqNndDHRUx/PNHKFicccdxS1RkPxKjYmXTbe4Xr8vT+VRy+JvEcODceDopWUc4DDP45/pS5QNHI7mlBHSuem8X3SMXvPC81sp4xE5IH5igeP9DiVRcaZ

是4.47版本

4.4.7?