为何客户端订阅的主题,会莫名其妙的被取消订阅

2026-06-17T08:59:40.513379+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_channel:handle_in/2(332), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: CONNECT(Q0, R0, D0, ClientId=SvrSub-8.148.245.36-5osojC, ProtoName=MQTT, ProtoVsn=4, CleanStart=false, KeepAlive=120, Username=admin_svr, Password=******), tag: MQTT
2026-06-17T08:59:40.513531+08:00 [debug] msg: authenticator_result, mfa: emqx_authn_chains:authenticate_with_provider/2(686), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, authenticator: <<“password_based:built_in_database”>>, result: {ok,#{is_superuser => true}}, tag: AUTHN
2026-06-17T08:59:40.513606+08:00 [debug] msg: authentication_result, mfa: emqx_authn_chains:authenticate/2(166), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, reason: chain_result, result: {stop,{ok,#{is_superuser => true}}}, tag: AUTHN
2026-06-17T08:59:40.513872+08:00 [debug] msg: bridge_action, mfa: emqx_rule_runtime:do_handle_action/4(371), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, bridge_id: {bridge_v2,http,client_connected_WH_D}, tag: BRIDGE
2026-06-17T08:59:40.514035+08:00 [debug] msg: insert_channel_info, mfa: emqx_cm:insert_channel_info/3(160), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC
2026-06-17T08:59:40.514091+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0), tag: MQTT
2026-06-17T08:59:40.887079+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, bin: 82210001001C4465766963652F7075626C6973682F642F2B2F74656C656D6574727901, size: 35, type: hex
2026-06-17T08:59:40.887292+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: SUBSCRIBE(Q1, R0, D0, PacketId=1 TopicFilters=[Device/publish/d/+/telemetry(#{nl => 0,qos => 1,rap => 0,rh => 0})]), tag: MQTT
2026-06-17T08:59:40.887452+08:00 [info] msg: authorization_permission_allowed, mfa: emqx_authz:log_allowed/1(507), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, topic: Device/publish/d/+/telemetry, ipaddr: {8,148,245,36}, is_superuser: true, username: <<“admin_svr”>>
2026-06-17T08:59:40.887557+08:00 [debug] msg: subscribe, mfa: emqx_trace:subscribe/3(79), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, topic: Device/publish/d/+/telemetry, sub_id: <<“SvrSub-8.148.245.36-5osojC”>>, sub_opts: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}, tag: SUBSCRIBE
2026-06-17T08:59:40.887785+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: SUBACK(Q0, R0, D0, PacketId=1, ReasonCodes=[1]), tag: MQTT
2026-06-17T08:59:40.887907+08:00 [debug] msg: insert_channel_info, mfa: emqx_cm:insert_channel_info/3(160), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC
2026-06-17T08:59:40.887959+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, bin: 82210002001C4465766963652F7075626C6973682F642F2B2F74656C656D6574727901, size: 35, type: hex
2026-06-17T08:59:40.888040+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: SUBSCRIBE(Q1, R0, D0, PacketId=2 TopicFilters=[Device/publish/d/+/telemetry(#{nl => 0,qos => 1,rap => 0,rh => 0})]), tag: MQTT
2026-06-17T08:59:40.888131+08:00 [debug] msg: subscribe, mfa: emqx_trace:subscribe/3(79), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, topic: Device/publish/d/+/telemetry, sub_id: <<“SvrSub-8.148.245.36-5osojC”>>, sub_opts: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}, tag: SUBSCRIBE
2026-06-17T08:59:40.888242+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: SUBACK(Q0, R0, D0, PacketId=2, ReasonCodes=[1]), tag: MQTT
2026-06-17T08:59:40.888330+08:00 [debug] msg: insert_channel_info, mfa: emqx_cm:insert_channel_info/3(160), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC
2026-06-17T19:00:08.140647+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/74e9d819b98e/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”:“55 11 20 05 08 07 D0 00 00 00 0F 00 00 24”,“RX”:“55 11 20 05 08 07 D0 00 00 00 0F 00 00 24”}), tag: MQTT
2026-06-17T19:00:51.176242+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, bin: C000, size: 2, type: hex
2026-06-17T19:00:51.176424+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:00:51.176506+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:01:26.420127+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/868947051211723/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”: “55 11 20 05 08 07 d0 00 00 00 0f 00 00 24”, “RX”: “55 11 20 05 08 07 d0 00 00 00 0f 00 00 24”}), tag: MQTT
2026-06-17T19:02:05.743836+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/74e9d819b98e/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”:“55 11 20 05 08 07 D0 00 00 00 0F 00 00 24”,“RX”:“55 11 20 05 08 07 D0 00 00 00 0F 00 00 24”}), tag: MQTT
2026-06-17T19:02:18.831934+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/868947051244815/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”: “55 11 20 05 08 1f 40 17 de 00 0f 01 8a 2c”, “RX”: “55 11 20 05 08 1f 40 17 de 00 0f 01 8a 2c”}), tag: MQTT
2026-06-17T19:02:51.176362+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, bin: C000, size: 2, type: hex
2026-06-17T19:02:51.176495+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:02:51.176563+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:03:37.647949+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/d42787e19a3e/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”:“55 11 20 05 08 13 88 09 E8 00 1E 00 2E 16”,“RX”:“55 11 20 05 08 13 88 09 E8 00 1E 00 2E 16”}), tag: MQTT
2026-06-17T19:03:40.874544+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/486e703c0ca2/telemetry, PacketId=undefined, Payload={“MODE1_SET”:“55 11 01 05 09 1F 01 00 17 3B 00 5A 00 2D 19”,“RX”:“55 11 01 05 09 1F 01 00 17 3B 00 5A 00 2D 19”}), tag: MQTT
2026-06-17T19:03:41.456218+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/486e703c0ca2/telemetry, PacketId=undefined, Payload={“MODE1_SWITCH”:“55 11 11 05 01 01 29”,“RX”:“55 11 11 05 01 01 29”}), tag: MQTT
2026-06-17T19:03:42.085372+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/486e703c0ca2/telemetry, PacketId=undefined, Payload={“MODE2_SET”:“55 11 02 05 09 00 00 00 00 00 00 00 00 00 21”,“RX”:“55 11 02 05 09 00 00 00 00 00 00 00 00 00 21”}), tag: MQTT
2026-06-17T19:03:42.522262+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/28fa7a9b59c1/telemetry, PacketId=undefined, Payload={“MODE1_SET”:“55 11 01 05 09 7F 00 00 17 3B 00 3C 00 3C 69”,“RX”:“55 11 01 05 09 7F 00 00 17 3B 00 3C 00 3C 69”}), tag: MQTT
2026-06-17T19:03:42.676130+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/486e703c0ca2/telemetry, PacketId=undefined, Payload={“MODE2_SWITCH”:“55 11 12 05 01 01 2A”,“RX”:“55 11 12 05 01 01 2A”}), tag: MQTT
2026-06-17T19:03:43.110892+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/28fa7a9b59c1/telemetry, PacketId=undefined, Payload={“MODE1_SWITCH”:“55 11 11 05 01 01 29”,“RX”:“55 11 11 05 01 01 29”}), tag: MQTT
2026-06-17T19:03:43.303011+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/486e703c0ca2/telemetry, PacketId=undefined, Payload={“MODE3_SET”:“55 11 03 05 09 00 00 00 00 00 00 00 00 00 22”,“RX”:“55 11 03 05 09 00 00 00 00 00 00 00 00 00 22”}), tag: MQTT
2026-06-17T19:03:43.741991+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/28fa7a9b59c1/telemetry, PacketId=undefined, Payload={“MODE2_SET”:“55 11 02 05 09 00 00 00 00 00 00 00 00 00 21”,“RX”:“55 11 02 05 09 00 00 00 00 00 00 00 00 00 21”}), tag: MQTT
2026-06-17T19:03:43.885267+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/486e703c0ca2/telemetry, PacketId=undefined, Payload={“MODE3_SWITCH”:“55 11 13 05 01 01 2B”,“RX”:“55 11 13 05 01 01 2B”}), tag: MQTT
2026-06-17T19:03:44.323719+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/28fa7a9b59c1/telemetry, PacketId=undefined, Payload={“MODE2_SWITCH”:“55 11 12 05 01 00 29”,“RX”:“55 11 12 05 01 00 29”}), tag: MQTT
2026-06-17T19:03:44.514123+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/486e703c0ca2/telemetry, PacketId=undefined, Payload={“MODE4_SET”:“55 11 04 05 09 00 00 00 00 00 00 00 00 00 23”,“RX”:“55 11 04 05 09 00 00 00 00 00 00 00 00 00 23”}), tag: MQTT
2026-06-17T19:03:44.951963+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/28fa7a9b59c1/telemetry, PacketId=undefined, Payload={“MODE3_SET”:“55 11 03 05 09 7F 00 00 00 00 00 3C 00 3C 19”,“RX”:“55 11 03 05 09 7F 00 00 00 00 00 3C 00 3C 19”}), tag: MQTT
2026-06-17T19:03:45.096038+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/486e703c0ca2/telemetry, PacketId=undefined, Payload={“MODE4_SWITCH”:“55 11 14 05 01 00 2B”,“RX”:“55 11 14 05 01 00 2B”}), tag: MQTT
2026-06-17T19:03:45.484989+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/28fa7a9b59c1/telemetry, PacketId=undefined, Payload={“MODE3_SWITCH”:“55 11 13 05 01 01 2B”,“RX”:“55 11 13 05 01 01 2B”}), tag: MQTT
2026-06-17T19:03:45.775574+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/486e703c0ca2/telemetry, PacketId=undefined, Payload={“MODE5_SET”:“55 11 05 05 09 00 00 00 00 00 00 00 00 00 24”,“RX”:“55 11 05 05 09 00 00 00 00 00 00 00 00 00 24”}), tag: MQTT
2026-06-17T19:03:46.163770+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/28fa7a9b59c1/telemetry, PacketId=undefined, Payload={“MODE4_SET”:“55 11 04 05 09 7F 00 00 00 00 00 3C 00 3C 1A”,“RX”:“55 11 04 05 09 7F 00 00 00 00 00 3C 00 3C 1A”}), tag: MQTT
2026-06-17T19:03:46.305743+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/486e703c0ca2/telemetry, PacketId=undefined, Payload={“MODE5_SWITCH”:“55 11 15 05 01 00 2C”,“RX”:“55 11 15 05 01 00 2C”}), tag: MQTT
2026-06-17T19:03:46.696535+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/28fa7a9b59c1/telemetry, PacketId=undefined, Payload={“MODE4_SWITCH”:“55 11 14 05 01 00 2B”,“RX”:“55 11 14 05 01 00 2B”}), tag: MQTT
2026-06-17T19:03:46.947953+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/486e703c0ca2/telemetry, PacketId=undefined, Payload={“FAN”:“55 11 06 05 01 00 1D”,“RX”:“55 11 06 05 01 00 1D”}), tag: MQTT
2026-06-17T19:03:47.431631+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/28fa7a9b59c1/telemetry, PacketId=undefined, Payload={“MODE5_SET”:“55 11 05 05 09 7F 00 00 00 00 00 3C 00 3C 1B”,“RX”:“55 11 05 05 09 7F 00 00 00 00 00 3C 00 3C 1B”}), tag: MQTT
2026-06-17T19:03:47.431758+08:00 [debug] msg: check_oom, mfa: emqx_connection:check_oom/1(1098), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, policy: #{enable => true,max_heap_size => 4194304,max_mailbox_size => 1000}
2026-06-17T19:03:47.533773+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/486e703c0ca2/telemetry, PacketId=undefined, Payload={“SWITCH”:“55 11 07 05 01 01 1F”,“RX”:“55 11 07 05 01 01 1F”}), tag: MQTT
2026-06-17T19:03:47.909618+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/486e703c0ca2/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”:“55 11 20 05 08 4E 20 21 41 00 0F 00 33 50”,“RX”:“55 11 20 05 08 4E 20 21 41 00 0F 00 33 50”}), tag: MQTT
2026-06-17T19:03:48.013426+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/28fa7a9b59c1/telemetry, PacketId=undefined, Payload={“MODE5_SWITCH”:“55 11 15 05 01 00 2C”,“RX”:“55 11 15 05 01 00 2C”}), tag: MQTT
2026-06-17T19:03:48.188276+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/486e703c0ca2/telemetry, PacketId=undefined, Payload={“LOCK”:“55 11 09 05 01 01 21”,“RX”:“55 11 09 05 01 01 21”}), tag: MQTT
2026-06-17T19:03:48.609857+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/28fa7a9b59c1/telemetry, PacketId=undefined, Payload={“FAN”:“55 11 06 05 01 01 1E”,“RX”:“55 11 06 05 01 01 1E”}), tag: MQTT
2026-06-17T19:03:48.823585+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/486e703c0ca2/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”:“55 11 20 05 08 4E 20 21 41 00 0F 00 33 50”,“RX”:“55 11 20 05 08 4E 20 21 41 00 0F 00 33 50”}), tag: MQTT
2026-06-17T19:03:49.242155+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/28fa7a9b59c1/telemetry, PacketId=undefined, Payload={“SWITCH”:“55 11 07 05 01 01 1F”,“RX”:“55 11 07 05 01 01 1F”}), tag: MQTT
2026-06-17T19:03:49.394136+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/486e703c0ca2/telemetry, PacketId=undefined, Payload={“WATER_TYPE”:“55 11 25 05 08 00 00 00 00 00 00 00 00 43”,“RX”:“55 11 25 05 08 00 00 00 00 00 00 00 00 43”}), tag: MQTT
2026-06-17T19:03:49.828728+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/28fa7a9b59c1/telemetry, PacketId=undefined, Payload={“LOCK”:“55 11 09 05 01 00 20”,“RX”:“55 11 09 05 01 00 20”}), tag: MQTT
2026-06-17T19:03:50.014520+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/486e703c0ca2/telemetry, PacketId=undefined, Payload={“WATER_TYPE2”:“55 11 27 05 08 00 00 00 00 00 00 00 00 45”,“RX”:“55 11 27 05 08 00 00 00 00 00 00 00 00 45”}), tag: MQTT
2026-06-17T19:03:50.455296+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/28fa7a9b59c1/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”:“55 11 20 05 08 4E 20 35 84 00 0F 00 4C C0”,“RX”:“55 11 20 05 08 4E 20 35 84 00 0F 00 4C C0”}), tag: MQTT
2026-06-17T19:03:51.075116+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/28fa7a9b59c1/telemetry, PacketId=undefined, Payload={“WATER_TYPE”:“55 11 25 05 08 00 00 00 00 00 00 00 00 43”,“RX”:“55 11 25 05 08 00 00 00 00 00 00 00 00 43”}), tag: MQTT
2026-06-17T19:03:51.345926+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/28fa7a9b59c1/telemetry, PacketId=undefined, Payload={“WATER_TYPE2”:“55 11 27 05 08 00 00 00 00 00 00 00 00 45”,“RX”:“55 11 27 05 08 00 00 00 00 00 00 00 00 45”}), tag: MQTT
2026-06-17T19:04:06.643115+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/74e9d819b98e/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”:“55 11 20 05 08 07 D0 00 00 00 0F 00 00 24”,“RX”:“55 11 20 05 08 07 D0 00 00 00 0F 00 00 24”}), tag: MQTT
2026-06-17T19:04:51.176495+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, bin: C000, size: 2, type: hex
2026-06-17T19:04:51.176667+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:04:51.176755+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:05:13.072596+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/867989079692006/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”: “55 11 20 05 08 13 88 0a 41 00 19 00 2b 68”, “RX”: “55 11 20 05 08 13 88 0a 41 00 19 00 2b 68”}), tag: MQTT
2026-06-17T19:06:00.584237+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/867989079973349/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”: “55 11 20 05 08 13 88 0a 0f 00 19 00 1a 25”, “RX”: “55 11 20 05 08 13 88 0a 0f 00 19 00 1a 25”}), tag: MQTT
2026-06-17T19:06:04.722580+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/74e9d819b98e/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”:“55 11 20 05 08 07 D0 00 00 00 0F 00 00 24”,“RX”:“55 11 20 05 08 07 D0 00 00 00 0F 00 00 24”}), tag: MQTT
2026-06-17T19:06:50.050050+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/74e9d819bbfe/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”:“55 11 20 05 08 07 D0 07 B9 00 0F 00 7D 61”,“RX”:“55 11 20 05 08 07 D0 07 B9 00 0F 00 7D 61”}), tag: MQTT
2026-06-17T19:06:51.176581+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, bin: C000, size: 2, type: hex
2026-06-17T19:06:51.176726+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:06:51.176809+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:06:51.176897+08:00 [debug] msg: check_oom, mfa: emqx_connection:check_oom/1(1098), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, policy: #{enable => true,max_heap_size => 4194304,max_mailbox_size => 1000}
2026-06-17T19:07:51.181284+08:00 [debug] msg: unsubscribe, mfa: emqx_trace:unsubscribe/2(84), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, topic: Device/publish/d/+/telemetry, sub_opts: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{},subid => <<“SvrSub-8.148.245.36-5osojC”>>}, tag: UNSUBSCRIBE
2026-06-17T19:08:51.176754+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, bin: C000, size: 2, type: hex
2026-06-17T19:08:51.176928+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:08:51.176987+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:10:51.176870+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, bin: C000, size: 2, type: hex
2026-06-17T19:10:51.177039+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:10:51.177125+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:12:51.176956+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, bin: C000, size: 2, type: hex
2026-06-17T19:12:51.177125+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:12:51.177184+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:14:51.177091+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, bin: C000, size: 2, type: hex
2026-06-17T19:14:51.177279+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:14:51.177365+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:16:51.177243+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, bin: C000, size: 2, type: hex
2026-06-17T19:16:51.177413+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:16:51.177502+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:18:51.177335+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, bin: C000, size: 2, type: hex
2026-06-17T19:18:51.177482+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:18:51.177547+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:20:51.177482+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, bin: C000, size: 2, type: hex
2026-06-17T19:20:51.177668+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:20:51.177758+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGRESP(Q0, R0, D0), tag: MQTT

