5.X版本 日志追踪里reason: {shutdown,tcp_closed} 这是什么场景客户端下线?

错误报告

环境

  • EMQX 版本:5.0.19
  • 操作系统版本:centos7

问题描述
根据日志追踪发现有些设备不断的连接又立马断开 reason: {shutdown,tcp_closed},
正常下线日志是 emqx_connection_terminated, reason: {shutdown,normal}

2023-03-18T18:25:02+08:00 [MQTT] P566511OPBP@183.171.78.210:47926 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=P566511OPBP, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=20, Username=5M/i5m/v5TJi5Ttf20ox6Gsf38==, Password=******)
2023-03-18T18:25:02+08:00 [QUERY] P566511OPBP@183.171.78.210:47926 msg: http_connector_received, connector: emqx_authn_http:1, request: {"/api/guardian-region/client/auth",[{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}],<<"{\"username\":\"5M/i5m/v5TJi5Ttf20ox6Gsf38==\",\"peerHost\":\"183.171.78.210\",\"password\":\"OTOv2MOk5OP88VJ=\",\"clientId\":\"P566511OPBP\"}">>}, state: [base_path: /, connect_timeout: 5000, host: {127,0,0,1}, pool_name: emqx_authn_http:1:2, pool_type: random, port: 8201, request: undefined]
2023-03-18T18:25:02+08:00 [AUTHN] P566511OPBP@183.171.78.210:47926 msg: http_response, provider: emqx_authn_http, request: [base_url: http://127.0.0.1:8201/api/guardian-region/client/auth, headers: [{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}], method: post, mody: {"username":"5M/i5m/v5TJi5Ttf20ox6Gsf38==","peerHost":"183.171.78.210","password":"[password]","clientId":"P566511OPBP"}, path_query: /api/guardian-region/client/auth], resource: emqx_authn_http:1, response: [body: {"result":"allow","is_superuser":false}, headers: [{<<"connection">>,<<"keep-alive">>},{<<"transfer-encoding">>,<<"chunked">>},{<<"content-type">>,<<"application/json">>},{<<"date">>,<<"Sat, 18 Mar 2023 10:25:02 GMT">>}], status: 200]
2023-03-18T18:25:02+08:00 [AUTHN] P566511OPBP@183.171.78.210:47926 msg: authenticator_result, authenticator: password_based:http, result: {ok,#{is_superuser => false,user_property => #{}}}
2023-03-18T18:25:02+08:00 [AUTHN] P566511OPBP@183.171.78.210:47926 msg: authentication_result, reason: chain_result, result: {stop,{ok,#{is_superuser => false,user_property => #{}}}}
2023-03-18T18:25:02+08:00 [MQTT] P566511OPBP@183.171.78.210:47926 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2023-03-18T18:25:02+08:00 [SUBSCRIBE] P566511OPBP@183.171.78.210:47926 msg: subscribe, sub_id: P566511OPBP, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0], topic: $client/P566511OPBP
2023-03-18T18:25:02+08:00 [MQTT] P566511OPBP@183.171.78.210:47926 msg: mqtt_packet_received, packet: PINGREQ(Q0, R0, D0)
2023-03-18T18:25:02+08:00 [MQTT] P566511OPBP@183.171.78.210:47926 msg: mqtt_packet_sent, packet: PINGRESP(Q0, R0, D0)
2023-03-18T18:25:02+08:00 [SOCKET] P566511OPBP@183.171.78.210:47926 msg: emqx_connection_terminated, reason: {shutdown,tcp_closed}
2023-03-18T18:25:08+08:00 [MQTT] P566511OPBP@183.171.78.210:47927 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=P566511OPBP, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=20, Username=5M/i5m/v5TJi5Ttf20ox6Gsf38==, Password=******)
2023-03-18T18:25:08+08:00 [QUERY] P566511OPBP@183.171.78.210:47927 msg: http_connector_received, connector: emqx_authn_http:1, request: {"/api/guardian-region/client/auth",[{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}],<<"{\"username\":\"5M/i5m/v5TJi5Ttf20ox6Gsf38==\",\"peerHost\":\"183.171.78.210\",\"password\":\"OTOv2MOk5OP88VJ=\",\"clientId\":\"P566511OPBP\"}">>}, state: [base_path: /, connect_timeout: 5000, host: {127,0,0,1}, pool_name: emqx_authn_http:1:2, pool_type: random, port: 8201, request: undefined]
2023-03-18T18:25:08+08:00 [AUTHN] P566511OPBP@183.171.78.210:47927 msg: http_response, provider: emqx_authn_http, request: [base_url: http://127.0.0.1:8201/api/guardian-region/client/auth, headers: [{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}], method: post, mody: {"username":"5M/i5m/v5TJi5Ttf20ox6Gsf38==","peerHost":"183.171.78.210","password":"[password]","clientId":"P566511OPBP"}, path_query: /api/guardian-region/client/auth], resource: emqx_authn_http:1, response: [body: {"result":"allow","is_superuser":false}, headers: [{<<"connection">>,<<"keep-alive">>},{<<"transfer-encoding">>,<<"chunked">>},{<<"content-type">>,<<"application/json">>},{<<"date">>,<<"Sat, 18 Mar 2023 10:25:08 GMT">>}], status: 200]
2023-03-18T18:25:08+08:00 [AUTHN] P566511OPBP@183.171.78.210:47927 msg: authenticator_result, authenticator: password_based:http, result: {ok,#{is_superuser => false,user_property => #{}}}
2023-03-18T18:25:08+08:00 [AUTHN] P566511OPBP@183.171.78.210:47927 msg: authentication_result, reason: chain_result, result: {stop,{ok,#{is_superuser => false,user_property => #{}}}}
2023-03-18T18:25:08+08:00 [MQTT] P566511OPBP@183.171.78.210:47927 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2023-03-18T18:25:08+08:00 [SUBSCRIBE] P566511OPBP@183.171.78.210:47927 msg: subscribe, sub_id: P566511OPBP, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0], topic: $client/P566511OPBP
2023-03-18T18:25:08+08:00 [MQTT] P566511OPBP@183.171.78.210:47927 msg: mqtt_packet_received, packet: PINGREQ(Q0, R0, D0)
2023-03-18T18:25:08+08:00 [MQTT] P566511OPBP@183.171.78.210:47927 msg: mqtt_packet_sent, packet: PINGRESP(Q0, R0, D0)
2023-03-18T18:25:08+08:00 [SOCKET] P566511OPBP@183.171.78.210:47927 msg: emqx_connection_terminated, reason: {shutdown,tcp_closed}
2023-03-18T18:25:13+08:00 [MQTT] P566511OPBP@183.171.78.210:47928 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=P566511OPBP, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=20, Username=5M/i5m/v5TJi5Ttf20ox6Gsf38==, Password=******)
2023-03-18T18:25:13+08:00 [QUERY] P566511OPBP@183.171.78.210:47928 msg: http_connector_received, connector: emqx_authn_http:1, request: {"/api/guardian-region/client/auth",[{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}],<<"{\"username\":\"5M/i5m/v5TJi5Ttf20ox6Gsf38==\",\"peerHost\":\"183.171.78.210\",\"password\":\"OTOv2MOk5OP88VJ=\",\"clientId\":\"P566511OPBP\"}">>}, state: [base_path: /, connect_timeout: 5000, host: {127,0,0,1}, pool_name: emqx_authn_http:1:2, pool_type: random, port: 8201, request: undefined]
2023-03-18T18:25:13+08:00 [AUTHN] P566511OPBP@183.171.78.210:47928 msg: http_response, provider: emqx_authn_http, request: [base_url: http://127.0.0.1:8201/api/guardian-region/client/auth, headers: [{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}], method: post, mody: {"username":"5M/i5m/v5TJi5Ttf20ox6Gsf38==","peerHost":"183.171.78.210","password":"[password]","clientId":"P566511OPBP"}, path_query: /api/guardian-region/client/auth], resource: emqx_authn_http:1, response: [body: {"result":"allow","is_superuser":false}, headers: [{<<"connection">>,<<"keep-alive">>},{<<"transfer-encoding">>,<<"chunked">>},{<<"content-type">>,<<"application/json">>},{<<"date">>,<<"Sat, 18 Mar 2023 10:25:13 GMT">>}], status: 200]
2023-03-18T18:25:13+08:00 [AUTHN] P566511OPBP@183.171.78.210:47928 msg: authenticator_result, authenticator: password_based:http, result: {ok,#{is_superuser => false,user_property => #{}}}
2023-03-18T18:25:13+08:00 [AUTHN] P566511OPBP@183.171.78.210:47928 msg: authentication_result, reason: chain_result, result: {stop,{ok,#{is_superuser => false,user_property => #{}}}}
2023-03-18T18:25:13+08:00 [MQTT] P566511OPBP@183.171.78.210:47928 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2023-03-18T18:25:13+08:00 [SUBSCRIBE] P566511OPBP@183.171.78.210:47928 msg: subscribe, sub_id: P566511OPBP, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0], topic: $client/P566511OPBP
2023-03-18T18:25:13+08:00 [MQTT] P566511OPBP@183.171.78.210:47928 msg: mqtt_packet_received, packet: PINGREQ(Q0, R0, D0)
2023-03-18T18:25:13+08:00 [MQTT] P566511OPBP@183.171.78.210:47928 msg: mqtt_packet_sent, packet: PINGRESP(Q0, R0, D0)
2023-03-18T18:25:13+08:00 [SOCKET] P566511OPBP@183.171.78.210:47928 msg: emqx_connection_terminated, reason: {shutdown,tcp_closed}
2023-03-18T18:25:18+08:00 [MQTT] P566511OPBP@183.171.78.210:47929 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=P566511OPBP, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=20, Username=5M/i5m/v5TJi5Ttf20ox6Gsf38==, Password=******)
2023-03-18T18:25:18+08:00 [QUERY] P566511OPBP@183.171.78.210:47929 msg: http_connector_received, connector: emqx_authn_http:1, request: {"/api/guardian-region/client/auth",[{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}],<<"{\"username\":\"5M/i5m/v5TJi5Ttf20ox6Gsf38==\",\"peerHost\":\"183.171.78.210\",\"password\":\"OTOv2MOk5OP88VJ=\",\"clientId\":\"P566511OPBP\"}">>}, state: [base_path: /, connect_timeout: 5000, host: {127,0,0,1}, pool_name: emqx_authn_http:1:2, pool_type: random, port: 8201, request: undefined]
2023-03-18T18:25:18+08:00 [AUTHN] P566511OPBP@183.171.78.210:47929 msg: http_response, provider: emqx_authn_http, request: [base_url: http://127.0.0.1:8201/api/guardian-region/client/auth, headers: [{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}], method: post, mody: {"username":"5M/i5m/v5TJi5Ttf20ox6Gsf38==","peerHost":"183.171.78.210","password":"[password]","clientId":"P566511OPBP"}, path_query: /api/guardian-region/client/auth], resource: emqx_authn_http:1, response: [body: {"result":"allow","is_superuser":false}, headers: [{<<"connection">>,<<"keep-alive">>},{<<"transfer-encoding">>,<<"chunked">>},{<<"content-type">>,<<"application/json">>},{<<"date">>,<<"Sat, 18 Mar 2023 10:25:18 GMT">>}], status: 200]
2023-03-18T18:25:18+08:00 [AUTHN] P566511OPBP@183.171.78.210:47929 msg: authenticator_result, authenticator: password_based:http, result: {ok,#{is_superuser => false,user_property => #{}}}
2023-03-18T18:25:18+08:00 [AUTHN] P566511OPBP@183.171.78.210:47929 msg: authentication_result, reason: chain_result, result: {stop,{ok,#{is_superuser => false,user_property => #{}}}}
2023-03-18T18:25:18+08:00 [MQTT] P566511OPBP@183.171.78.210:47929 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2023-03-18T18:25:18+08:00 [SUBSCRIBE] P566511OPBP@183.171.78.210:47929 msg: subscribe, sub_id: P566511OPBP, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0], topic: $client/P566511OPBP
2023-03-18T18:25:18+08:00 [MQTT] P566511OPBP@183.171.78.210:47929 msg: mqtt_packet_received, packet: PINGREQ(Q0, R0, D0)
2023-03-18T18:25:18+08:00 [MQTT] P566511OPBP@183.171.78.210:47929 msg: mqtt_packet_sent, packet: PINGRESP(Q0, R0, D0)
2023-03-18T18:25:18+08:00 [SOCKET] P566511OPBP@183.171.78.210:47929 msg: emqx_connection_terminated, reason: {shutdown,tcp_closed}
2023-03-18T18:25:23+08:00 [MQTT] P566511OPBP@183.171.78.210:47930 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=P566511OPBP, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=20, Username=5M/i5m/v5TJi5Ttf20ox6Gsf38==, Password=******)
2023-03-18T18:25:23+08:00 [QUERY] P566511OPBP@183.171.78.210:47930 msg: http_connector_received, connector: emqx_authn_http:1, request: {"/api/guardian-region/client/auth",[{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}],<<"{\"username\":\"5M/i5m/v5TJi5Ttf20ox6Gsf38==\",\"peerHost\":\"183.171.78.210\",\"password\":\"OTOv2MOk5OP88VJ=\",\"clientId\":\"P566511OPBP\"}">>}, state: [base_path: /, connect_timeout: 5000, host: {127,0,0,1}, pool_name: emqx_authn_http:1:2, pool_type: random, port: 8201, request: undefined]
2023-03-18T18:25:23+08:00 [AUTHN] P566511OPBP@183.171.78.210:47930 msg: http_response, provider: emqx_authn_http, request: [base_url: http://127.0.0.1:8201/api/guardian-region/client/auth, headers: [{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}], method: post, mody: {"username":"5M/i5m/v5TJi5Ttf20ox6Gsf38==","peerHost":"183.171.78.210","password":"[password]","clientId":"P566511OPBP"}, path_query: /api/guardian-region/client/auth], resource: emqx_authn_http:1, response: [body: {"result":"allow","is_superuser":false}, headers: [{<<"connection">>,<<"keep-alive">>},{<<"transfer-encoding">>,<<"chunked">>},{<<"content-type">>,<<"application/json">>},{<<"date">>,<<"Sat, 18 Mar 2023 10:25:23 GMT">>}], status: 200]
2023-03-18T18:25:23+08:00 [AUTHN] P566511OPBP@183.171.78.210:47930 msg: authenticator_result, authenticator: password_based:http, result: {ok,#{is_superuser => false,user_property => #{}}}
2023-03-18T18:25:23+08:00 [AUTHN] P566511OPBP@183.171.78.210:47930 msg: authentication_result, reason: chain_result, result: {stop,{ok,#{is_superuser => false,user_property => #{}}}}
2023-03-18T18:25:23+08:00 [MQTT] P566511OPBP@183.171.78.210:47930 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2023-03-18T18:25:23+08:00 [SUBSCRIBE] P566511OPBP@183.171.78.210:47930 msg: subscribe, sub_id: P566511OPBP, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0], topic: $client/P566511OPBP
2023-03-18T18:25:23+08:00 [MQTT] P566511OPBP@183.171.78.210:47930 msg: mqtt_packet_received, packet: PINGREQ(Q0, R0, D0)
2023-03-18T18:25:23+08:00 [MQTT] P566511OPBP@183.171.78.210:47930 msg: mqtt_packet_sent, packet: PINGRESP(Q0, R0, D0)
2023-03-18T18:25:23+08:00 [SOCKET] P566511OPBP@183.171.78.210:47930 msg: emqx_connection_terminated, reason: {shutdown,tcp_closed}
2023-03-18T18:25:28+08:00 [MQTT] P566511OPBP@183.171.78.210:47931 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=P566511OPBP, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=20, Username=5M/i5m/v5TJi5Ttf20ox6Gsf38==, Password=******)
2023-03-18T18:25:28+08:00 [QUERY] P566511OPBP@183.171.78.210:47931 msg: http_connector_received, connector: emqx_authn_http:1, request: {"/api/guardian-region/client/auth",[{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}],<<"{\"username\":\"5M/i5m/v5TJi5Ttf20ox6Gsf38==\",\"peerHost\":\"183.171.78.210\",\"password\":\"OTOv2MOk5OP88VJ=\",\"clientId\":\"P566511OPBP\"}">>}, state: [base_path: /, connect_timeout: 5000, host: {127,0,0,1}, pool_name: emqx_authn_http:1:2, pool_type: random, port: 8201, request: undefined]
2023-03-18T18:25:28+08:00 [AUTHN] P566511OPBP@183.171.78.210:47931 msg: http_response, provider: emqx_authn_http, request: [base_url: http://127.0.0.1:8201/api/guardian-region/client/auth, headers: [{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}], method: post, mody: {"username":"5M/i5m/v5TJi5Ttf20ox6Gsf38==","peerHost":"183.171.78.210","password":"[password]","clientId":"P566511OPBP"}, path_query: /api/guardian-region/client/auth], resource: emqx_authn_http:1, response: [body: {"result":"allow","is_superuser":false}, headers: [{<<"connection">>,<<"keep-alive">>},{<<"transfer-encoding">>,<<"chunked">>},{<<"content-type">>,<<"application/json">>},{<<"date">>,<<"Sat, 18 Mar 2023 10:25:28 GMT">>}], status: 200]
2023-03-18T18:25:28+08:00 [AUTHN] P566511OPBP@183.171.78.210:47931 msg: authenticator_result, authenticator: password_based:http, result: {ok,#{is_superuser => false,user_property => #{}}}
2023-03-18T18:25:28+08:00 [AUTHN] P566511OPBP@183.171.78.210:47931 msg: authentication_result, reason: chain_result, result: {stop,{ok,#{is_superuser => false,user_property => #{}}}}
2023-03-18T18:25:28+08:00 [MQTT] P566511OPBP@183.171.78.210:47931 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2023-03-18T18:25:28+08:00 [SUBSCRIBE] P566511OPBP@183.171.78.210:47931 msg: subscribe, sub_id: P566511OPBP, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0], topic: $client/P566511OPBP
2023-03-18T18:25:28+08:00 [MQTT] P566511OPBP@183.171.78.210:47931 msg: mqtt_packet_received, packet: PINGREQ(Q0, R0, D0)
2023-03-18T18:25:28+08:00 [MQTT] P566511OPBP@183.171.78.210:47931 msg: mqtt_packet_sent, packet: PINGRESP(Q0, R0, D0)
2023-03-18T18:25:28+08:00 [SOCKET] P566511OPBP@183.171.78.210:47931 msg: emqx_connection_terminated, reason: {shutdown,tcp_closed}
2023-03-18T18:25:34+08:00 [MQTT] P566511OPBP@183.171.78.210:47932 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=P566511OPBP, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=20, Username=5M/i5m/v5TJi5Ttf20ox6Gsf38==, Password=******)
2023-03-18T18:25:34+08:00 [QUERY] P566511OPBP@183.171.78.210:47932 msg: http_connector_received, connector: emqx_authn_http:1, request: {"/api/guardian-region/client/auth",[{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}],<<"{\"username\":\"5M/i5m/v5TJi5Ttf20ox6Gsf38==\",\"peerHost\":\"183.171.78.210\",\"password\":\"OTOv2MOk5OP88VJ=\",\"clientId\":\"P566511OPBP\"}">>}, state: [base_path: /, connect_timeout: 5000, host: {127,0,0,1}, pool_name: emqx_authn_http:1:2, pool_type: random, port: 8201, request: undefined]
2023-03-18T18:25:34+08:00 [AUTHN] P566511OPBP@183.171.78.210:47932 msg: http_response, provider: emqx_authn_http, request: [base_url: http://127.0.0.1:8201/api/guardian-region/client/auth, headers: [{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}], method: post, mody: {"username":"5M/i5m/v5TJi5Ttf20ox6Gsf38==","peerHost":"183.171.78.210","password":"[password]","clientId":"P566511OPBP"}, path_query: /api/guardian-region/client/auth], resource: emqx_authn_http:1, response: [body: {"result":"allow","is_superuser":false}, headers: [{<<"connection">>,<<"keep-alive">>},{<<"transfer-encoding">>,<<"chunked">>},{<<"content-type">>,<<"application/json">>},{<<"date">>,<<"Sat, 18 Mar 2023 10:25:34 GMT">>}], status: 200]
2023-03-18T18:25:34+08:00 [AUTHN] P566511OPBP@183.171.78.210:47932 msg: authenticator_result, authenticator: password_based:http, result: {ok,#{is_superuser => false,user_property => #{}}}
2023-03-18T18:25:34+08:00 [AUTHN] P566511OPBP@183.171.78.210:47932 msg: authentication_result, reason: chain_result, result: {stop,{ok,#{is_superuser => false,user_property => #{}}}}
2023-03-18T18:25:34+08:00 [MQTT] P566511OPBP@183.171.78.210:47932 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2023-03-18T18:25:34+08:00 [SUBSCRIBE] P566511OPBP@183.171.78.210:47932 msg: subscribe, sub_id: P566511OPBP, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0], topic: $client/P566511OPBP
2023-03-18T18:25:34+08:00 [MQTT] P566511OPBP@183.171.78.210:47932 msg: mqtt_packet_received, packet: PINGREQ(Q0, R0, D0)
2023-03-18T18:25:34+08:00 [MQTT] P566511OPBP@183.171.78.210:47932 msg: mqtt_packet_sent, packet: PINGRESP(Q0, R0, D0)
2023-03-18T18:25:34+08:00 [SOCKET] P566511OPBP@183.171.78.210:47932 msg: emqx_connection_terminated, reason: {shutdown,tcp_closed}
2023-03-18T18:25:39+08:00 [MQTT] P566511OPBP@183.171.78.210:47933 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=P566511OPBP, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=20, Username=5M/i5m/v5TJi5Ttf20ox6Gsf38==, Password=******)
2023-03-18T18:25:39+08:00 [QUERY] P566511OPBP@183.171.78.210:47933 msg: http_connector_received, connector: emqx_authn_http:1, request: {"/api/guardian-region/client/auth",[{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}],<<"{\"username\":\"5M/i5m/v5TJi5Ttf20ox6Gsf38==\",\"peerHost\":\"183.171.78.210\",\"password\":\"OTOv2MOk5OP88VJ=\",\"clientId\":\"P566511OPBP\"}">>}, state: [base_path: /, connect_timeout: 5000, host: {127,0,0,1}, pool_name: emqx_authn_http:1:2, pool_type: random, port: 8201, request: undefined]
2023-03-18T18:25:39+08:00 [AUTHN] P566511OPBP@183.171.78.210:47933 msg: http_response, provider: emqx_authn_http, request: [base_url: http://127.0.0.1:8201/api/guardian-region/client/auth, headers: [{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}], method: post, mody: {"username":"5M/i5m/v5TJi5Ttf20ox6Gsf38==","peerHost":"183.171.78.210","password":"[password]","clientId":"P566511OPBP"}, path_query: /api/guardian-region/client/auth], resource: emqx_authn_http:1, response: [body: {"result":"allow","is_superuser":false}, headers: [{<<"connection">>,<<"keep-alive">>},{<<"transfer-encoding">>,<<"chunked">>},{<<"content-type">>,<<"application/json">>},{<<"date">>,<<"Sat, 18 Mar 2023 10:25:39 GMT">>}], status: 200]
2023-03-18T18:25:39+08:00 [AUTHN] P566511OPBP@183.171.78.210:47933 msg: authenticator_result, authenticator: password_based:http, result: {ok,#{is_superuser => false,user_property => #{}}}
2023-03-18T18:25:39+08:00 [AUTHN] P566511OPBP@183.171.78.210:47933 msg: authentication_result, reason: chain_result, result: {stop,{ok,#{is_superuser => false,user_property => #{}}}}
2023-03-18T18:25:39+08:00 [MQTT] P566511OPBP@183.171.78.210:47933 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2023-03-18T18:25:39+08:00 [SUBSCRIBE] P566511OPBP@183.171.78.210:47933 msg: subscribe, sub_id: P566511OPBP, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0], topic: $client/P566511OPBP
2023-03-18T18:25:39+08:00 [MQTT] P566511OPBP@183.171.78.210:47933 msg: mqtt_packet_received, packet: PINGREQ(Q0, R0, D0)
2023-03-18T18:25:39+08:00 [MQTT] P566511OPBP@183.171.78.210:47933 msg: mqtt_packet_sent, packet: PINGRESP(Q0, R0, D0)
2023-03-18T18:25:39+08:00 [SOCKET] P566511OPBP@183.171.78.210:47933 msg: emqx_connection_terminated, reason: {shutdown,tcp_closed}
2023-03-18T18:25:44+08:00 [MQTT] P566511OPBP@183.171.78.210:47934 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=P566511OPBP, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=20, Username=5M/i5m/v5TJi5Ttf20ox6Gsf38==, Password=******)
2023-03-18T18:25:44+08:00 [QUERY] P566511OPBP@183.171.78.210:47934 msg: http_connector_received, connector: emqx_authn_http:1, request: {"/api/guardian-region/client/auth",[{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}],<<"{\"username\":\"5M/i5m/v5TJi5Ttf20ox6Gsf38==\",\"peerHost\":\"183.171.78.210\",\"password\":\"OTOv2MOk5OP88VJ=\",\"clientId\":\"P566511OPBP\"}">>}, state: [base_path: /, connect_timeout: 5000, host: {127,0,0,1}, pool_name: emqx_authn_http:1:2, pool_type: random, port: 8201, request: undefined]
2023-03-18T18:25:44+08:00 [AUTHN] P566511OPBP@183.171.78.210:47934 msg: http_response, provider: emqx_authn_http, request: [base_url: http://127.0.0.1:8201/api/guardian-region/client/auth, headers: [{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}], method: post, mody: {"username":"5M/i5m/v5TJi5Ttf20ox6Gsf38==","peerHost":"183.171.78.210","password":"[password]","clientId":"P566511OPBP"}, path_query: /api/guardian-region/client/auth], resource: emqx_authn_http:1, response: [body: {"result":"allow","is_superuser":false}, headers: [{<<"connection">>,<<"keep-alive">>},{<<"transfer-encoding">>,<<"chunked">>},{<<"content-type">>,<<"application/json">>},{<<"date">>,<<"Sat, 18 Mar 2023 10:25:44 GMT">>}], status: 200]
2023-03-18T18:25:44+08:00 [AUTHN] P566511OPBP@183.171.78.210:47934 msg: authenticator_result, authenticator: password_based:http, result: {ok,#{is_superuser => false,user_property => #{}}}
2023-03-18T18:25:44+08:00 [AUTHN] P566511OPBP@183.171.78.210:47934 msg: authentication_result, reason: chain_result, result: {stop,{ok,#{is_superuser => false,user_property => #{}}}}
2023-03-18T18:25:44+08:00 [MQTT] P566511OPBP@183.171.78.210:47934 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2023-03-18T18:25:44+08:00 [SUBSCRIBE] P566511OPBP@183.171.78.210:47934 msg: subscribe, sub_id: P566511OPBP, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0], topic: $client/P566511OPBP
2023-03-18T18:25:44+08:00 [MQTT] P566511OPBP@183.171.78.210:47934 msg: mqtt_packet_received, packet: PINGREQ(Q0, R0, D0)
2023-03-18T18:25:44+08:00 [MQTT] P566511OPBP@183.171.78.210:47934 msg: mqtt_packet_sent, packet: PINGRESP(Q0, R0, D0)
2023-03-18T18:25:44+08:00 [SOCKET] P566511OPBP@183.171.78.210:47934 msg: emqx_connection_terminated, reason: {shutdown,tcp_closed}
2023-03-18T18:25:49+08:00 [MQTT] P566511OPBP@183.171.78.210:47935 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=P566511OPBP, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=20, Username=5M/i5m/v5TJi5Ttf20ox6Gsf38==, Password=******)
2023-03-18T18:25:49+08:00 [QUERY] P566511OPBP@183.171.78.210:47935 msg: http_connector_received, connector: emqx_authn_http:1, request: {"/api/guardian-region/client/auth",[{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}],<<"{\"username\":\"5M/i5m/v5TJi5Ttf20ox6Gsf38==\",\"peerHost\":\"183.171.78.210\",\"password\":\"OTOv2MOk5OP88VJ=\",\"clientId\":\"P566511OPBP\"}">>}, state: [base_path: /, connect_timeout: 5000, host: {127,0,0,1}, pool_name: emqx_authn_http:1:2, pool_type: random, port: 8201, request: undefined]
2023-03-18T18:25:49+08:00 [AUTHN] P566511OPBP@183.171.78.210:47935 msg: http_response, provider: emqx_authn_http, request: [base_url: http://127.0.0.1:8201/api/guardian-region/client/auth, headers: [{<<"accept">>,<<"application/json">>},{<<"cache-control">>,<<"no-cache">>},{<<"connection">>,<<"keep-alive">>},{<<"content-type">>,<<"application/json">>},{<<"keep-alive">>,<<"timeout=30, max=1000">>}], method: post, mody: {"username":"5M/i5m/v5TJi5Ttf20ox6Gsf38==","peerHost":"183.171.78.210","password":"[password]","clientId":"P566511OPBP"}, path_query: /api/guardian-region/client/auth], resource: emqx_authn_http:1, response: [body: {"result":"allow","is_superuser":false}, headers: [{<<"connection">>,<<"keep-alive">>},{<<"transfer-encoding">>,<<"chunked">>},{<<"content-type">>,<<"application/json">>},{<<"date">>,<<"Sat, 18 Mar 2023 10:25:49 GMT">>}], status: 200]
2023-03-18T18:25:49+08:00 [AUTHN] P566511OPBP@183.171.78.210:47935 msg: authenticator_result, authenticator: password_based:http, result: {ok,#{is_superuser => false,user_property => #{}}}
2023-03-18T18:25:49+08:00 [AUTHN] P566511OPBP@183.171.78.210:47935 msg: authentication_result, reason: chain_result, result: {stop,{ok,#{is_superuser => false,user_property => #{}}}}
2023-03-18T18:25:49+08:00 [MQTT] P566511OPBP@183.171.78.210:47935 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2023-03-18T18:25:49+08:00 [SUBSCRIBE] P566511OPBP@183.171.78.210:47935 msg: subscribe, sub_id: P566511OPBP, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0], topic: $client/P566511OPBP
2023-03-18T18:25:49+08:00 [MQTT] P566511OPBP@183.171.78.210:47935 msg: mqtt_packet_received, packet: PINGREQ(Q0, R0, D0)
2023-03-18T18:25:49+08:00 [MQTT] P566511OPBP@183.171.78.210:47935 msg: mqtt_packet_sent, packet: PINGRESP(Q0, R0, D0)
2023-03-18T18:25:49+08:00 [SOCKET] P566511OPBP@183.171.78.210:47935 msg: emqx_connection_terminated, reason: {shutdown,tcp_closed}
2023-03-18T18:25:50+08:00 [API] P566511OPBP@ msg: trace_stopping, 

tcp_closed 表示对端,也就是客户端关闭了连接。你可以在客户端这边排查一下。