开源版(5.8.6)网关连接不上emqx,Webhooks里配置的相关存储数据逻辑,没有调用到。以下是相关日志

2025-10-31T14:16:00.586765+08:00 [debug] clientid: 145060600691, msg: emqx_channel_takeover_end, peername: 39.144.129.26:8278, username: test
2025-10-31T14:16:00.586938+08:00 [debug] tag: SOCKET, clientid: 145060600691, msg: emqx_connection_terminated, peername: 39.144.129.26:8278, username: test, reason: {shutdown,takenover}
2025-10-31T14:16:00.587012+08:00 [info] clientid: 145060600691, msg: terminate, peername: 39.144.129.26:8278, username: test, reason: {shutdown,takenover}
2025-10-31T14:16:00.587153+08:00 [debug] clientid: 145060600691, msg: insert_channel_info, peername: 39.144.129.26:8279, username: test
2025-10-31T14:16:00.587335+08:00 [debug] msg: emqx_cm_clean_down, client_id: <<“145060600691”>>
2025-10-31T14:16:00.587558+08:00 [debug] tag: MQTT, clientid: 145060600691, msg: mqtt_packet_sent, peername: 39.144.129.26:8279, username: test, packet: CONNACK(Q0, R0, D0, AckFlags=1, ReasonCode=0)
2025-10-31T14:16:00.720556+08:00 [debug] tag: MQTT, clientid: 145060600691, msg: raw_bin_received, peername: 39.144.129.26:8279, username: test, size: 24, type: hex, bin: 8216000200112F746573742F757365722F75706461746500
2025-10-31T14:16:00.720932+08:00 [debug] tag: MQTT, clientid: 145060600691, msg: mqtt_packet_received, peername: 39.144.129.26:8279, username: test, packet: SUBSCRIBE(Q1, R0, D0, PacketId=2 TopicFilters=[/test/user/update(#{nl => 0,qos => 0,rap => 0,rh => 0})])
2025-10-31T14:16:00.721125+08:00 [debug] tag: AUTHZ, clientid: 145060600691, msg: authorization_module_ignore, peername: 39.144.129.26:8279, username: test, topic: /test/user/update, module: emqx_authz_client_info, action: SUBSCRIBE(Q0), authorize_type: client_info
2025-10-31T14:16:00.721285+08:00 [debug] tag: AUTHZ, clientid: 145060600691, msg: authorization_matched_allow, peername: 39.144.129.26:8279, username: test, topic: /test/user/update, module: emqx_authz_file, action: SUBSCRIBE(Q0), authorize_type: file
2025-10-31T14:16:00.721392+08:00 [info] tag: AUTHZ, clientid: 145060600691, msg: authorization_permission_allowed, peername: 39.144.129.26:8279, username: test, topic: /test/user/update, action: SUBSCRIBE(Q0), source: file
2025-10-31T14:16:00.721710+08:00 [debug] tag: SUBSCRIBE, clientid: 145060600691, msg: subscribe, peername: 39.144.129.26:8279, username: test, topic: /test/user/update, sub_id: <<“145060600691”>>, sub_opts: #{nl => 0,qos => 0,rap => 0,rh => 0,sub_props => #{}}
2025-10-31T14:16:00.721997+08:00 [debug] tag: MQTT, clientid: 145060600691, msg: mqtt_packet_sent, peername: 39.144.129.26:8279, username: test, packet: SUBACK(Q0, R0, D0, PacketId=2, ReasonCodes=[0])
2025-10-31T14:16:00.722277+08:00 [debug] clientid: 145060600691, msg: insert_channel_info, peername: 39.144.129.26:8279, username: test
2025-10-31T14:16:00.722660+08:00 [debug] tag: MQTT, clientid: 145060600691, msg: mqtt_packet_sent, peername: 39.144.129.26:8279, username: test, packet: PUBLISH(Q0, R1, D0, Topic=/test/user/update, PacketId=undefined, Payload(text)={“did”:“603010000019”,“sdid”:“000000000001”,“productid”:“203010001”,“mt”:“update”,“mid”:“c31f0f5-0f8d-40bf-a0ea-3dde2637b186”,“ts”:1.76189e+12,“data”:{“pros”:{“010001”:0,“010011”:229.573,“010012”:0,“010013”:0,“010021”:0,“010022”:0,“010023”:0,“010100”:0,“010101”:0,“010102”:0,“010103”:0,“010112”:1,“010113”:1,“010114”:1,“010115”:1,“010116”:4.996,“010201”:31.92,“010202”:29.06,“010203”:30.04,“030010”:751586,“030020”:528326,“030030”:858875,“030040”:801815,“030050”:911704,“030060”:334553,“030070”:802951,“030080”:789188,“030000”:340286,“000003”:1,“000005”:0,“000002”:“000”}}})
2025-10-31T14:16:14.128856+08:00 [debug] tag: MQTT, clientid: westinghouseDataLoop, msg: raw_bin_received, peername: 139.224.66.219:57900, username: test, size: 2, type: hex, bin: C000
2025-10-31T14:16:14.129079+08:00 [debug] tag: MQTT, clientid: westinghouseDataLoop, msg: mqtt_packet_received, peername: 139.224.66.219:57900, username: test, packet: PINGREQ(Q0, R0, D0)
2025-10-31T14:16:14.129222+08:00 [debug] tag: MQTT, clientid: westinghouseDataLoop, msg: mqtt_packet_sent, peername: 139.224.66.219:57900, username: test, packet: PINGRESP(Q0, R0, D0)
2025-10-31T14:16:14.129418+08:00 [debug] tag: MQTT, clientid: westinghouseDataLocal, msg: raw_bin_received, peername: 139.224.66.219:57902, username: test, size: 2, type: hex, bin: C000
2025-10-31T14:16:14.129666+08:00 [debug] tag: MQTT, clientid: westinghouseDataLocal, msg: mqtt_packet_received, peername: 139.66.219.218:57902, username: test, packet: PINGREQ(Q0, R0, D0)
2025-10-31T14:16:14.129890+08:00 [debug] tag: MQTT, clientid: westinghouseDataLocal, msg: mqtt_packet_sent, peername: 139.224.66.219:57902, username: test, packet: PINGRESP(Q0, R0, D0)
2025-10-31T14:16:35.036631+08:00 [debug] tag: MQTT, clientid: 603010000019, msg: raw_bin_received, peername: 36.19.65.183:39957, username: test, size: 2, type: hex, bin: E000
2025-10-31T14:16:35.036960+08:00 [debug] tag: MQTT, clientid: 603010000019, msg: mqtt_packet_received, peername: 36.19.65.183:39957, username: test, packet: DISCONNECT(Q0, R0, D0, ReasonCode=0)
2025-10-31T14:16:35.037165+08:00 [debug] tag: SOCKET, clientid: 603010000019, msg: socket_force_closed, peername: 36.19.65.183:39957, username: test, reason: normal
2025-10-31T14:16:35.082388+08:00 [debug] tag: MQTT, msg: raw_bin_received, peername: 36.19.65.183:39958, size: 98, type: hex, bin: 106000044D51545404CC003C000C3630333031303030303031390011746573742F757365722F6F66666C696E6500257B22646964223A22363033303130303030303139222C226D74223A226F66666C696E65222C0004746573740006313233343536
2025-10-31T14:16:35.082679+08:00 [debug] tag: MQTT, clientid: 603010000019, msg: mqtt_packet_received, peername: 36.19.65.183:39958, username: test, packet: CONNECT(Q0, R0, D0, ClientId=603010000019, ProtoName=MQTT, ProtoVsn=4, CleanStart=false, KeepAlive=60, Username=test, Password=******, Will(Q1, R0, Topic=test/user/offline Payload(text)={“did”:“603010000019”,“mt”:“offline”,))
2025-10-31T14:16:35.082923+08:00 [debug] tag: QUERY, clientid: 603010000019, msg: mysql_connector_received, peername: 36.19.65.183:39958, username: test, state: #{pool_name => <<“emqx_authn_mysql:3”>>,query_templates => #{{emqx_authn_mysql,prepstmt} => {[<<“SELECT password_hash FROM mqtt_user where username = ? LIMIT 1”>>],}},prepares => ok}, connector: <<“emqx_authn_mysql:3”>>, sql: emqx_authn_mysql
2025-10-31T14:16:35.084033+08:00 [debug] tag: AUTHN, clientid: 603010000019, msg: authenticator_result, peername: 36.19.65.183:39958, username: test, result: {ok,#{is_superuser => false}}, authenticator: <<“password_based:mysql”>>
2025-10-31T14:16:35.084224+08:00 [debug] tag: AUTHN, clientid: 603010000019, msg: authentication_result, peername: 36.19.65.183:39958, username: test, reason: chain_result, result: {stop,{ok,#{is_superuser => false}}}
2025-10-31T14:16:35.084461+08:00 [debug] tag: SUBSCRIBE, clientid: 603010000019, msg: subscribe, peername: 36.19.65.183:39958, username: test, topic: /test/user/connect, sub_id: <<“603010000019”>>, sub_opts: #{nl => 0,qos => 0,rap => 0,rh => 0,sub_props => #{}}
2025-10-31T14:16:35.084703+08:00 [debug] tag: SUBSCRIBE, clientid: 603010000019, msg: subscribe, peername: 36.19.65.183:39958, username: test, topic: /test/user/control, sub_id: <<“603010000019”>>, sub_opts: #{nl => 0,qos => 0,rap => 0,rh => 0,sub_props => #{}}
2025-10-31T14:16:35.084847+08:00 [debug] tag: SUBSCRIBE, clientid: 603010000019, msg: subscribe, peername: 36.19.65.183:39958, username: test, topic: /test/user/event, sub_id: <<“603010000019”>>, sub_opts: #{nl => 0,qos => 0,rap => 0,rh => 0,sub_props => #{}}
2025-10-31T14:16:35.085009+08:00 [debug] tag: SUBSCRIBE, clientid: 603010000019, msg: subscribe, peername: 36.19.65.183:39958, username: test, topic: /test/user/get, sub_id: <<“603010000019”>>, sub_opts: #{nl => 0,qos => 0,rap => 0,rh => 0,sub_props => #{}}
2025-10-31T14:16:35.085141+08:00 [debug] tag: SUBSCRIBE, clientid: 603010000019, msg: subscribe, peername: 36.19.65.183:39958, username: test, topic: /test/user/set, sub_id: <<“603010000019”>>, sub_opts: #{nl => 0,qos => 0,rap => 0,rh => 0,sub_props => #{}}
2025-10-31T14:16:35.085255+08:00 [debug] tag: SUBSCRIBE, clientid: 603010000019, msg: subscribe, peername: 36.19.65.183:39958, username: test, topic: /test/user/set_reply, sub_id: <<“603010000019”>>, sub_opts: #{nl => 0,qos => 0,rap => 0,rh => 0,sub_props => #{}}
2025-10-31T14:16:35.085451+08:00 [debug] tag: SUBSCRIBE, clientid: 603010000019, msg: subscribe, peername: 36.19.65.183:39958, username: test, topic: /test/user/update, sub_id: <<“603010000019”>>, sub_opts: #{nl => 0,qos => 0,rap => 0,rh => 0,sub_props => #{}}
2025-10-31T14:16:35.085696+08:00 [debug] tag: UNSUBSCRIBE, clientid: 603010000019, msg: unsubscribe, peername: 36.19.65.183:39957, username: test, topic: /test/user/connect, sub_opts: #{nl => 0,qos => 0,subid => <<“603010000019”>>,rap => 0,rh => 0,sub_props => #{}}
2025-10-31T14:16:35.085932+08:00 [debug] tag: UNSUBSCRIBE, clientid: 603010000019, msg: unsubscribe, peername: 36.19.65.183:39957, username: test, topic: /test/user/control, sub_opts: #{nl => 0,qos => 0,subid => <<“603010000019”>>,rap => 0,rh => 0,sub_props => #{}}
2025-10-31T14:16:35.086135+08:00 [debug] tag: UNSUBSCRIBE, clientid: 603010000019, msg: unsubscribe, peername: 36.19.65.183:39957, username: test, topic: /test/user/event, sub_opts: #{nl => 0,qos => 0,subid => <<“603010000019”>>,rap => 0,rh => 0,sub_props => #{}}
2025-10-31T14:16:35.086301+08:00 [debug] tag: UNSUBSCRIBE, clientid: 603010000019, msg: unsubscribe, peername: 36.19.65.183:39957, username: test, topic: /test/user/get, sub_opts: #{nl => 0,qos => 0,subid => <<“603010000019”>>,rap => 0,rh => 0,sub_props => #{}}
2025-10-31T14:16:35.086445+08:00 [debug] tag: UNSUBSCRIBE, clientid: 603010000019, msg: unsubscribe, peername: 36.19.65.183:39957, username: test, topic: /test/user/set, sub_opts: #{nl => 0,qos => 0,subid => <<“603010000019”>>,rap => 0,rh => 0,sub_props => #{}}
2025-10-31T14:16:35.086618+08:00 [debug] tag: UNSUBSCRIBE, clientid: 603010000019, msg: unsubscribe, peername: 36.19.65.183:39957, username: test, topic: /test/user/set_reply, sub_opts: #{nl => 0,qos => 0,subid => <<“603010000019”>>,rap => 0,rh => 0,sub_props => #{}}
2025-10-31T14:16:35.086814+08:00 [debug] tag: UNSUBSCRIBE, clientid: 603010000019, msg: unsubscribe, peername: 36.19.65.183:39957, username: test, topic: /test/user/update, sub_opts: #{nl => 0,qos => 0,subid => <<“603010000019”>>,rap => 0,rh => 0,sub_props => #{}}
2025-10-31T14:16:35.086948+08:00 [debug] clientid: 603010000019, msg: emqx_channel_takeover_end, peername: 36.19.65.183:39957, username: test
2025-10-31T14:16:35.087021+08:00 [debug] tag: SOCKET, clientid: 603010000019, msg: emqx_connection_terminated, peername: 36.19.65.183:39957, username: test, reason: {shutdown,takenover}
2025-10-31T14:16:35.087142+08:00 [info] clientid: 603010000019, msg: terminate, peername: 36.19.65.183:39957, username: test, reason: {shutdown,takenover}
2025-10-31T14:16:35.087231+08:00 [debug] clientid: 603010000019, msg: insert_channel_info, peername: 36.19.65.183:39958, username: test
2025-10-31T14:16:35.087358+08:00 [debug] msg: emqx_cm_clean_down, client_id: <<“603010000019”>>
2025-10-31T14:16:35.087443+08:00 [debug] tag: MQTT, clientid: 603010000019, msg: mqtt_packet_sent, peername: 36.19.65.183:39958, username: test, packet: CONNACK(Q0, R0, D0, AckFlags=1, ReasonCode=0)
2025-10-31T14:16:35.215427+08:00 [debug] tag: MQTT, clientid: 603010000019, msg: raw_bin_received, peername: 36.19.65.183:39958, username: test, size: 24, type: hex, bin: 8216000200112F746573742F757365722F75706461746500
2025-10-31T14:16:35.215660+08:00 [debug] tag: MQTT, clientid: 603010000019, msg: mqtt_packet_received, peername: 36.19.65.183:39958, username: test, packet: SUBSCRIBE(Q1, R0, D0, PacketId=2 TopicFilters=[/test/user/update(#{nl => 0,qos => 0,rap => 0,rh => 0})])
2025-10-31T14:16:35.215830+08:00 [debug] tag: AUTHZ, clientid: 603010000019, msg: authorization_module_ignore, peername: 36.19.65.183:39958, username: test, topic: /test/user/update, module: emqx_authz_client_info, action: SUBSCRIBE(Q0), authorize_type: client_info
2025-10-31T14:16:35.215967+08:00 [debug] tag: AUTHZ, clientid: 603010000019, msg: authorization_matched_allow, peername: 36.19.65.183:39958, username: test, topic: /test/user/update, module: emqx_authz_file, action: SUBSCRIBE(Q0), authorize_type: file
2025-10-31T14:16:35.216059+08:00 [info] tag: AUTHZ, clientid: 603010000019, msg: authorization_permission_allowed, peername: 36.19.65.183:39958, username: test, topic: /test/user/update, action: SUBSCRIBE(Q0), source: file
2025-10-31T14:16:35.216208+08:00 [debug] tag: SUBSCRIBE, clientid: 603010000019, msg: subscribe, peername: 36.19.65.183:39958, username: test, topic: /test/user/update, sub_id: <<“603010000019”>>, sub_opts: #{nl => 0,qos => 0,rap => 0,rh => 0,sub_props => #{}}
2025-10-31T14:16:35.216425+08:00 [debug] tag: MQTT, clientid: 603010000019, msg: mqtt_packet_sent, peername: 36.19.65.183:39958, username: test, packet: SUBACK(Q0, R0, D0, PacketId=2, ReasonCodes=[0])
2025-10-31T14:16:35.216728+08:00 [debug] clientid: 603010000019, msg: insert_channel_info, peername: 36.19.65.183:39958, username: test
2025-10-31T14:16:35.216896+08:00 [debug] tag: MQTT, clientid: 603010000019, msg: mqtt_packet_sent, peername: 36.19.65.183:39958, username: test, packet: PUBLISH(Q0, R1, D0, Topic=/test/user/update, PacketId=undefined, Payload(text)={“did”:“603010000019”,“sdid”:“000000000001”,“productid”:“203010001”,“mt”:“update”,“mid”:“c31f0f5-0f8d-40bf-a0ea-3dde2637b186”,“ts”:1.76189e+12,“data”:{“pros”:{“010001”:0,“010011”:229.573,“010012”:0,“010013”:0,“010021”:0,“010022”:0,“010023”:0,“010100”:0,“010101”:0,“010102”:0,“010103”:0,“010112”:1,“010113”:1,“010114”:1,“010115”:1,“010116”:4.996,“010201”:31.92,“010202”:29.06,“010203”:30.04,“030010”:751586,“030020”:528326,“030030”:858875,“030040”:801815,“030050”:911704,“030060”:334553,“030070”:802951,“030080”:789188,“030000”:340286,“000003”:1,“000005”:0,“000002”:“000”}}})
2025-10-31T14:16:35.848227+08:00 [debug] tag: MQTT, clientid: 145060600691, msg: raw_bin_received, peername: 39.144.129.26:8279, username: test, size: 24, type: hex, bin: 8216000300112F746573742F757365722F75706461746500
2025-10-31T14:16:35.848610+08:00 [debug] tag: MQTT, clientid: 145060600691, msg: mqtt_packet_received, peername: 39.144.129.26:8279, username: test, packet: SUBSCRIBE(Q1, R0, D0, PacketId=3 TopicFilters=[/test/user/update(#{nl => 0,qos => 0,rap => 0,rh => 0})])
2025-10-31T14:16:35.848866+08:00 [debug] tag: SUBSCRIBE, clientid: 145060600691, msg: subscribe, peername: 39.144.129.26:8279, username: test, topic: /test/user/update, sub_id: <<“145060600691”>>, sub_opts: #{nl => 0,qos => 0,rap => 0,rh => 0,sub_props => #{}}
2025-10-31T14:16:35.849157+08:00 [debug] tag: MQTT, clientid: 145060600691, msg: mqtt_packet_sent, peername: 39.144.129.26:8279, username: test, packet: SUBACK(Q0, R0, D0, PacketId=3, ReasonCodes=[0])
2025-10-31T14:16:35.849424+08:00 [debug] clientid: 145060600691, msg: insert_channel_info, peername: 39.144.129.26:8279, username: test
2025-10-31T14:16:35.849770+08:00 [debug] tag: MQTT, clientid: 145060600691, msg: mqtt_packet_sent, peername: 39.144.129.26:8279, username: test, packet: PUBLISH(Q0, R1, D0, Topic=/test/user/update, PacketId=undefined, Payload(text)={“did”:“603010000019”,“sdid”:“000000000001”,“productid”:“203010001”,“mt”:“update”,“mid”:“c31f0f5-0f8d-40bf-a0ea-3dde2637b186”,“ts”:1.76189e+12,“data”:{“pros”:{“010001”:0,“010011”:229.573,“010012”:0,“010013”:0,“010021”:0,“010022”:0,“010023”:0,“010100”:0,“010101”:0,“010102”:0,“010103”:0,“010112”:1,“010113”:1,“010114”:1,“010115”:1,“010116”:4.996,“010201”:31.92,“010202”:29.06,“010203”:30.04,“030010”:751586,“030020”:528326,“030030”:858875,“030040”:801815,“030050”:911704,“030060”:334553,“030070”:802951,“030080”:789188,“030000”:340286,“000003”:1,“000005”:0,“000002”:“000”}}})

Trace里面的日志:
2025-10-31T14:16:35.848227+08:00 [debug] tag: MQTT, clientid: 145060600691, msg: raw_bin_received, peername: 39.144.129.26:8279, username: test, size: 24, type: hex, bin: 8216000300112F746573742F757365722F75706461746500

2025-10-31T14:16:35.848549+08:00 [MQTT] 145060600691@39.144.129.26:8279 msg: mqtt_packet_received, packet: SUBSCRIBE(Q1, R0, D0, PacketId=3 TopicFilters=[/test/user/update(#{nl => 0,qos => 0,rap => 0,rh => 0})]), username: test

2025-10-31T14:16:35.848822+08:00 [SUBSCRIBE] 145060600691@39.144.129.26:8279 msg: subscribe, sub_id: 145060600691, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0, sub_props: ], topic: /test/user/update, username: test

2025-10-31T14:16:35.849111+08:00 [MQTT] 145060600691@39.144.129.26:8279 msg: mqtt_packet_sent, packet: SUBACK(Q0, R0, D0, PacketId=3, ReasonCodes=[0]), username: test

2025-10-31T14:16:35.849424+08:00 [debug] clientid: 145060600691, msg: insert_channel_info, peername: 39.144.129.26:8279, username: test

2025-10-31T14:16:35.849688+08:00 [MQTT] 145060600691@39.144.129.26:8279 msg: mqtt_packet_sent, packet: PUBLISH(Q0, R1, D0, Topic=/test/user/update, PacketId=undefined, Payload(text)={“did”:“603010000019”,“sdid”:“000000000001”,“productid”:“203010001”,“mt”:“update”,“mid”:“c31f0f5-0f8d-40bf-a0ea-3dde2637b186”,“ts”:1.76189e+12,“data”:{“pros”:{“010001”:0,“010011”:229.573,“010012”:0,“010013”:0,“010021”:0,“010022”:0,“010023”:0,“010100”:0,“010101”:0,“010102”:0,“010103”:0,“010112”:1,“010113”:1,“010114”:1,“010115”:1,“010116”:4.996,“010201”:31.92,“010202”:29.06,“010203”:30.04,“030010”:751586,“030020”:528326,“030030”:858875,“030040”:801815,“030050”:911704,“030060”:334553,“030070”:802951,“030080”:789188,“030000”:340286,“000003”:1,“000005”:0,“000002”:“000”}}}), username: test

2025-10-31T14:17:10.835408+08:00 [debug] tag: MQTT, clientid: 145060600691, msg: raw_bin_received, peername: 39.144.129.26:8279, username: test, size: 24, type: hex, bin: 8216000400112F746573742F757365722F75706461746500

2025-10-31T14:17:10.835761+08:00 [MQTT] 145060600691@39.144.129.26:8279 msg: mqtt_packet_received, packet: SUBSCRIBE(Q1, R0, D0, PacketId=4 TopicFilters=[/test/user/update(#{nl => 0,qos => 0,rap => 0,rh => 0})]), username: test

2025-10-31T14:17:10.835979+08:00 [AUTHZ] 145060600691@39.144.129.26:8279 msg: authorization_module_ignore, action: SUBSCRIBE(Q0), authorize_type: client_info, module: emqx_authz_client_info, topic: /test/user/update, username: test

2025-10-31T14:17:10.836169+08:00 [AUTHZ] 145060600691@39.144.129.26:8279 msg: authorization_matched_allow, action: SUBSCRIBE(Q0), authorize_type: file, module: emqx_authz_file, topic: /test/user/update, username: test

2025-10-31T14:17:10.836343+08:00 [info] tag: AUTHZ, clientid: 145060600691, msg: authorization_permission_allowed, peername: 39.144.129.26:8279, username: test, topic: /test/user/update, action: SUBSCRIBE(Q0), source: file

开源版(5.8.6)网关连接不上emqx,Webhooks里配置的相关存储数据逻辑,没有调用到

上面这是什么意思?

开源版(5.8.6)网关 这个是什么 ? 网关具体是是什么?
EMQX 的 webhook 配置成什么样子了,没有收到数据?

你的日志里面,可以看得出来,这几个客户端都连上来了,也在发数据。而且没有调用到 webhook 的hooks。
其它的我看不出来。可以展开说说具体什么问题么?

开源版(5.8.6)这个是指emqx的版本,我们是网关连接的,没有描述清楚
客户端在emqx的Dashboard里查看是连接上的。
EMQX 的 webhook 配置成什么样子了,

。我接口里是通过mysql来存储消息的,但是现在mysql里查看没有数据。
图片中接口没有问题。
2025-10-31T14:16:35.087021+08:00 [debug] tag: SOCKET, clientid: 603010000019, msg: emqx_connection_terminated, peername: 36.19.65.183:39957, username: test, reason: {shutdown,takenover} 一直在shutdown,takenover。这个是什么原因啊

  1. 日志里面没有关于 webhook 的,正常配置了 webhook的 debug 日志 会出现CONNECTOR/WEBHOOK 之类的日志。这点非常奇怪,需要你再确定一下:webhook 界面的指标是怎么样的:

    你需要一步步调试,先确定数据能通 http 传到你的 http server,再确定是不是参数不对。

你有 2 个相同603010000019的客户端在互相踢上下线。你需要停掉一个。

1、已经启用了,都成功命中。没有失败数。
2、会不会是由于2个相同设备一直在互相踢,导致一直报【shutdown,takenover】,导致EMQX就无法正常的接受主题数据啊?

都已经成功命中了。说明就已经发了消息了,你可以在你的 http server 那排查一下:

  1. 排查一下 emqx 到你 http server 的网络通不。在 emqx 服务器上使用 curl 直接请示你的接口。
  2. 在 http server 打印出请求参数,是不是符合预期。
  3. 失败要回 500,或者其它不符合的格式才会有失败的。看是不是根本就没有回包。
    如果确定上面 2 步都没有问题,就把 webhook 界面把异步改成同步, HTTP 管道设置为 1.(遇到过有客户的 http server 不支持HTTP 管道的,)先用同步把他调通。

不会,都已经命中了,而且看日志都是有发消息。说明消息已经触发了。

现在又正常了。像这种一会可以,只要重启一下网关,再连接的话,又不行了。是不是我emqx那里没有配置好啊。

如果你能提供完整的日志,就可以更好的分析了。

目前日志没有看到有用的信息,要我用经验帮你这样分析,我的第一感觉就是你的网关有问题。而不是 emqx 配置的问题。

可以提供一下完整出事时的日志文件,排除是不是 EMQX 的问题。

提供emqx.log的日志还是trace的日志?

emqx.log.zip (46.2 KB)
这个是完整的emqx.log

日志中所有的26 条 action 都是成功的。没有一个失败的。
没有看到你说的现象。

grep "tag: ACTION"  emqx.log.1
2025-10-31T13:46:49.320750+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 05:46:49 GMT">>}]},result => ok}, rule_id: <<"saveTopic_WH_D">>, action_info: #{name => saveTopic_WH_D,type => http}, rule_trigger_ts: [1761889609311]
2025-10-31T13:46:52.266427+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 05:46:52 GMT">>}]},result => ok}, rule_id: <<"saveTopic_WH_D">>, action_info: #{name => saveTopic_WH_D,type => http}, rule_trigger_ts: [1761889612257]
2025-10-31T13:46:55.366597+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 05:46:55 GMT">>}]},result => ok}, rule_id: <<"saveTopic_WH_D">>, action_info: #{name => saveTopic_WH_D,type => http}, rule_trigger_ts: [1761889615357]
2025-10-31T13:47:39.338734+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 05:47:39 GMT">>}]},result => ok}, rule_id: <<"saveTopic_WH_D">>, action_info: #{name => saveTopic_WH_D,type => http}, rule_trigger_ts: [1761889659327]
2025-10-31T13:47:39.343814+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 05:47:39 GMT">>}]},result => ok}, rule_id: <<"saveSetReplyValue_WH_D">>, action_info: #{name => saveSetReplyValue_WH_D,type => http}, rule_trigger_ts: [1761889659327]
2025-10-31T13:47:42.341017+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 05:47:42 GMT">>}]},result => ok}, rule_id: <<"saveTopic_WH_D">>, action_info: #{name => saveTopic_WH_D,type => http}, rule_trigger_ts: [1761889662331]
2025-10-31T13:47:42.345963+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 05:47:42 GMT">>}]},result => ok}, rule_id: <<"saveSetReplyValue_WH_D">>, action_info: #{name => saveSetReplyValue_WH_D,type => http}, rule_trigger_ts: [1761889662331]
2025-10-31T13:47:46.201474+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 05:47:46 GMT">>}]},result => ok}, rule_id: <<"saveTopic_WH_D">>, action_info: #{name => saveTopic_WH_D,type => http}, rule_trigger_ts: [1761889666190]
2025-10-31T13:47:46.212715+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 05:47:46 GMT">>}]},result => ok}, rule_id: <<"updateEqu_WH_D">>, action_info: #{name => updateEqu_WH_D,type => http}, rule_trigger_ts: [1761889666190]
2025-10-31T13:47:49.341749+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 05:47:49 GMT">>}]},result => ok}, rule_id: <<"saveTopic_WH_D">>, action_info: #{name => saveTopic_WH_D,type => http}, rule_trigger_ts: [1761889669331]
2025-10-31T13:47:49.353117+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 05:47:49 GMT">>}]},result => ok}, rule_id: <<"updateEqu_WH_D">>, action_info: #{name => updateEqu_WH_D,type => http}, rule_trigger_ts: [1761889669331]
2025-10-31T13:47:52.542023+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 05:47:52 GMT">>}]},result => ok}, rule_id: <<"saveTopic_WH_D">>, action_info: #{name => saveTopic_WH_D,type => http}, rule_trigger_ts: [1761889672530]
2025-10-31T13:47:52.554768+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 05:47:52 GMT">>}]},result => ok}, rule_id: <<"updateEqu_WH_D">>, action_info: #{name => updateEqu_WH_D,type => http}, rule_trigger_ts: [1761889672530]
2025-10-31T13:52:46.369252+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 05:52:46 GMT">>}]},result => ok}, rule_id: <<"saveTopic_WH_D">>, action_info: #{name => saveTopic_WH_D,type => http}, rule_trigger_ts: [1761889966357]
2025-10-31T13:52:46.379771+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 05:52:46 GMT">>}]},result => ok}, rule_id: <<"updateEqu_WH_D">>, action_info: #{name => updateEqu_WH_D,type => http}, rule_trigger_ts: [1761889966357]
2025-10-31T13:57:46.493638+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 05:57:46 GMT">>}]},result => ok}, rule_id: <<"saveTopic_WH_D">>, action_info: #{name => saveTopic_WH_D,type => http}, rule_trigger_ts: [1761890266483]
2025-10-31T13:57:46.500802+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 05:57:46 GMT">>}]},result => ok}, rule_id: <<"offlineGateWay_WH_D">>, action_info: #{name => offlineGateWay_WH_D,type => http}, rule_trigger_ts: [1761890266483]
2025-10-31T14:37:42.138318+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 06:37:42 GMT">>}]},result => ok}, rule_id: <<"saveTopic_WH_D">>, action_info: #{name => saveTopic_WH_D,type => http}, rule_trigger_ts: [1761892662108]
2025-10-31T14:37:42.145534+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 06:37:42 GMT">>}]},result => ok}, rule_id: <<"saveGateWay_WH_D">>, action_info: #{name => saveGateWay_WH_D,type => http}, rule_trigger_ts: [1761892662108]
2025-10-31T14:37:46.108634+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 06:37:46 GMT">>}]},result => ok}, rule_id: <<"saveTopic_WH_D">>, action_info: #{name => saveTopic_WH_D,type => http}, rule_trigger_ts: [1761892666099]
2025-10-31T14:37:49.249004+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 06:37:49 GMT">>}]},result => ok}, rule_id: <<"saveTopic_WH_D">>, action_info: #{name => saveTopic_WH_D,type => http}, rule_trigger_ts: [1761892669239]
2025-10-31T14:37:52.348689+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 06:37:52 GMT">>}]},result => ok}, rule_id: <<"saveTopic_WH_D">>, action_info: #{name => saveTopic_WH_D,type => http}, rule_trigger_ts: [1761892672339]
2025-10-31T14:37:56.131097+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 06:37:56 GMT">>}]},result => ok}, rule_id: <<"saveTopic_WH_D">>, action_info: #{name => saveTopic_WH_D,type => http}, rule_trigger_ts: [1761892676120]
2025-10-31T14:37:56.132717+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 06:37:56 GMT">>}]},result => ok}, rule_id: <<"saveEqu_WH_D">>, action_info: #{name => saveEqu_WH_D,type => http}, rule_trigger_ts: [1761892676120]
2025-10-31T14:38:00.178278+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 06:38:00 GMT">>}]},result => ok}, rule_id: <<"saveTopic_WH_D">>, action_info: #{name => saveTopic_WH_D,type => http}, rule_trigger_ts: [1761892680168]
2025-10-31T14:38:00.183012+08:00 [debug] tag: ACTION, msg: action_success, result: #{response => #{status => 200,headers => [{<<"access-control-allow-credentials">>,<<"true">>},{<<"access-control-allow-methods">>,<<"POST, GET, PATCH, DELETE, PUT">>},{<<"access-control-max-age">>,<<"3600">>},{<<"content-length">>,<<"0">>},{<<"date">>,<<"Fri, 31 Oct 2025 06:38:00 GMT">>}]},result => ok}, rule_id: <<"saveSetReplyValue_WH_D">>, action_info: #{name => saveSetReplyValue_WH_D,type => http}, rule_trigger_ts: [1761892680168]

为什么我配置的Webhooks一直没有执行。这个是我配置的


没看出来,从图中我只看到了命中 3208,成功 3207,并不是你说的

设备一开始连接上来的时候,Webhooks没有执行,要过1个多小时后,Webhooks里的配置才执行

建议您可以自己 debug 一下。看日志里面设备发布消息后是不是马上就有那个 action 的动作。
从你的日志里面看到的情况就是只要有客户端发了消息,都会有 action 动作的。

还有1个奇怪的现象,如果把emqx重启一下,然后让设备来连接的话,就不需要等很久,就能连上,并且Webhooks也能执行。

看你非常的纠结,从现象上看也非常像是emqx的bug。我觉得可以tcpdump在emqx侧抓一下到你web server的包,让我看看,否则你说的这些现象我在日志中完全没找到,无法定位问题