emqx版本:4.3.6
系统:ubuntu 20.04
背景:11-20 23:20分钟左右出现了后端无法接收设备上报的数据,发现大量设备无法操作的情况,后台发现设备连接正常,设备连接使用的tls端口,但服务端出现了连接失败的情况,服务端使用tcp连接,服务端大概20个客户端,
emqx的日志报错如下
2023-11-20T23:44:24.072508+08:00 [error] device_660831453@220.129.16.144:33244 file: emqx_cm.erl, line: 304, mfa: {emqx_cm,do_discard_session,2}, msg: failed_to_discard_session, pid: <0.5662.7162>, reason: {timeout,{gen_server,call,[<0.30205.6741>,discard,15000]}}, stacktrace: [{gen_server,call,3,[{file,"gen_server.erl"},{line,246}]},{emqx_cm,do_discard_session,2,[{file,"emqx_cm.erl"},{line,289}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{emqx_cm,'-open_session/3-fun-0-',5,[{file,"emqx_cm.erl"},{line,217}]},{emqx_cm_locker,trans,3,[{file,"emqx_cm_locker.erl"},{line,46}]},{emqx_channel,process_connect,2,[{file,"emqx_channel.erl"},{line,492}]},{emqx_connection,with_channel,3,[{file,"emqx_connection.erl"},{line,659}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,364}]},{emqx_connection,process_msg,2,[{file,"emqx_connection.erl"},{line,370}]},{emqx_connection,handle_recv,3,[{file,"emqx_connection.erl"},{line,328}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,236}]}]