clientid: SvrSub-8.148.245.36-5osojC的客户端自2026-06-17T08:59:40.513379+08:00连接上EMQX服务器并订阅主题topic: Device/publish/d/+/telemetry,链路和订阅一直正常,但持续至2026-06-17T19:07:51.181284+08:00时,订阅莫名其妙的被取消了(可以确定客户端未主动取消订阅),这是什么原因导致的?

你贴的日志里能看到:08:59:40 收到 SUBSCRIBESUBACK ReasonCodes=[1],订阅建立成功;19:07:51 出现 emqx_trace:unsubscribe/2;后面同一个连接还在 PINGREQ/PINGRESP。关键缺口是 19:07:51 前后有没有 MQTT 协议层的 UNSUBSCRIBE 报文。
正常情况下,EMQX 不会给一个仍在线的普通客户端定时取消订阅

grep 'SvrSub-8.148.245.36-5osojC' emqx.log \
  | egrep 'UNSUBSCRIBE|unsubscribe|client.disconnected|takenover|discarded|session|kick|terminate|SUBSCRIBE|SUBACK'
  1. 是否有 mqtt_packet_received ... UNSUBSCRIBE。有的话就是客户端库或业务代码发出来的,去查客户端订阅管理逻辑。
  2. 是否有同 Client ID 接管:takenover / discarded / 新的 CONNECT。同一个 Client ID 多实例会导致旧会话/订阅被清理。
  3. 是否有人或程序调了管理 API,例如 /clients/{clientid}/unsubscribe、踢下线、批量取消订阅。看 Dashboard 操作审计和 API 访问日志。
  4. 如果是集群,贴一下 19:06:30 到 19:08:30 这段完整 trace,别只截 unsubscribe 那一行。

