Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exception exit: econnrefused #217

Open
Maybrittnelson opened this issue Jun 3, 2023 · 1 comment
Open

exception exit: econnrefused #217

Maybrittnelson opened this issue Jun 3, 2023 · 1 comment

Comments

@Maybrittnelson
Copy link

Maybrittnelson commented Jun 3, 2023

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:`

@id
Copy link
Collaborator

id commented Jun 7, 2023

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants