EMQ 问答社区

EMQ 日志报错

环境信息

  • EMQ X 版本:EMQ X Broker 4.3.1 最新版本
  • 操作系统及版本:Linux test 3.10.0-957.el7.x86_64 GNU/Linux
  • 其他

问题描述

客户端发送信息,broker可以收到消息,但是服务器连接频繁掉线。客户端发送的数据量过大时,可能连接不上broker。测试环境EMQ 4.3.1 出现此问题,开发环境 EMQ4.2.11是正常的。希望得到专业的回答,不只是更换EMQ版本。日志如下:

配置文件及日志

2021-06-24T15:46:16.830603+08:00 [error] iot12123@192.168.0.105:56623 [MQTT] , Parse failed for function_clause, [{emqx_frame,split,[1462,<<48,156,156,6,0,13,105,111,116,47,112,117,98,...>>],[{file,"emqx_frame.erl"},{line,130}]},{emqx_frame,parse,2,[{file,"emqx_frame.erl"},{line,125}]},{emqx_connection,parse_incoming,3,[{file,"emqx_connection.erl"},{line,583}]},{emqx_connection,handle_msg,2,[{file,"emqx_connection.erl"},{line,576}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,325}]},{emqx_connection,handle_recv,3,[{file,"emqx_connection.erl"},{line,290}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,236}]}], Frame data:<<48,156,156,6,0,13,105,111,116,47,112,117,98,47,84,78,48,48,54,...>>
2021-06-24T15:46:16.837906+08:00 [info] iot12123@192.168.0.105:56623 line: 478, mfa: {emqx_connection,terminate,2}, msg: terminate, pid: <0.13483.0>, reason: {shutdown,function_clause}
2021-06-24T15:46:23.148433+08:00 [info] iot12123@192.168.0.105:61881 PUBLISH to iot/pub/TN006: <<"{\"type\":\"desc\",\"sn\":\"TN004\",\"info\":{\"C7_D10\":[{\"id\":\"_io_status\",\"desc\":\"设"...>>
2021-06-24T15:46:23.233832+08:00 [info] iot12123@192.168.0.105:61881 PUBLISH to iot/pub/TN006: <<"{\"type\":\"real\",\"clientid\":\"iot12123\",\"sn\":\"TN004\",\"time\":\"2021-06-24 15:46:2"...>>
2021-06-24T15:47:13.212891+08:00 [info] iot12123@192.168.0.105:61881 PUBLISH to iot/pub/TN006: <<"{\"type\":\"real\",\"clientid\":\"iot12123\",\"sn\":\"TN004\",\"time\":\"2021-06-24 15:47:1"...>>
2021-06-24T15:48:53.124300+08:00 [error] iot12123@192.168.0.105:61881 [MQTT] , Parse failed for function_clause, [{emqx_frame,split,[1462,<<48,243,155,6,0,13,105,111,116,47,112,117,98,...>>],[{file,"emqx_frame.erl"},{line,130}]},{emqx_frame,parse,2,[{file,"emqx_frame.erl"},{line,125}]},{emqx_connection,parse_incoming,3,[{file,"emqx_connection.erl"},{line,583}]},{emqx_connection,handle_msg,2,[{file,"emqx_connection.erl"},{line,576}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,325}]},{emqx_connection,handle_recv,3,[{file,"emqx_connection.erl"},{line,290}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,236}]}], Frame data:<<48,243,155,6,0,13,105,111,116,47,112,117,98,47,84,78,48,48,54,...>>
2021-06-24T15:48:53.131518+08:00 [info] iot12123@192.168.0.105:61881 line: 478, mfa: {emqx_connection,terminate,2}, msg: terminate, pid: <0.13659.0>, reason: {shutdown,function_clause}

感谢你的使用,你上述的错误LOG是一个已知BUG,已经在4.3.2修复
如下链接 更新日志和修复的PR连接

好的,多谢