如果完整 trace 里也没有 UNSUBSCRIBE 报文,也没有 API/踢下线/同 Client ID 接管证据,这个就可以按 EMQX 订阅状态异常来看,最好带版本号、部署方式和这段完整 trace 提 issue。

提的4种情况都没有,就是莫名其妙的出现了取消订阅的日志,在Dashboard上也看不到该订阅内容了。如果是相同clientId接管,日志中会有记录;同样也没有调用管理API进行取消订阅;目前是单机部署。EMQX版本是5.4.0。

看起来像是 EMQX V5.4.0 的订阅状态异常。

已经排除了协议层 UNSUBSCRIBE、同 Client ID 接管、管理 API、集群。

现在想看看:订阅表真实状态,以及触发取消订阅前后的完整日志。

先在节点上直接看订阅表:

emqx ctl subscriptions show 'SvrSub-8.148.245.36-5osojC'
curl -u key:secret \
  'http://127.0.0.1:18083/api/v5/clients/SvrSub-8.148.245.36-5osojC/subscriptions'

再把同一个 Client ID 在 19:06:30 到 19:08:30 的 emqx.log 和 trace 都切出来,不要只截 emqx_trace:unsubscribe/2 那一行:

cid='SvrSub-8.148.245.36-5osojC'
grep "$cid" emqx.log \
  | egrep 'SUBSCRIBE|SUBACK|UNSUBSCRIBE|unsubscribe|subscribe|takenover|discarded|client.disconnected|terminate|session|kick|api'

