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

Unable to connect emqtt_benchmark client to emqtt broker #69

Closed
kksudo opened this issue Dec 7, 2019 · 6 comments
Closed

Unable to connect emqtt_benchmark client to emqtt broker #69

kksudo opened this issue Dec 7, 2019 · 6 comments
Assignees

Comments

@kksudo
Copy link

kksudo commented Dec 7, 2019

I try run command (from docker) - ./emqtt_bench pub -h 37.128.111.31 -c 1 -t load/test/ -u dev -P pass -p 8883 -S true, but can't connect to mqtt broker.
The mqtt broker use tls and login, password.
emqtt-bench is latest version 0.4 (maked from master)

Error lLog:

=ERROR REPORT==== 7-Dec-2019::20:27:54.356471 ===
** State machine <0.104.0> terminating
** Last event = {{call,{<0.102.0>,#Ref<0.3470881607.950534145.230614>}},
                 {connect,emqtt_sock}}
** When server state  = {initialized,
                            {state,undefined,<0.102.0>,undefined,
                                "37.128.111.31",8883,[],emqtt_sock,undefined,
                                [{ssl_opts,{ssl,[]}}],
                                60000,false,
                                <<"bf9f0447b6cd_bench_pub_1_2064832430">>,
                                true,<<"dev">>,<<"pass">>,5,<<"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 => 5}}}}
** Reason for termination = error:function_clause
** Callback mode = state_functions
** Stacktrace =
**  [{proplists,get_value,
                [versions,{ssl,[]},[]],
                [{file,"proplists.erl"},{line,215}]},
     {emqtt_sock,ssl_upgrade,3,
                 [{file,"/opt/emqtt/_build/default/lib/emqtt/src/emqtt_sock.erl"},
                  {line,60}]},
     {emqtt,sock_connect,5,
            [{file,"/opt/emqtt/_build/default/lib/emqtt/src/emqtt.erl"},
             {line,1247}]},
     {emqtt,initialized,3,
            [{file,"/opt/emqtt/_build/default/lib/emqtt/src/emqtt.erl"},
             {line,629}]},
     {gen_statem,loop_state_callback,11,[{file,"gen_statem.erl"},{line,1159}]},
     {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]
** Client <0.102.0> stacktrace
** [{gen,do_call,4,[{file,"gen.erl"},{line,167}]},
    {gen_statem,call_dirty,4,[{file,"gen_statem.erl"},{line,619}]},
    {emqtt_bench,connect,4,
                 [{file,"/opt/emqtt/src/emqtt_bench.erl"},{line,286}]}]

=CRASH REPORT==== 7-Dec-2019::20:27:54.370527 ===
  crasher:
    initial call: emqtt:init/1
    pid: <0.104.0>
    registered_name: []
    exception error: no function clause matching
                     proplists:get_value(versions,{ssl,[]},[]) (proplists.erl, line 215)
      in function  emqtt_sock:ssl_upgrade/3 (/opt/emqtt/_build/default/lib/emqtt/src/emqtt_sock.erl, line 60)
      in call from emqtt:sock_connect/5 (/opt/emqtt/_build/default/lib/emqtt/src/emqtt.erl, line 1247)
      in call from emqtt:initialized/3 (/opt/emqtt/_build/default/lib/emqtt/src/emqtt.erl, line 629)
      in call from gen_statem:loop_state_callback/11 (gen_statem.erl, line 1159)
    ancestors: [<0.102.0>]
    message_queue_len: 0
    messages: []
    links: [<0.102.0>,#Port<0.7>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 6772
    stack_size: 27
    reductions: 16631
  neighbours:
@boddumanohar
Copy link

can you also post the error that you get on the server logs?

@tigercl
Copy link
Member

tigercl commented Dec 10, 2019

@mausspb SSL connections do have problems currently, we'll fix it as soon as possible.

@kksudo
Copy link
Author

kksudo commented Dec 10, 2019

can you also post the error that you get on the server logs?

In vernemq i don't see any connections or errors, before the vernemq i have haproxy with ssl termination (may be there a trouble). I will check the haproxy logs.

@tigercl
Copy link
Member

tigercl commented Dec 11, 2019

@mausspb v0.3.1 has been released, this version fixes the problem you encountered. You can pull it and try again.

@kksudo
Copy link
Author

kksudo commented Dec 11, 2019

Great ! I will check .

@kksudo
Copy link
Author

kksudo commented Dec 24, 2019

It's work fine.
Thank you !
resolved

@HJianBo HJianBo closed this as completed Dec 31, 2019
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

5 participants