5.0.20 stomp网关开启后连不上

错误报告

环境

  • EMQX 版本:5.0.20
  • 操作系统版本:docker版和windows版都不行

重现此问题的步骤


预期行为

实际行为


功能请求

描述你需要的功能

为什么你需要这个功能


其他

你好, Stomp 网关暂时不支持基于 Websocket、只支持基于 TCP 的方式

你好,
贵司Stomp网关 的server端是基于什么搭建的?
Apache Apollo,Apache ActiveMQ,HornetQ,StompServer还是其他的什么 或者 自己实现的协议规范?

按 Stomp v1.2 的协议规范实现的,不是基于其他服务器做的

您好,
send没问题,接收出问题了(“/topic/test”,“client”)
docker error:
2023-03-24T03:19:29.152503+00:00 [error] crasher: initial call: emqx_gateway_conn:init/6, pid: <0.5344.0>, registered_name: [], exit: {#{context => badarg,exception => error,stacktrace => [{emqx_stomp_frame,escape,1,[{file,“emqx_stomp_frame.erl”},{line,307}]},{emqx_stomp_frame,serialize_pkt,2,[{file,“emqx_stomp_frame.erl”},{line,294}]},{emqx_stomp_frame,‘-serialize_pkt/2-lc$^0/1-0-’,1,[{file,“emqx_stomp_frame.erl”},{line,286}]},{emqx_stomp_frame,serialize_pkt,2,[{file,“emqx_stomp_frame.erl”},{line,286}]},{emqx_gateway_conn,‘-serialize_and_inc_stats_fun/1-fun-0-’,4,[{file,“emqx_gateway_conn.erl”},{line,835}]},{lists,map,2,[{file,“lists.erl”},{line,1243}]},{emqx_gateway_conn,handle_outgoing,2,[{file,“emqx_gateway_conn.erl”},{line,791}]},{emqx_gateway_conn,process_msg,2,[{file,“emqx_gateway_conn.erl”},{line,405}]},{emqx_gateway_conn,process_msg,2,[{file,“emqx_gateway_conn.erl”},{line,411}]},{emqx_gateway_conn,handle_recv,3,[{file,“emqx_gateway_conn.erl”},{line,368}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,236}]}]},[{emqx_gateway_conn,terminate,2,[{file,“emqx_gateway_conn.erl”},{line,589}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,236}]}]}, ancestors: [<0.4013.0>,<0.4012.0>,esockd_sup,<0.1959.0>], message_queue_len: 0, messages: [], links: [<0.4013.0>], dictionary: [{authz_cache_size,1},{ackid,2},{rand_seed,{#{bits => 58,jump => #Fun<rand.3.92093067>,next => #Fun<rand.0.92093067>,type => exsss,uniform => #Fun<rand.1.92093067>,uniform_n => #Fun<rand.2.92093067>},[266706939676748938|252695949662059028]}},{msgid,2},{send_pkt,1},{‘$logger_metadata$’,#{clientid => <<“MzA5ODM2NjcyNDg3OTgwOTIzMzQzMzMwMDA4MTM2NDE3MjI”>>,peername => “172.17.0.1:47828”}},{outgoing_bytes,61},{incoming_bytes,85},{guid,{1679627967137892,55301998908640,1}},{{subscribe,<<“/topic/test”>>},{allow,1679627967141}},{recv_pkt,2},{authz_keys_q,{[{subscribe,<<“/topic/test”>>}],[]}}], trap_exit: false, status: running, heap_size: 1598, stack_size: 29, reductions: 78042; neighbours:
2023-03-24 11:19:29 2023-03-24T03:19:29.153098+00:00 [error] supervisor: ‘esockd_connection_sup - <0.4013.0>’, errorContext: connection_crashed, reason: #{context => badarg,exception => error,stacktrace => [{emqx_stomp_frame,escape,1,[{file,“emqx_stomp_frame.erl”},{line,307}]},{emqx_stomp_frame,serialize_pkt,2,[{file,“emqx_stomp_frame.erl”},{line,294}]},{emqx_stomp_frame,‘-serialize_pkt/2-lc$^0/1-0-’,1,[{file,“emqx_stomp_frame.erl”},{line,286}]},{emqx_stomp_frame,serialize_pkt,2,[{file,“emqx_stomp_frame.erl”},{line,286}]},{emqx_gateway_conn,‘-serialize_and_inc_stats_fun/1-fun-0-’,4,[{file,“emqx_gateway_conn.erl”},{line,835}]},{lists,map,2,[{file,“lists.erl”},{line,1243}]},{emqx_gateway_conn,handle_outgoing,2,[{file,“emqx_gateway_conn.erl”},{line,791}]},{emqx_gateway_conn,process_msg,2,[{file,“emqx_gateway_conn.erl”},{line,405}]},{emqx_gateway_conn,process_msg,2,[{file,“emqx_gateway_conn.erl”},{line,411}]},{emqx_gateway_conn,handle_recv,3,[{file,“emqx_gateway_conn.erl”},{line,368}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,236}]}]}, offender: [{pid,<0.5344.0>},{name,connection},{mfargs,{emqx_gateway_conn,start_link,[#{authentication => #{backend => mysql,database => <<“emqx”>>,enable => true,mechanism => password_based,password => <<“htl@123”>>,password_hash_algorithm => #{name => sha256,salt_position => suffix},pool_size => 100,query => “SELECT password_hash, salt FROM mqtt_user where username = ${username} LIMIT 1”,query_timeout => 5000,server => “192.168.20.15:3306”,ssl => #{ciphers => [],depth => 10,enable => false,hibernate_after => 5000,reuse_sessions => true,secure_renegotiate => true,user_lookup_fun => {fun emqx_tls_psk:lookup/3,undefined},verify => verify_peer,versions => [‘tlsv1.3’,‘tlsv1.2’,‘tlsv1.1’,tlsv1]},username => <<“root”>>},chann_mod => emqx_stomp_channel,ctx => #{cm => <0.3587.0>,gwname => stomp},enable => true,enable_authn => true,enable_stats => true,frame => #{max_body_length => 8192,max_headers => 10,max_headers_length => 1024},frame_mod => emqx_stomp_frame,idle_timeout => 30000,listener => {stomp,tcp,test01},mountpoint => <<>>}]}}]


程序异常:读取io异常

看起来是下发消息时,序列化失败了。方便给我一个抓包,或者实例看看发的是什么样的消息的吗?