[ejabberd] getting started with ejabberd...

Marshall Rose mrose+internet.jabber.ejabberd at dbc.mtview.ca.us
Thu Aug 28 11:29:34 MSD 2003


> Ow. I wanted to write you that it works fine without ssl,
> but for some reason i decided that you want to have ssl...
> sorry for not replying before.
    
yes, i need the ssl support.
    
is anyone out there running ejabberd *with* ssl? ermine?
    
if someone is, please email the relevant portion of your ejabberd.cfg
file!

    
> >however, when i try to register (by logging in with 
> >tkabber), the
> >connection gets dropped (cf., attached ejabberd.log).
> in my case (i don't remember exactly, but my erlang is
> R9B-0 as i remember) logging in and registering
> works fine ONLY IF PASSWORDS ARE NOT HASHED. Probably
> it's a problem with erlang again.
    
i tried it using tkabber w/o hashed passwords. no dice.
    
the supervisor report is below.
    
    
> that you don't
>    need to have short host name if you run ejabberd with
>    -sname instead of -name.

thanks.
    
    
>    Also this helps ALOT!!:
>      erl -sname ejabberd -s ejabberd -s tv
>    And also shows the power of erlang!

yes, very interesting.    
    
    
> BTW. I don't really know erlang...

ditto. looks like i'm going to have to learn it or go back to jabberd 1.4.2...
    
    
/mtr
				  #######
    
