解答一下日志报错问题

环境信息

  • EMQX 版本:4.4.2

  • 操作系统及版本:CentOS 8.2.2004 x86_64

  • 其它:docker安装

问题描述

解答一下日志报错问题

配置文件及日志

报错信息一:
supervisor: ‘esockd_connection_sup - \u003c0.1909.0\u003e’, errorContext: connection_shutdown, reason: {ssl_error,{tls_alert,{unexpected_message,“TLS server: In state hello at tls_record.erl:558 generated SERVER ALERT: Fatal - Unexpected Message\n {unsupported_record_type,0}”}}}, offender: [{pid,\u003c0.21535.38\u003e},{name,connection},{mfargs,{emqx_connection,start_link,[[{deflate_options,[]},{max_conn_rate,500},{active_n,100},{zone,external},{proxy_address_header,\u003c\u003c\u003e\u003e},{proxy_port_header,\u003c\u003c\u003e\u003e},{supported_subprotocols,[]}]]}}]\r\n",“stream”:“stdout”,“time”:“2022-07-06T22:03:29.396219189Z”}

报错信息二:
图片

报错信息三:
[MQTT] , Parse failed for function_clause, [{emqx_frame,parse_packet,[{mqtt_packet_header,0,false,0,false},\u003c\u003c254,83,77,66,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,0,4,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,…\u003e\u003e,#{max_size =\u003e 1048576,strict_mode =\u003e false,version =\u003e 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:\u003c\u003c0,110,254,83,77,66,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,0,4,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,…\u003e\u003e\r\n",“stream”:“stdout”,“time”:“2022-07-06T22:04:00.048383374Z”}

错误1:
TLS 握手失败,看下证书匹配的情况
错误2:
设备的流程不对,有消息包流程不对,可以追踪一下设备,看下这个文档,追踪设备章节
错误3:
解包失败,设备的消息不对,发送了非MQTT报文