emqx_trace:unsubscribe/2 不是 MQTT UNSUBSCRIBE 报文,它只说明 EMQX 内部把这个订阅移除了。如果完整日志里没有 mqtt_packet_received ... UNSUBSCRIBE,也没有 takeover、API、踢下线或断连,且连接后面还在正常 PINGREQ/PINGRESP,那就可以排除是客户端主动取消的了。

5.4.0 比较老,后续版本修过一批路由/订阅状态一致性问题。能升级的话,先升到 5.4 的最新补丁版本或更高版本再观察;如果暂时不能升,就带上上面两段证据提 issue。关键日志就是:连接仍在线、订阅从 subscriptions show 消失、没有协议层 UNSUBSCRIBE / 管理 API / takeover。

看了源码:在 v5.4.0 的版本里面能在 trace 里面打印 emqx_trace:unsubscribe/2的情况只有下面三种:

  1. 服务端管理接口/CLI 强制取消订阅
    • REST/Dashboard:POST /api/v5/clients/:clientid/unsubscribe
    • CLI:emqx ctl subscriptions del <ClientId> <Topic>
  2. 同 Client ID 会话接管
    新连接使用相同 Client ID 接入时,旧 channel 在 takeover 结束阶段会对旧订阅执行 emqx_session_mem:takeover/1,里面会遍历订阅并调用 emqx_broker:unsubscribe/1。
    这种情况通常会伴随 takenover、新的 CONNECT、旧连接断开;如果后面同一个 peername 还持续 PINGREQ/PINGRESP,这个可能性就直接可以排除了。
  3. 客户端真的发了 MQTT UNSUBSCRIBE

root@iZ7xv8yb0il0kz4ozsfp3sZ:~# emqx ctl subscriptions show ‘SvrSub-8.148.245.36-5osojC’
Not Found.
root@iZ7xv8yb0il0kz4ozsfp3sZ:~# curl -u 1f96871c546e582e:LGak9A6xz9AWjH8NMG4eIY9A0DGP1dAjqwaa10eeUGMsAN \

http://127.0.0.1:18083/api/v5/clients/SvrSub-8.148.245.36-5osojC/subscriptions
{“code”:“CLIENTID_NOT_FOUND”,“message”:“Client ID not found”}

root@iZ7xv8yb0il0kz4ozsfp3sZ:/var/log/emqx# cid=‘SvrSub-8.148.245.36-5osojC’
root@iZ7xv8yb0il0kz4ozsfp3sZ:/var/log/emqx# grep “$cid” emqx.log.* \

| egrep ‘SUBSCRIBE|SUBACK|UNSUBSCRIBE|unsubscribe|subscribe|takenover|discarded|client.disconnected|terminate|session|kick|api’
emqx.log.4:2026-06-17T08:59:40.887292+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: SUBSCRIBE(Q1, R0, D0, PacketId=1 TopicFilters=[Device/publish/d/+/telemetry(#{nl => 0,qos => 1,rap => 0,rh => 0})]), tag: MQTT
emqx.log.4:2026-06-17T08:59:40.887557+08:00 [debug] msg: subscribe, mfa: emqx_trace:subscribe/3(79), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, topic: Device/publish/d/+/telemetry, sub_id: <<“SvrSub-8.148.245.36-5osojC”>>, sub_opts: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}, tag: SUBSCRIBE
emqx.log.4:2026-06-17T08:59:40.887785+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: SUBACK(Q0, R0, D0, PacketId=1, ReasonCodes=[1]), tag: MQTT
emqx.log.4:2026-06-17T08:59:40.888040+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: SUBSCRIBE(Q1, R0, D0, PacketId=2 TopicFilters=[Device/publish/d/+/telemetry(#{nl => 0,qos => 1,rap => 0,rh => 0})]), tag: MQTT
emqx.log.4:2026-06-17T08:59:40.888131+08:00 [debug] msg: subscribe, mfa: emqx_trace:subscribe/3(79), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, topic: Device/publish/d/+/telemetry, sub_id: <<“SvrSub-8.148.245.36-5osojC”>>, sub_opts: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}, tag: SUBSCRIBE
emqx.log.4:2026-06-17T08:59:40.888242+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: SUBACK(Q0, R0, D0, PacketId=2, ReasonCodes=[1]), tag: MQTT
emqx.log.4:2026-06-17T19:07:51.181284+08:00 [debug] msg: unsubscribe, mfa: emqx_trace:unsubscribe/2(84), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, topic: Device/publish/d/+/telemetry, sub_opts: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{},subid => <<“SvrSub-8.148.245.36-5osojC”>>}, tag: UNSUBSCRIBE
emqx.log.5:2026-06-18T04:30:01.412855+08:00 [debug] msg: bridge_action, mfa: emqx_rule_runtime:do_handle_action/4(371), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, bridge_id: {bridge_v2,http,client_disconnected_WH_D}, tag: BRIDGE
emqx.log.5:2026-06-18T04:35:01.413652+08:00 [debug] msg: emqx_connection_terminated, mfa: emqx_connection:terminate/2(668), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, reason: {shutdown,expired}, tag: SOCKET
emqx.log.5:2026-06-18T04:35:01.413822+08:00 [info] msg: terminate, mfa: emqx_connection:terminate/2(673), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, reason: {shutdown,expired}

2026-06-17T19:06:27.146990+08:00至2026-06-17T19:10:56.494770+08:00的所有日志信息:
2026-06-17T19:06:27.146990+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 39.144.129.217:51649, clientid: 860843085550061, bin: C000, size: 2, type: hex
2026-06-17T19:06:27.147168+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 39.144.129.217:51649, clientid: 860843085550061, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:06:27.147263+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 39.144.129.217:51649, clientid: 860843085550061, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:06:43.563798+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 111.55.204.110:41602, clientid: 860843084939018_034000, bin: C000, size: 2, type: hex
2026-06-17T19:06:43.563974+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 111.55.204.110:41602, clientid: 860843084939018_034000, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:06:43.564066+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 111.55.204.110:41602, clientid: 860843084939018_034000, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:06:50.049504+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, bin: 30950100274465766963652F7075626C6973682F642F3734653964383139626266652F74656C656D657472797B2252454D41494E5F494E464F223A223535203131203230203035203038203037204430203037204239203030203046203030203744203631222C225258223A223535203131203230203035203038203037204430203037204239203030203046203030203744203631227D, size: 152, type: hex
2026-06-17T19:06:50.049694+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/74e9d819bbfe/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”:“55 11 20 05 08 07 D0 07 B9 00 0F 00 7D 61”,“RX”:“55 11 20 05 08 07 D0 07 B9 00 0F 00 7D 61”}), tag: MQTT
2026-06-17T19:06:50.049809+08:00 [info] msg: authorization_permission_allowed, mfa: emqx_authz:log_allowed/1(507), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, topic: Device/publish/d/74e9d819bbfe/telemetry, ipaddr: {8,148,245,36}, is_superuser: true, username: <<“admin_svr”>>
2026-06-17T19:06:50.049897+08:00 [debug] msg: publish_to, mfa: emqx_trace:publish/1(74), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, topic: Device/publish/d/74e9d819bbfe/telemetry, payload: {“REMAIN_INFO”:“55 11 20 05 08 07 D0 07 B9 00 0F 00 7D 61”,“RX”:“55 11 20 05 08 07 D0 07 B9 00 0F 00 7D 61”}, tag: PUBLISH
2026-06-17T19:06:50.050050+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/74e9d819bbfe/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”:“55 11 20 05 08 07 D0 07 B9 00 0F 00 7D 61”,“RX”:“55 11 20 05 08 07 D0 07 B9 00 0F 00 7D 61”}), tag: MQTT
2026-06-17T19:06:51.176581+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, bin: C000, size: 2, type: hex
2026-06-17T19:06:51.176726+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:06:51.176809+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:06:51.176897+08:00 [debug] msg: check_oom, mfa: emqx_connection:check_oom/1(1098), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, policy: #{enable => true,max_heap_size => 4194304,max_mailbox_size => 1000}
2026-06-17T19:06:52.924352+08:00 [info] msg: dashboard_login_successful, mfa: emqx_dashboard_api:login/2(223), username: <<“admin”>>
2026-06-17T19:06:56.490647+08:00 [debug] event=send_data_succeeded socket=“#Port<0.3316661>”
2026-06-17T19:06:56.490741+08:00 [debug] message=ping event=transmission_succeeded driver=tcp socket=“#Port<0.3316661>”
2026-06-17T19:06:56.490839+08:00 [debug] event=ping_received driver=tcp socket=“#Port<0.3316651>” peer=“127.0.0.1:54098” action=ignore
2026-06-17T19:07:16.620765+08:00 [debug] event=ping_received driver=tcp socket=“#Port<0.3875831>” peer=“127.0.0.1:6508” action=ignore
2026-06-17T19:07:16.620717+08:00 [debug] event=send_data_succeeded socket=“#Port<0.3875827>”
2026-06-17T19:07:16.620836+08:00 [debug] message=ping event=transmission_succeeded driver=tcp socket=“#Port<0.3875827>”
2026-06-17T19:07:17.978218+08:00 [debug] msg: unsubscribe, mfa: emqx_trace:unsubscribe/2(84), peername: 61.141.174.213:3833, clientid: 1CDBD4128FF8, topic: Server/publish/d/1CDBD4128FF8/attributes, sub_opts: #{nl => 0,qos => 0,rap => 0,rh => 0,sub_props => #{},subid => <<“1CDBD4128FF8”>>}, tag: UNSUBSCRIBE
2026-06-17T19:07:24.593220+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 61.141.174.213:3833, clientid: 1CDBD4128FF8, bin: C000, size: 2, type: hex
2026-06-17T19:07:24.593364+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 61.141.174.213:3833, clientid: 1CDBD4128FF8, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:07:24.593451+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 61.141.174.213:3833, clientid: 1CDBD4128FF8, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:07:27.178849+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 39.144.129.217:51649, clientid: 860843085550061, bin: C000, size: 2, type: hex
2026-06-17T19:07:27.179023+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 39.144.129.217:51649, clientid: 860843085550061, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:07:27.179095+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 39.144.129.217:51649, clientid: 860843085550061, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:07:34.742162+08:00 [debug] msg: unsubscribe, mfa: emqx_trace:unsubscribe/2(84), peername: 111.55.204.110:41602, clientid: 860843084939018_034000, topic: Server/publish/d/860843084939018/attributes, sub_opts: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{},subid => <<“860843084939018_034000”>>}, tag: UNSUBSCRIBE
2026-06-17T19:07:44.218315+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 111.55.204.110:41602, clientid: 860843084939018_034000, bin: C000, size: 2, type: hex
2026-06-17T19:07:44.218478+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 111.55.204.110:41602, clientid: 860843084939018_034000, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:07:44.218543+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 111.55.204.110:41602, clientid: 860843084939018_034000, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:07:51.181284+08:00 [debug] msg: unsubscribe, mfa: emqx_trace:unsubscribe/2(84), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, topic: Device/publish/d/+/telemetry, sub_opts: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{},subid => <<“SvrSub-8.148.245.36-5osojC”>>}, tag: UNSUBSCRIBE
2026-06-17T19:07:56.491692+08:00 [debug] event=send_data_succeeded socket=“#Port<0.3316661>”
2026-06-17T19:07:56.491833+08:00 [debug] event=ping_received driver=tcp socket=“#Port<0.3316651>” peer=“127.0.0.1:54098” action=ignore
2026-06-17T19:07:56.491877+08:00 [debug] message=ping event=transmission_succeeded driver=tcp socket=“#Port<0.3316661>”
2026-06-17T19:07:56.522198+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, bin: 30950100274465766963652F7075626C6973682F642F6434323738376531396133652F74656C656D657472797B2252454D41494E5F494E464F223A223535203131203230203035203038203133203838203039204538203030203145203030203245203136222C225258223A223535203131203230203035203038203133203838203039204538203030203145203030203245203136227D, size: 152, type: hex
2026-06-17T19:07:56.522331+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/d42787e19a3e/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”:“55 11 20 05 08 13 88 09 E8 00 1E 00 2E 16”,“RX”:“55 11 20 05 08 13 88 09 E8 00 1E 00 2E 16”}), tag: MQTT
2026-06-17T19:07:56.522425+08:00 [info] msg: authorization_permission_allowed, mfa: emqx_authz:log_allowed/1(507), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, topic: Device/publish/d/d42787e19a3e/telemetry, ipaddr: {8,148,245,36}, is_superuser: true, username: <<“admin_svr”>>
2026-06-17T19:07:56.522512+08:00 [debug] msg: publish_to, mfa: emqx_trace:publish/1(74), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, topic: Device/publish/d/d42787e19a3e/telemetry, payload: {“REMAIN_INFO”:“55 11 20 05 08 13 88 09 E8 00 1E 00 2E 16”,“RX”:“55 11 20 05 08 13 88 09 E8 00 1E 00 2E 16”}, tag: PUBLISH
2026-06-17T19:08:04.213960+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, bin: 30950100274465766963652F7075626C6973682F642F3734653964383139623938652F74656C656D657472797B2252454D41494E5F494E464F223A223535203131203230203035203038203037204430203030203030203030203046203030203030203234222C225258223A223535203131203230203035203038203037204430203030203030203030203046203030203030203234227D, size: 152, type: hex
2026-06-17T19:08:04.214159+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/74e9d819b98e/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”:“55 11 20 05 08 07 D0 00 00 00 0F 00 00 24”,“RX”:“55 11 20 05 08 07 D0 00 00 00 0F 00 00 24”}), tag: MQTT
2026-06-17T19:08:04.214258+08:00 [info] msg: authorization_permission_allowed, mfa: emqx_authz:log_allowed/1(507), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, topic: Device/publish/d/74e9d819b98e/telemetry, ipaddr: {8,148,245,36}, is_superuser: true, username: <<“admin_svr”>>
2026-06-17T19:08:04.214346+08:00 [debug] msg: publish_to, mfa: emqx_trace:publish/1(74), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, topic: Device/publish/d/74e9d819b98e/telemetry, payload: {“REMAIN_INFO”:“55 11 20 05 08 07 D0 00 00 00 0F 00 00 24”,“RX”:“55 11 20 05 08 07 D0 00 00 00 0F 00 00 24”}, tag: PUBLISH
2026-06-17T19:08:04.722288+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, bin: C000, size: 2, type: hex
2026-06-17T19:08:04.722410+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:08:04.722468+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:08:16.621657+08:00 [debug] event=send_data_succeeded socket=“#Port<0.3875827>”
2026-06-17T19:08:16.621760+08:00 [debug] message=ping event=transmission_succeeded driver=tcp socket=“#Port<0.3875827>”
2026-06-17T19:08:16.621886+08:00 [debug] event=ping_received driver=tcp socket=“#Port<0.3875831>” peer=“127.0.0.1:6508” action=ignore
2026-06-17T19:08:24.718362+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 61.141.174.213:3833, clientid: 1CDBD4128FF8, bin: C000, size: 2, type: hex
2026-06-17T19:08:24.718534+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 61.141.174.213:3833, clientid: 1CDBD4128FF8, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:08:24.718625+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 61.141.174.213:3833, clientid: 1CDBD4128FF8, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:08:25.994530+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, bin: 309B01002A4465766963652F7075626C6973682F642F3836383934373035313231313732332F74656C656D657472797B2252454D41494E5F494E464F223A20223535203131203230203035203038203037206430203030203030203030203066203030203030203234222C20225258223A20223535203131203230203035203038203037206430203030203030203030203066203030203030203234227D, size: 158, type: hex
2026-06-17T19:08:25.994708+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/868947051211723/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”: “55 11 20 05 08 07 d0 00 00 00 0f 00 00 24”, “RX”: “55 11 20 05 08 07 d0 00 00 00 0f 00 00 24”}), tag: MQTT
2026-06-17T19:08:25.994837+08:00 [info] msg: authorization_permission_allowed, mfa: emqx_authz:log_allowed/1(507), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, topic: Device/publish/d/868947051211723/telemetry, ipaddr: {8,148,245,36}, is_superuser: true, username: <<“admin_svr”>>
2026-06-17T19:08:25.994939+08:00 [debug] msg: publish_to, mfa: emqx_trace:publish/1(74), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, topic: Device/publish/d/868947051211723/telemetry, payload: {“REMAIN_INFO”: “55 11 20 05 08 07 d0 00 00 00 0f 00 00 24”, “RX”: “55 11 20 05 08 07 d0 00 00 00 0f 00 00 24”}, tag: PUBLISH
2026-06-17T19:08:27.178871+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 39.144.129.217:51649, clientid: 860843085550061, bin: C000, size: 2, type: hex
2026-06-17T19:08:27.179042+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 39.144.129.217:51649, clientid: 860843085550061, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:08:27.179159+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 39.144.129.217:51649, clientid: 860843085550061, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:08:44.228920+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 111.55.204.110:41602, clientid: 860843084939018_034000, bin: C000, size: 2, type: hex
2026-06-17T19:08:44.229099+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 111.55.204.110:41602, clientid: 860843084939018_034000, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:08:44.229191+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 111.55.204.110:41602, clientid: 860843084939018_034000, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:08:51.176754+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, bin: C000, size: 2, type: hex
2026-06-17T19:08:51.176928+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:08:51.176987+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:08:56.258589+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, bin: 30950100274465766963652F7075626C6973682F642F6434323738376531396133652F74656C656D657472797B2252454D41494E5F494E464F223A223535203131203230203035203038203133203838203039204537203030203145203030203245203135222C225258223A223535203131203230203035203038203133203838203039204537203030203145203030203245203135227D, size: 152, type: hex
2026-06-17T19:08:56.258778+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/d42787e19a3e/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”:“55 11 20 05 08 13 88 09 E7 00 1E 00 2E 15”,“RX”:“55 11 20 05 08 13 88 09 E7 00 1E 00 2E 15”}), tag: MQTT
2026-06-17T19:08:56.258915+08:00 [debug] msg: publish_to, mfa: emqx_trace:publish/1(74), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, topic: Device/publish/d/d42787e19a3e/telemetry, payload: {“REMAIN_INFO”:“55 11 20 05 08 13 88 09 E7 00 1E 00 2E 15”,“RX”:“55 11 20 05 08 13 88 09 E7 00 1E 00 2E 15”}, tag: PUBLISH
2026-06-17T19:08:56.492668+08:00 [debug] event=send_data_succeeded socket=“#Port<0.3316661>”
2026-06-17T19:08:56.492708+08:00 [debug] event=ping_received driver=tcp socket=“#Port<0.3316651>” peer=“127.0.0.1:54098” action=ignore
2026-06-17T19:08:56.492759+08:00 [debug] message=ping event=transmission_succeeded driver=tcp socket=“#Port<0.3316661>”
2026-06-17T19:09:16.622664+08:00 [debug] event=send_data_succeeded socket=“#Port<0.3875827>”
2026-06-17T19:09:16.622793+08:00 [debug] message=ping event=transmission_succeeded driver=tcp socket=“#Port<0.3875827>”
2026-06-17T19:09:16.622788+08:00 [debug] event=ping_received driver=tcp socket=“#Port<0.3875831>” peer=“127.0.0.1:6508” action=ignore
2026-06-17T19:09:24.812832+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 61.141.174.213:3833, clientid: 1CDBD4128FF8, bin: C000, size: 2, type: hex
2026-06-17T19:09:24.813009+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 61.141.174.213:3833, clientid: 1CDBD4128FF8, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:09:24.813096+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 61.141.174.213:3833, clientid: 1CDBD4128FF8, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:09:27.174894+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 39.144.129.217:51649, clientid: 860843085550061, bin: C000, size: 2, type: hex
2026-06-17T19:09:27.175068+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 39.144.129.217:51649, clientid: 860843085550061, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:09:27.175168+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 39.144.129.217:51649, clientid: 860843085550061, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:09:43.673922+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 111.55.204.110:41602, clientid: 860843084939018_034000, bin: C000, size: 2, type: hex
2026-06-17T19:09:43.674086+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 111.55.204.110:41602, clientid: 860843084939018_034000, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:09:43.674173+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 111.55.204.110:41602, clientid: 860843084939018_034000, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:09:56.493775+08:00 [debug] event=ping_received driver=tcp socket=“#Port<0.3316651>” peer=“127.0.0.1:54098” action=ignore
2026-06-17T19:09:56.493721+08:00 [debug] event=send_data_succeeded socket=“#Port<0.3316661>”
2026-06-17T19:09:56.493834+08:00 [debug] message=ping event=transmission_succeeded driver=tcp socket=“#Port<0.3316661>”
2026-06-17T19:10:03.703926+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, bin: 30950100274465766963652F7075626C6973682F642F3734653964383139623938652F74656C656D657472797B2252454D41494E5F494E464F223A223535203131203230203035203038203037204430203030203030203030203046203030203030203234222C225258223A223535203131203230203035203038203037204430203030203030203030203046203030203030203234227D, size: 152, type: hex
2026-06-17T19:10:03.704123+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, packet: PUBLISH(Q0, R0, D0, Topic=Device/publish/d/74e9d819b98e/telemetry, PacketId=undefined, Payload={“REMAIN_INFO”:“55 11 20 05 08 07 D0 00 00 00 0F 00 00 24”,“RX”:“55 11 20 05 08 07 D0 00 00 00 0F 00 00 24”}), tag: MQTT
2026-06-17T19:10:03.704260+08:00 [info] msg: authorization_permission_allowed, mfa: emqx_authz:log_allowed/1(507), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, topic: Device/publish/d/74e9d819b98e/telemetry, ipaddr: {8,148,245,36}, is_superuser: true, username: <<“admin_svr”>>
2026-06-17T19:10:03.704345+08:00 [debug] msg: publish_to, mfa: emqx_trace:publish/1(74), peername: 8.148.245.36:24266, clientid: SvrPub-8.148.245.36-E32Nbf, topic: Device/publish/d/74e9d819b98e/telemetry, payload: {“REMAIN_INFO”:“55 11 20 05 08 07 D0 00 00 00 0F 00 00 24”,“RX”:“55 11 20 05 08 07 D0 00 00 00 0F 00 00 24”}, tag: PUBLISH
2026-06-17T19:10:16.623719+08:00 [debug] event=send_data_succeeded socket=“#Port<0.3875827>”
2026-06-17T19:10:16.623862+08:00 [debug] message=ping event=transmission_succeeded driver=tcp socket=“#Port<0.3875827>”
2026-06-17T19:10:16.623850+08:00 [debug] event=ping_received driver=tcp socket=“#Port<0.3875831>” peer=“127.0.0.1:6508” action=ignore
2026-06-17T19:10:24.918332+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 61.141.174.213:3833, clientid: 1CDBD4128FF8, bin: C000, size: 2, type: hex
2026-06-17T19:10:24.918502+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 61.141.174.213:3833, clientid: 1CDBD4128FF8, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:10:24.918592+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 61.141.174.213:3833, clientid: 1CDBD4128FF8, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:10:27.204088+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 39.144.129.217:51649, clientid: 860843085550061, bin: C000, size: 2, type: hex
2026-06-17T19:10:27.204254+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 39.144.129.217:51649, clientid: 860843085550061, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:10:27.204344+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 39.144.129.217:51649, clientid: 860843085550061, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:10:44.003510+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 111.55.204.110:41602, clientid: 860843084939018_034000, bin: C000, size: 2, type: hex
2026-06-17T19:10:44.003680+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 111.55.204.110:41602, clientid: 860843084939018_034000, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:10:44.003785+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 111.55.204.110:41602, clientid: 860843084939018_034000, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:10:51.176870+08:00 [debug] msg: raw_bin_received, mfa: emqx_connection:when_bytes_in/3(778), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, bin: C000, size: 2, type: hex
2026-06-17T19:10:51.177039+08:00 [debug] msg: mqtt_packet_received, mfa: emqx_connection:handle_msg/2(575), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGREQ(Q0, R0, D0), tag: MQTT
2026-06-17T19:10:51.177125+08:00 [debug] msg: mqtt_packet_sent, mfa: emqx_connection:serialize_and_inc_stats_fun/1(882), peername: 8.148.245.36:24282, clientid: SvrSub-8.148.245.36-5osojC, packet: PINGRESP(Q0, R0, D0), tag: MQTT
2026-06-17T19:10:56.494721+08:00 [debug] event=send_data_succeeded socket=“#Port<0.3316661>”
2026-06-17T19:10:56.494825+08:00 [debug] message=ping event=transmission_succeeded driver=tcp socket=“#Port<0.3316661>”
2026-06-17T19:10:56.494770+08:00 [debug] event=ping_received driver=tcp socket=“#Port<0.3316651>” peer=“127.0.0.1:54098” action=ignore

