错误日志频繁出现以下错误,是什么原因呢?

环境信息

  • EMQ X 版本:4.3.5
  • 操作系统及版本:
  • 其他

问题描述

错误日志频繁出现以下错误,是什么原因呢?

配置文件及日志

 [error] xx@xx file: emqx_cm.erl, line: 304, mfa: {emqx_cm,do_discard_session,2}, msg: failed_to_discard_session, pid: <0.10732.1844>, reason: {'EXIT',{{shutdown,tcp_closed},{gen_server,call,[<45553.16572.1970>,discard,15000]}}}, stacktrace: [{emqx_cm,rpc_call,3,[{file,"emqx_cm.erl"},{line,380}]},{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}]}]

设备连接被断开了。可能是网络问题,也可能是终端主动断开,需要结合你的业务情况判定

1赞

这个错误是使用了相同的clientid 在重复的登录

1赞