环境
- EMQX 版本:5.10.0
- 操作系统版本:opencloudos
实际行为
2025-09-26T00:44:35.259164+08:00 [error] clientid: ClientId_local20+1758769295046, msg: session_stepdown_request_exception, peername: 127.0.0.1:35320, username: xxx, error: exit, reason: calling_self, stacktrace: [{gen_server,call,3,[{file,“gen_server.erl”},{line,1222}]},{emqx_cm,request_stepdown,4,[{file,“emqx_cm.erl”},{line,427}]},{emqx_cm,do_takeover_begin,2,[{file,“emqx_cm.erl”},{line,398}]},{emqx_cm,takeover_session,2,[{file,“emqx_cm.erl”},{line,384}]},{emqx_cm,takeover_session_begin,2,[{file,“emqx_cm.erl”},{line,305}]},{emqx_session_mem,open,4,[{file,“emqx_session_mem.erl”},{line,210}]},{emqx_session,open,3,[{file,“emqx_session.erl”},{line,263}]},{emqx_cm,‘-open_session/4-fun-1-’,4,[{file,“emqx_cm.erl”},{line,290}]},{emqx_cm_locker,trans,2,[{file,“emqx_cm_locker.erl”},{line,32}]},{emqx_channel,post_process_connect,2,[{file,“emqx_channel.erl”},{line,575}]},{emqx_connection,with_channel,3,[{file,“emqx_connection.erl”},{line,852}]},{emqx_connection,process_msg,2,[{file,“emqx_connection.erl”},{line,470}]},{emqx_connection,process_msgs,2,[{file,“emqx_connection.erl”},{line,462}]},{emqx_connection,handle_recv,3,[{file,“emqx_connection.erl”},{line,406}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,340}]}], action: {takeover,‘begin’}, conn_mod: emqx_connection, stale_pid: <0.969279.0>, stale_channel: [{status,running},{message_queue_len,1},{current_stacktrace,[{emqx_cm,stale_channel_info,1,[{file,“emqx_cm.erl”},{line,476}]},{emqx_cm,handle_stepdown_exception,6,[{file,“emqx_cm.erl”},{line,466}]},{emqx_cm,do_takeover_begin,2,[{file,“emqx_cm.erl”},{line,398}]},{emqx_cm,takeover_session,2,[{file,“emqx_cm.erl”},{line,384}]},{emqx_cm,takeover_session_begin,2,[{file,“emqx_cm.erl”},{line,305}]},{emqx_session_mem,open,4,[{file,“emqx_session_mem.erl”},{line,210}]},{emqx_session,open,3,[{file,“emqx_session.erl”},{line,263}]},{emqx_cm,‘-open_session/4-fun-1-’,4,[{file,“emqx_cm.erl”},{line,290}]},{emqx_cm_locker,trans,2,[{file,“emqx_cm_locker.erl”},{line,32}]},{emqx_channel,post_process_connect,2,[{file,“emqx_channel.erl”},{line,575}]},{emqx_connection,with_channel,3,[{file,“emqx_connection.erl”},{line,852}]},{emqx_connection,process_msg,2,[{file,“emqx_connection.erl”},{line,470}]},{emqx_connection,process_msgs,2,[{file,“emqx_connection.erl”},{line,462}]},{emqx_connection,handle_recv,3,[{file,“emqx_connection.erl”},{line,406}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,340}]}]}]
2025-09-26T00:45:49.687535+08:00 [error] clientid: ClientId_local20+1758769295046, msg: session_stepdown_request_exception, peername: 127.0.0.1:35530, username: xxx, error: exit, reason: calling_self, stacktrace: [{gen_server,call,3,[{file,“gen_server.erl”},{line,1222}]},{emqx_cm,request_stepdown,4,[{file,“emqx_cm.erl”},{line,427}]},{emqx_cm,do_takeover_begin,2,[{file,“emqx_cm.erl”},{line,398}]},{emqx_cm,takeover_session,2,[{file,“emqx_cm.erl”},{line,384}]},{emqx_cm,takeover_session_begin,2,[{file,“emqx_cm.erl”},{line,305}]},{emqx_session_mem,open,4,[{file,“emqx_session_mem.erl”},{line,210}]},{emqx_session,open,3,[{file,“emqx_session.erl”},{line,263}]},{emqx_cm,‘-open_session/4-fun-1-’,4,[{file,“emqx_cm.erl”},{line,290}]},{emqx_cm_locker,trans,2,[{file,“emqx_cm_locker.erl”},{line,32}]},{emqx_channel,post_process_connect,2,[{file,“emqx_channel.erl”},{line,575}]},{emqx_connection,with_channel,3,[{file,“emqx_connection.erl”},{line,852}]},{emqx_connection,process_msg,2,[{file,“emqx_connection.erl”},{line,470}]},{emqx_connection,process_msgs,2,[{file,“emqx_connection.erl”},{line,462}]},{emqx_connection,handle_recv,3,[{file,“emqx_connection.erl”},{line,406}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,340}]}], action: {takeover,‘begin’}, conn_mod: emqx_connection, stale_pid: <0.969399.0>, stale_channel: [{status,running},{message_queue_len,1},{current_stacktrace,[{emqx_cm,stale_channel_info,1,[{file,“emqx_cm.erl”},{line,476}]},{emqx_cm,handle_stepdown_exception,6,[{file,“emqx_cm.erl”},{line,466}]},{emqx_cm,do_takeover_begin,2,[{file,“emqx_cm.erl”},{line,398}]},{emqx_cm,takeover_session,2,[{file,“emqx_cm.erl”},{line,384}]},{emqx_cm,takeover_session_begin,2,[{file,“emqx_cm.erl”},{line,305}]},{emqx_session_mem,open,4,[{file,“emqx_session_mem.erl”},{line,210}]},{emqx_session,open,3,[{file,“emqx_session.erl”},{line,263}]},{emqx_cm,‘-open_session/4-fun-1-’,4,[{file,“emqx_cm.erl”},{line,290}]},{emqx_cm_locker,trans,2,[{file,“emqx_cm_locker.erl”},{line,32}]},{emqx_channel,post_process_connect,2,[{file,“emqx_channel.erl”},{line,575}]},{emqx_connection,with_channel,3,[{file,“emqx_connection.erl”},{line,852}]},{emqx_connection,process_msg,2,[{file,“emqx_connection.erl”},{line,470}]},{emqx_connection,process_msgs,2,[{file,“emqx_connection.erl”},{line,462}]},{emqx_connection,handle_recv,3,[{file,“emqx_connection.erl”},{line,406}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,340}]}]}]
影响
这导致每天客户端断连