wss连接报错断开

emqx版本:5.8
日志显示:

2024-11-06T07:00:21.249677+00:00 [error] crasher: initial call: cowboy_tls:connection_process/4, pid: <0.1386228.0>, registered_name: , error: {{badmatch,53512},[{emqx_ws_connection,handle_outgoing,2,[{file,“emqx_ws_connection.erl”},{line,814}]},{emqx_ws_connection,websocket_info,2,[{file,“emqx_ws_connection.erl”},{line,998}]},{cowboy_websocket,handler_call,6,[{file,“cowboy_websocket.erl”},{line,487}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,251}]}]}, ancestors: [<0.3879.0>,<0.3878.0>,ranch_sup,<0.3557.0>], message_queue_len: 0, messages: , links: [<0.3879.0>], dictionary: [{{#{action_type => subscribe,qos => 0},<<“thing/product/7CTDM4100BP6VW/drc/up”>>},{allow,1730876417750}},{guid,{1730876420489499,157651070953204,22}},{send_msg,101},{outgoing_bytes,0},{incoming_bytes,2222},{‘$logger_metadata$’,#{peername => “36.24.42.235:4450”,username => <<“adminflight”>>,clientid => <<“1821706071350194177-1730876056937”>>}},{send_oct,53512},{send_cnt,103},{recv_oct,2222},{recv_cnt,23},{{#{retain => false,action_type => publish,qos => 0},<<“thing/product/7CTDM4100BP6VW/drc/down”>>},{allow,1730876417748}},{authz_keys_q,{[{#{action_type => subscribe,qos => 0},<<“thing/product/7CTDM4100BP6VW/drc/up”>>}],[{#{retain => false,action_type => publish,qos => 0},<<“thing/product/7CTDM4100BP6VW/drc/down”>>}]}},{outgoing_pubs,0},{‘send_msg.qos0’,101},{incoming_pubs,21},{send_pkt,103},{‘recv_msg.qos0’,21},{authz_cache_size,2},{recv_msg,21},{recv_pkt,23}], trap_exit: true, status: running, heap_size: 6772, stack_size: 28, reductions: 501627; neighbours:
2024-11-06T07:00:25.019705+00:00 [MQTT] 1821706071350194177-1730876056937@36.24.42.235:4468 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=1821706071350194177-1730876056937, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=5, Username=adminflight, Password=******), username: adminflight
2024-11-06T07:00:25.019846+00:00 [AUTHN] 1821706071350194177-1730876056937@36.24.42.235:4468 msg: authentication_result, reason: empty_chain, result: ignore, username: adminflight

2024-11-06T07:00:28.591024+00:00 [SOCKET] 1821706071350194177-1730876056937@36.24.42.235:4468 msg: websocket_terminated, reason: {crash,error,{badmatch,54234}}, username: adminflight
2024-11-06T07:00:28.591116+00:00 [error] crasher: initial call: cowboy_tls:connection_process/4, pid: <0.1386239.0>, registered_name: , error: {{badmatch,54234},[{emqx_ws_connection,handle_outgoing,2,[{file,“emqx_ws_connection.erl”},{line,814}]},{emqx_ws_connection,websocket_info,2,[{file,“emqx_ws_connection.erl”},{line,998}]},{cowboy_websocket,handler_call,6,[{file,“cowboy_websocket.erl”},{line,487}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,251}]}]}, ancestors: [<0.3879.0>,<0.3878.0>,ranch_sup,<0.3557.0>], message_queue_len: 2, messages: [{deliver,<<“thing/product/7CTDM4100BP6VW/drc/up”>>,{message,<<0,6,38,57,18,173,30,226,143,98,0,21,38,235,1,236>>,1,<<“7CTDM4100BP6VW-1730876407800”>>,#{dup => false,retain => false},#{peername => {{218,71,45,183},52628},protocol => mqtt,username => <<“7CTDM4100BP6VW”>>,peerhost => {218,71,45,183},properties => #{},proto_ver => 4,client_attrs => #{}},<<“thing/product/7CTDM4100BP6VW/drc/up”>>,<<“{"data": {"liveview_delay_list": [{"errcode": 513001, "liveview_delay": -1, "video_id": "1581F6Q8D245500D5CMP/81-0-0/normal-0"}], "sdr_cmd_delay": 22, "stick_delay": 5}, "method": "delay_info_push", "seq": 12301, "timestamp": 1730876428450}”>>,1730876428590,#{}}},{deliver,<<“thing/product/7CTDM4100BP6VW/drc/up”>>,{message,<<0,6,38,57,18,173,31,199,143,98,0,21,38,235,1,237>>,1,<<“7CTDM4100BP6VW-1730876407800”>>,#{dup => false,retain => false},#{peername => {{218,71,45,183},52628},protocol => mqtt,username => <<“7CTDM4100BP6VW”>>,peerhost => {218,71,45,183},properties => #{},proto_ver => 4,client_attrs => #{}},<<“thing/product/7CTDM4100BP6VW/drc/up”>>,<<“{"data": {"batteries": [{"capacity_percent": 99, "firmware_version": "26.03.00.48", "high_voltage_storage_days": 27, "index": 0, "loop_times": 49, "sn": "6Q7PM4BDA100AE", "temperature": 31.199999999999999, "voltage": 16445}], "capacity_percent": 99, "landing_power": 8, "low_battery_warning_threshold": 25, "remain_flight_time": 5020, "return_home_power": 26, "serious_low_battery_warning_threshold": 10}, "method": "drc_batteries_info_push", "seq": 12302}”>>,1730876428591,#{}}}], links: [<0.3879.0>], dictionary: [{{#{action_type => subscribe,qos => 0},<<“thing/product/7CTDM4100BP6VW/drc/up”>>},{allow,1730876425038}},{guid,{1730876428172614,157651070953215,22}},{send_msg,101},{outgoing_bytes,0},{incoming_bytes,2234},{‘$logger_metadata$’,#{peername => “36.24.42.235:4468”,username => <<“adminflight”>>,clientid => <<“1821706071350194177-1730876056937”>>}},{send_oct,54234},{send_cnt,103},{recv_oct,2234},{recv_cnt,23},{{#{retain => false,action_type => publish,qos => 0},<<“thing/product/7CTDM4100BP6VW/drc/down”>>},{allow,1730876425036}},{authz_keys_q,{[{#{action_type => subscribe,qos => 0},<<“thing/product/7CTDM4100BP6VW/drc/up”>>}],[{#{retain => false,action_type => publish,qos => 0},<<“thing/product/7CTDM4100BP6VW/drc/down”>>}]}},{outgoing_pubs,0},{‘send_msg.qos0’,101},{incoming_pubs,21},{send_pkt,103},{‘recv_msg.qos0’,21},{authz_cache_size,2},{recv_msg,21},{recv_pkt,23}], trap_exit: true, status: running, heap_size: 6772, stack_size: 28, reductions: 498806; neighbours:
2024-11-06T07:00:33.191317+00:00 [MQTT] 1821706071350194177-1730876056937@36.24.42.235:4491 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=1821706071350194177-1730876056937, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=5, Username=adminflight, Password=******), username: adminflight

使用的是web端
mqtt@^4.3.7:
version “4.3.8”
resolved “https://registry.npmmirror.com/mqtt/-/mqtt-4.3.8.tgz#b8cc9a6eb5e4e0cb6eea699f24cd70dd7b228f1d

这个在 581 上修好了

581是mqtt版本5.8.1吗


热升级的包在哪里获得

我是docker部署的支持热升级吗

不支持,docker 直接用5.8.1就行了 emqx 的版本