Menu

#6757 eqmx 日志报错

open
nobody
2022-01-17
2022-01-14
Anonymous
No

Originally created by: liangqianwuer
Originally owned by: HJianBo

运行emqx 日志报错了

2022-01-11 14:28:53.568 [error] 203.168.4.213:23654 [MQTT]
Parse failed for function_clause
[{emqx_frame,parse_packet,[{mqtt_packet_header,15,true,3,true},<<48,0,4,77,81,84,84,4,194,0,60,0,12,50,48,50>>,#{max_size => 1048576,strict_mode => false,version => 4}],[{file,"emqx_frame.erl"},{line,166}]},{emqx_frame,parse_frame,4,[{file,"emqx_frame.erl"},{line,144}]},{emqx_connection,parse_incoming,3,[{file,"emqx_connection.erl"},{line,522}]},{emqx_connection,handle_msg,2,[{file,"emqx_connection.erl"},{line,515}]},{emqx_connection,process_msg,3,[{file,"emqx_connection.erl"},{line,293}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,259}]}]
Frame data:<<255,16,48,0,4,77,81,84,84,4,194,0,60,0,12,50,48,50,50,48,49,48,51,48,49,48,51,0,8,118,97,49,55,50,55,115,105,0,12,121,116,122,106,54,118,117,57,98,54,51,49>>

Your environment

For EMQ X 4.3 or newer, please provide the log archive generated by node_dump tool

Otherwise please provide below info:
- EMQ X version (4.0):
- If cluster (e.g. 3 X 4Core16GB):
- Hardware configuration (e.g. lscpu):
- OS (winds):
- Kernel (e.g. uname -a):
- Erlang/OTP version (in case you build emqx from source code):
- Others:

LOG File

以下是截取的一部分日志信息
2022-01-11 14:28:53.568 [error] 203.168.4.213:23654 [MQTT]
Parse failed for function_clause
[{emqx_frame,parse_packet,[{mqtt_packet_header,15,true,3,true},<<48,0,4,77,81,84,84,4,194,0,60,0,12,50,48,50>>,#{max_size => 1048576,strict_mode => false,version => 4}],[{file,"emqx_frame.erl"},{line,166}]},{emqx_frame,parse_frame,4,[{file,"emqx_frame.erl"},{line,144}]},{emqx_connection,parse_incoming,3,[{file,"emqx_connection.erl"},{line,522}]},{emqx_connection,handle_msg,2,[{file,"emqx_connection.erl"},{line,515}]},{emqx_connection,process_msg,3,[{file,"emqx_connection.erl"},{line,293}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,259}]}]
Frame data:<<255,16,48,0,4,77,81,84,84,4,194,0,60,0,12,50,48,50,50,48,49,48,51,48,49,48,51,0,8,118,97,49,55,50,55,115,105,0,12,121,116,122,106,54,118,117,57,98,54,51,49>>

Discussion

  • Anonymous

    Anonymous - 2022-01-17

    Originally posted by: HJianBo

    This seems to be a failure to parse the MQTT protocol. Can you reproduce it consistently? Or provide a tcpdump of the network packet capture file.

     
  • Anonymous

    Anonymous - 2022-01-17
     

Log in to post a comment.

MongoDB Logo MongoDB