=SUPERVISOR REPORT==== 28-Aug-2003::10:24:46 ===
     Supervisor: {local,ejabberd_c2s_sup}
     Context:    child_terminated
     Reason:     {badarg,[{erlang,port_control,
                                  [#Port<0.176>,
                                   1,
                                  
"mrose:miz-mishtal.dbc.mtview.ca.us:testing"]},
                          {crypto,control,2},
                          {cyrsasl_digest,response,5},
                          {cyrsasl_digest,mech_step,2},
                          {cyrsasl,server_step,2},
                          {ejabberd_c2s,wait_for_sasl_response,2},
                          {gen_fsm,handle_msg,7},
                          {proc_lib,init_p,5}]}
     Offender:   [{pid,<0.303.0>},
                  {name,undefined},
                  {mfa,{ejabberd_c2s,start_link,
                                     [{gen_tcp,#Port<0.378>},
                                      [{access,c2s},{shaper,c2s_shaper}]]}},
                  {restart_type,temporary},
                  {shutdown,brutal_kill},
                  {child_type,worker}]


=ERROR REPORT==== 28-Aug-2003::10:24:47 ===
** State machine <0.306.0> terminating 
** Last event in was {xmlstreamelement,
                         {xmlelement,"response",
                                     [{"xmlns",
                                       "urn:ietf:params:xml:ns:xmpp-sasl"}],
                                     [{xmlcdata,
                                         
"dXNlcm5hbWU9Im1yb3NlIixyZWFsbT0ibWl6LW1pc2h0YWwuZGJjLm10dmlldy5jYS51cyIsYXV0aH
ppZD0ibXJvc2VAbWl6LW1pc2h0YWwuZGJjLm10dmlldy5jYS51cy90a2FiYmVyIixub25jZT0iTXprd
05qSXlNems1T1E9PSIsY25vbmNlPSJma1ppRWhPQ2ZzczZoT0ZwS0VQOXZTbHNNeHByem1WUmVKaVFX
Mk5PZDAwPSIsbmM9MDAwMDAwMDEscW9wPWF1dGgsZGlnZXN0LXVyaT0ieG1wcC9taXotbWlzaHRhbC5
kYmMubXR2aWV3LmNhLnVzIixyZXNwb25zZT05YTRhMDIxMWFhYWQ3MmYzOGZjOTYyNmQ0ZTJjOGI1ZQ
=="}]}}
** When State == wait_for_sasl_response
**      Data  == {state,#Port<0.382>,
                        <0.307.0>,
                        gen_tcp,
                        "2723417057",
                        {sasl_state,"jabber",
                                    "miz-mishtal.dbc.mtview.ca.us",
                                    [],
                                    cyrsasl_digest,
                                    {state,3,"3906223999",undefined,undefined}},

                        c2s,
                        c2s_shaper,
                        false,
                        [],
                        "miz-mishtal.dbc.mtview.ca.us",
                        [],
                        {0,nil},
                        {0,nil},
                        {0,nil},
                        {0,nil},
                        undefined,
                        undefined,
                        undefined,
                        false,
                        none}
** Reason for termination = 
** {badarg,[{erlang,port_control,
                    [#Port<0.176>,
                     1,
                     "mrose:miz-mishtal.dbc.mtview.ca.us:testing"]},
            {crypto,control,2},
            {cyrsasl_digest,response,5},
            {cyrsasl_digest,mech_step,2},
            {cyrsasl,server_step,2},
            {ejabberd_c2s,wait_for_sasl_response,2},
            {gen_fsm,handle_msg,7},
            {proc_lib,init_p,5}]}

=CRASH REPORT==== 28-Aug-2003::10:24:47 ===
  crasher:
    pid: <0.306.0>
    registered_name: []
    error_info: {badarg,[{erlang,port_control,
                                  [#Port<0.176>,
                                   1,
                                  
"mrose:miz-mishtal.dbc.mtview.ca.us:testing"]},
                          {crypto,control,2},
                          {cyrsasl_digest,response,5},
                          {cyrsasl_digest,mech_step,2},
                          {cyrsasl,server_step,2},
                          {ejabberd_c2s,wait_for_sasl_response,2},
                          {gen_fsm,handle_msg,7},
                          {proc_lib,init_p,5}]}
    initial_call: {gen,init_it,
                      [gen_fsm,
                       <0.186.0>,
                       <0.186.0>,
                       ejabberd_c2s,
                       [{gen_tcp,#Port<0.382>},
                        [{access,c2s},{shaper,c2s_shaper}]],
                       []]}
    ancestors: [ejabberd_c2s_sup,ejabberd_sup,<0.39.0>]
    messages: []
    links: [<0.186.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 2584
    stack_size: 23
    reductions: 22932
  neighbours:

=SUPERVISOR REPORT==== 28-Aug-2003::10:24:47 ===
     Supervisor: {local,ejabberd_c2s_sup}
     Context:    child_terminated
     Reason:     {badarg,[{erlang,port_control,
                                  [#Port<0.176>,
                                   1,
                                  
"mrose:miz-mishtal.dbc.mtview.ca.us:testing"]},
                          {crypto,control,2},
                          {cyrsasl_digest,response,5},
                          {cyrsasl_digest,mech_step,2},
                          {cyrsasl,server_step,2},
                          {ejabberd_c2s,wait_for_sasl_response,2},
                          {gen_fsm,handle_msg,7},
                          {proc_lib,init_p,5}]}
     Offender:   [{pid,<0.306.0>},
                  {name,undefined},
                  {mfa,{ejabberd_c2s,start_link,
                                     [{gen_tcp,#Port<0.382>},
                                      [{access,c2s},{shaper,c2s_shaper}]]}},
                  {restart_type,temporary},
                  {shutdown,brutal_kill},
                  {child_type,worker}]


=ERROR REPORT==== 28-Aug-2003::10:24:49 ===
** State machine <0.309.0> terminating 
** Last event in was {xmlstreamelement,
                         {xmlelement,"response",
                                     [{"xmlns",
                                       "urn:ietf:params:xml:ns:xmpp-sasl"}],
                                     [{xmlcdata,
                                         
"dXNlcm5hbWU9Im1yb3NlIixyZWFsbT0ibWl6LW1pc2h0YWwuZGJjLm10dmlldy5jYS51cyIsYXV0aH
ppZD0ibXJvc2VAbWl6LW1pc2h0YWwuZGJjLm10dmlldy5jYS51cy90a2FiYmVyIixub25jZT0iTWpnM
U1EazNPRGt3T0E9PSIsY25vbmNlPSJmWnNBdFhPNUF4WGMyQTQxTElDUGdaVnU0UzVibGNjK05JNHlC
QVpGeDZJPSIsbmM9MDAwMDAwMDEscW9wPWF1dGgsZGlnZXN0LXVyaT0ieG1wcC9taXotbWlzaHRhbC5
kYmMubXR2aWV3LmNhLnVzIixyZXNwb25zZT0yNWUwNjdmMzU0ZGQwM2VjYjJkNTJkYjk0ZTBiYjI2Mg
=="}]}}
** When State == wait_for_sasl_response
**      Data  == {state,#Port<0.384>,
                        <0.310.0>,
                        gen_tcp,
                        "1797794273",
                        {sasl_state,"jabber",
                                    "miz-mishtal.dbc.mtview.ca.us",
                                    [],
                                    cyrsasl_digest,
                                    {state,3,"2850978908",undefined,undefined}},

                        c2s,
                        c2s_shaper,
                        false,
                        [],
                        "miz-mishtal.dbc.mtview.ca.us",
                        [],
                        {0,nil},
                        {0,nil},
                        {0,nil},
                        {0,nil},
                        undefined,
                        undefined,
                        undefined,
                        false,
                        none}
** Reason for termination = 
** {badarg,[{erlang,port_control,
                    [#Port<0.176>,
                     1,
                     "mrose:miz-mishtal.dbc.mtview.ca.us:testing"]},
            {crypto,control,2},
            {cyrsasl_digest,response,5},
            {cyrsasl_digest,mech_step,2},
            {cyrsasl,server_step,2},
            {ejabberd_c2s,wait_for_sasl_response,2},
            {gen_fsm,handle_msg,7},
            {proc_lib,init_p,5}]}

=CRASH REPORT==== 28-Aug-2003::10:24:49 ===
  crasher:
    pid: <0.309.0>
    registered_name: []
    error_info: {badarg,[{erlang,port_control,
                                  [#Port<0.176>,
                                   1,
                                  
"mrose:miz-mishtal.dbc.mtview.ca.us:testing"]},
                          {crypto,control,2},
                          {cyrsasl_digest,response,5},
                          {cyrsasl_digest,mech_step,2},
                          {cyrsasl,server_step,2},
                          {ejabberd_c2s,wait_for_sasl_response,2},
                          {gen_fsm,handle_msg,7},
                          {proc_lib,init_p,5}]}
    initial_call: {gen,init_it,
                      [gen_fsm,
                       <0.186.0>,
                       <0.186.0>,
                       ejabberd_c2s,
                       [{gen_tcp,#Port<0.384>},
                        [{access,c2s},{shaper,c2s_shaper}]],
                       []]}
    ancestors: [ejabberd_c2s_sup,ejabberd_sup,<0.39.0>]
    messages: []
    links: [<0.186.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 2584
    stack_size: 23
    reductions: 22932
  neighbours:

=SUPERVISOR REPORT==== 28-Aug-2003::10:24:49 ===
     Supervisor: {local,ejabberd_c2s_sup}
     Context:    child_terminated
     Reason:     {badarg,[{erlang,port_control,
                                  [#Port<0.176>,
                                   1,
                                  
"mrose:miz-mishtal.dbc.mtview.ca.us:testing"]},
                          {crypto,control,2},
                          {cyrsasl_digest,response,5},
                          {cyrsasl_digest,mech_step,2},
                          {cyrsasl,server_step,2},
                          {ejabberd_c2s,wait_for_sasl_response,2},
                          {gen_fsm,handle_msg,7},
                          {proc_lib,init_p,5}]}
     Offender:   [{pid,<0.309.0>},
                  {name,undefined},
                  {mfa,{ejabberd_c2s,start_link,
                                     [{gen_tcp,#Port<0.384>},
                                      [{access,c2s},{shaper,c2s_shaper}]]}},
                  {restart_type,temporary},
                  {shutdown,brutal_kill},
                  {child_type,worker}]


=ERROR REPORT==== 28-Aug-2003::10:24:50 ===
** State machine <0.312.0> terminating 
** Last event in was {xmlstreamelement,
                         {xmlelement,"response",
                                     [{"xmlns",
                                       "urn:ietf:params:xml:ns:xmpp-sasl"}],
                                     [{xmlcdata,
                                         
"dXNlcm5hbWU9Im1yb3NlIixyZWFsbT0ibWl6LW1pc2h0YWwuZGJjLm10dmlldy5jYS51cyIsYXV0aH
ppZD0ibXJvc2VAbWl6LW1pc2h0YWwuZGJjLm10dmlldy5jYS51cy90a2FiYmVyIixub25jZT0iTXpBe
k9EQTVPVGc1Iixjbm9uY2U9IkFaOXA0TUNaMnQySXQ5RHZoclRDQlpwS2hYTWdlV3ZVMnlsUlZxY0gx
Vms9IixuYz0wMDAwMDAwMSxxb3A9YXV0aCxkaWdlc3QtdXJpPSJ4bXBwL21pei1taXNodGFsLmRiYy5
tdHZpZXcuY2EudXMiLHJlc3BvbnNlPWE2ODUyZjk4ZWI1NjcwMDk1MWJjMDUzMmU4MDAxYzkx"}]}}
** When State == wait_for_sasl_response
**      Data  == {state,#Port<0.386>,
                        <0.313.0>,
                        gen_tcp,
                        "1421499754",
                        {sasl_state,"jabber",
                                    "miz-mishtal.dbc.mtview.ca.us",
                                    [],
                                    cyrsasl_digest,
                                    {state,3,"303809989",undefined,undefined}},
                        c2s,
                        c2s_shaper,
                        false,
                        [],
                        "miz-mishtal.dbc.mtview.ca.us",
                        [],
                        {0,nil},
                        {0,nil},
                        {0,nil},
                        {0,nil},
                        undefined,
                        undefined,
                        undefined,
                        false,
                        none}
** Reason for termination = 
** {badarg,[{erlang,port_control,
                    [#Port<0.176>,
                     1,
                     "mrose:miz-mishtal.dbc.mtview.ca.us:testing"]},
            {crypto,control,2},
            {cyrsasl_digest,response,5},
            {cyrsasl_digest,mech_step,2},
            {cyrsasl,server_step,2},
            {ejabberd_c2s,wait_for_sasl_response,2},
            {gen_fsm,handle_msg,7},
            {proc_lib,init_p,5}]}

=CRASH REPORT==== 28-Aug-2003::10:24:50 ===
  crasher:
    pid: <0.312.0>
    registered_name: []
    error_info: {badarg,[{erlang,port_control,
                                  [#Port<0.176>,
                                   1,
                                  
"mrose:miz-mishtal.dbc.mtview.ca.us:testing"]},
                          {crypto,control,2},
                          {cyrsasl_digest,response,5},
                          {cyrsasl_digest,mech_step,2},
                          {cyrsasl,server_step,2},
                          {ejabberd_c2s,wait_for_sasl_response,2},
                          {gen_fsm,handle_msg,7},
                          {proc_lib,init_p,5}]}
    initial_call: {gen,init_it,
                      [gen_fsm,
                       <0.186.0>,
                       <0.186.0>,
                       ejabberd_c2s,
                       [{gen_tcp,#Port<0.386>},
                        [{access,c2s},{shaper,c2s_shaper}]],
                       []]}
    ancestors: [ejabberd_c2s_sup,ejabberd_sup,<0.39.0>]
    messages: []
    links: [<0.186.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 2584
    stack_size: 23
    reductions: 21996
  neighbours:

=SUPERVISOR REPORT==== 28-Aug-2003::10:24:50 ===
     Supervisor: {local,ejabberd_c2s_sup}
     Context:    child_terminated
     Reason:     {badarg,[{erlang,port_control,
                                  [#Port<0.176>,
                                   1,
                                  
"mrose:miz-mishtal.dbc.mtview.ca.us:testing"]},
                          {crypto,control,2},
                          {cyrsasl_digest,response,5},
                          {cyrsasl_digest,mech_step,2},
                          {cyrsasl,server_step,2},
                          {ejabberd_c2s,wait_for_sasl_response,2},
                          {gen_fsm,handle_msg,7},
                          {proc_lib,init_p,5}]}
     Offender:   [{pid,<0.312.0>},
                  {name,undefined},
                  {mfa,{ejabberd_c2s,start_link,
                                     [{gen_tcp,#Port<0.386>},
                                      [{access,c2s},{shaper,c2s_shaper}]]}},
                  {restart_type,temporary},
                  {shutdown,brutal_kill},
                  {child_type,worker}]

				  #######


More information about the ejabberd mailing list