You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Maybrittnelson how do you run emqx? 127.0.0.1 is an address inside emqtt-bench docker container, and not the host one. It makes sense that emqtt-bench cannot find service listening on 1883 port there.
emqx version
5.1.0
shell command
docker exec -it emqtt-bench ./emqtt_bench conn -h 127.0.0.1 -p 1883 -u admin -P public12 -c 1
error msg
`client(1): connect error - econnrefused
=ERROR REPORT==== 3-Jun-2023::02:59:56.698355 ===
** State machine <0.113.0> terminating
** Last event = {{call,{<0.110.0>,#Ref<0.2350854088.2445541377.53670>}},
{connect,emqtt_sock}}
** When server state = {initialized,
{state,undefined,<0.110.0>,undefined,"127.0.0.1",
1883,[],emqtt_sock,undefined,[],60000,false,
<<"31d51db3bb49_bench_conn_1_578986024">>,
true,<<"admin">>,<<"public12">>,4,<<"MQTT">>,
300,undefined,false,false,false,
{mqtt_msg,0,false,false,undefined,undefined,
undefined,undefined},
#{},[],#{},infinity,#{},#{},true,30000,
undefined,0,undefined,undefined,1,
{none,#{max_size => 268435455,version => 4}}}}
** Reason for termination = exit:econnrefused
** Callback mode = state_functions
** Stacktrace =
** [{gen_statem,loop_state_callback_result,11,
[{file,"gen_statem.erl"},{line,1364}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]
** Client <0.110.0> stacktrace
** [{io,execute_request,2,[{file,"io.erl"},{line,571}]},
{io,o_request,3,[{file,"io.erl"},{line,63}]}]
=CRASH REPORT==== 3-Jun-2023::02:59:56.739055 ===
crasher:
initial call: emqtt:init/1
pid: <0.113.0>
registered_name: []
exception exit: econnrefused
in function gen_statem:loop_state_callback_result/11 (gen_statem.erl, line 1364)
ancestors: [<0.110.0>]
message_queue_len: 1
messages: [{'EXIT',<0.110.0>,normal}]
links: []
dictionary: []
trap_exit: true
status: running
heap_size: 10958
stack_size: 28
reductions: 12538
neighbours:`
The text was updated successfully, but these errors were encountered: