环境
- EMQX 版本:5.4.0
- 操作系统版本:debian9
问题描述
根据日志追踪发现mqtt客户端异常断开。
2024-06-14T01:27:17.330472+00:00 [SOCKET] ak@192.168.86.48:35878 msg: emqx_connection_terminated, reason: {shutdown,tcp_closed}
2024-06-14T01:27:33.641981+00:00 [MQTT] ak@192.168.86.48:37918 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=ak, ProtoName=MQIsdp, ProtoVsn=3, CleanStart=true, KeepAlive=20, Username=admin, Password=******)
2024-06-14T01:27:33.642672+00:00 [MQTT] ak@192.168.86.48:37918 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2024-06-14T01:27:33.644767+00:00 [MQTT] ak@192.168.86.48:37918 msg: mqtt_packet_received, packet: SUBSCRIBE(Q1, R0, D0, PacketId=34 TopicFilters=[/mqtt/msg/receive/v1/c95f1d0e-7a1d-41d1-a2a5-69e5dc0b6875(#{nl => 0,qos => 1,
rap => 0,rh => 0})])
2024-06-14T01:27:33.645160+00:00 [AUTHZ] ak@192.168.86.48:37918 msg: authorization_module_nomatch, ipaddr: {192,168,86,48}, module: emqx_authz_client_info, pub_sub: [action_type: subscribe, qos: 1], topic: /mqtt/msg/receive/v1/c95f1d0e-7a1d-41d1-a2a5-69e5dc0b6875, username: admin
2024-06-14T01:27:33.645349+00:00 [SUBSCRIBE] ak@192.168.86.48:37918 msg: subscribe, sub_id: ak, sub_opts: [nl: 0, qos: 1, rap: 0, rh: 0, sub_props: ], topic: /mqtt/msg/receive/v1/c95f1d0e-7a1d-41d1-a2a5-69e5dc0b6875
2024-06-14T01:27:33.645806+00:00 [MQTT] ak@192.168.86.48:37918 msg: mqtt_packet_sent, packet: SUBACK(Q0, R0, D0, PacketId=34, ReasonCodes=[1])