先把你贴出来的 API Key/Secret 撤销。curl -u ... 里的密钥已经发到公网了,别继续用这组 key。

这次日志更关键:不是单个 SvrSub-8.148.245.36-5osojC 异常。19:07:17、19:07:34、19:07:51 三个不同 Client ID 都出现了 emqx_trace:unsubscribe/2,而且后面还继续 PINGREQ/PINGRESP,这基本可以排除客户端断连、同 Client ID 接管、单个客户端库自己取消订阅
现在更怀疑管理面操作:Dashboard / REST API / CLI 触发了 broker 侧取消订阅。你日志里 19:06:52 有一条:

msg: dashboard_login_successful ... username: <<"admin">>

它刚好在这些 unsubscribe 前一分钟。先查审计日志,不要只查 emqx.log

grep -nE '19:06|19:07|unsubscribe|subscriptions|clients/.*/unsubscribe|dashboard|rest_api|api_key|jwt_token' /opt/emqx/log/audit.log*

如果审计日志没开,先开审计后复现一次,并把 ignore_high_frequency_request 临时设成 false

log.audit {
  path = "./log/audit.log"
  ignore_high_frequency_request = false
}

同时在复现前后看两个计数:

emqx ctl broker metrics | egrep 'client.unsubscribe|packets.unsubscribe.received'

如果 packets.unsubscribe.received 没涨,但 client.unsubscribe 涨了,基本就是内部/管理面取消订阅,不是 MQTT 客户端发的 UNSUBSCRIBE

还有一点:你后面查到 CLIENTID_NOT_FOUND,只能说明查询时这个客户端已经不在线了。它不能反推 19:07:51 那一刻客户端不在线;19:08:51、19:10:51 的 PING 日志已经说明当时连接还活着。
如果审计日志里也没有 Dashboard / REST API / CLI 记录,那这组证据就够明确是个 bug 了:EMQX 5.4.0 单机、多个在线连接在无 MQTT UNSUBSCRIBE 报文的情况下发生 broker.unsubscribe