[ejabberd] Problems with s2s connections

mailinglist at krausam.de mailinglist at krausam.de
Wed Oct 4 19:06:25 MSD 2006


I have problems with s2s connections, i get incoming messages from other 
servers,
but i can't send messages to other servers.

ejabber.cfg:
% Listened ports:
{listen,
 [
  {5222, ejabberd_c2s,     [{access, c2s}, {shaper, c2s_shaper},
                            {max_stanza_size, 65536},
                            starttls, {certfile, "/etc/jabber/ssl.pem"}]},
  {5223, ejabberd_c2s,     [{access, c2s},
                            {max_stanza_size, 65536},
                            tls, {certfile, "/etc/jabber/ssl.pem"}]},
  % Use these two lines instead if TLS support is not compiled
  %{5222, ejabberd_c2s,     [{access, c2s}, {shaper, c2s_shaper}]},
  %{5223, ejabberd_c2s,     [{access, c2s}, ssl, {certfile, "./ssl.pem"}]},
  {5269, ejabberd_s2s_in,  [{shaper, s2s_shaper},
                            {max_stanza_size, 131072}
                           ]},
  {5280, ejabberd_http,    [http_poll, web_admin]},
  {8888, ejabberd_service, [{access, all},
                            {hosts, ["icq.localhost", "sms.localhost"],
                             [{password, "secret"}]}]}
 ]}.

i get error messages in ejabberd.log, but i don't understand them:

=INFO REPORT==== 2006-10-04 16:12:57 ===
I(<0.29307.0>:ejabberd_s2s_out:106): started: {"smsking.is-a-geek.org",
                                               "jabber.org",
                                               {new,"1070035387"}}

=INFO REPORT==== 2006-10-04 16:13:19 ===
I(<0.29307.0>:ejabberd_s2s_out:464): starttls: {"smsking.is-a-geek.org",
                                                "jabber.org"}

=INFO REPORT==== 2006-10-04 16:13:42 ===
I(<0.29307.0>:ejabberd_s2s_out:660): terminated: {badarg,
                                                     [{erlang,
                                                          port_control,
                                                          [#Port<0.7465>,
                                                           4,
                                                           [60,
                                                            63,
                                                            120,
<snip>
                                                           61,
                                                            39,
                                                            "jabber.org",
                                                            39,
                                                            " version='1.0'",
                                                            62]]},
                                                      {tls,send,2},
                                                      {ejabberd_s2s_out,
                                                          
wait_for_starttls_proceed,
                                                          2},
                                                      {gen_fsm,handle_msg,7},
                                                      {proc_lib,init_p,5}]}

=ERROR REPORT==== 2006-10-04 16:13:42 ===
** State machine <0.29307.0> terminating
** Last event in was {xmlstreamelement,
                         {xmlelement,"proceed",
                                     [{"xmlns",
                                       "urn:ietf:params:xml:ns:xmpp-tls"}],
                                     []}}

** When State == wait_for_starttls_proceed
**      Data  == {state,#Port<0.7463>,
                        <0.29308.0>,
                        gen_tcp,
                        "3454308559",
                        true,
                        true,
                        false,
                        false,
                        [{certfile,"/etc/jabber/ssl.pem"},connect],
                        false,
                        true,
                        "smsking.is-a-geek.org",
                        "jabber.org",
                        {[{xmlelement,"presence",
                                      [{"from",
                                        "sms-king at smsking.is-a-geek.org"},
                                       {"to","sms-king at jabber.org"},
                                       {"type","subscribed"}],
                                      []},
                          {xmlelement,"presence",
                                      [{"from",
                                        "sms-king at smsking.is-a-geek.org"},
                                       {"to","sms-king at jabber.org"},
                                       {"type","subscribed"}],
                                      []},
                          {xmlelement,"presence",
                                      [{"from",
                                        "sms-king at smsking.is-a-geek.org"},
                                       {"to","sms-king at jabber.org"},
                                       {"type","subscribe"}],
                                      []}],
                                     []}}
                        [{xmlelement,"message",
                                      [{"from",
                                        "sms-king at smsking.is-a-geek.org/Psi"},
                                       {"to","sms-king at jabber.org/Mobile"},
                                       {"type","chat"},
                                       {"id","aacba"}],
                                      [{xmlelement,
                                           "body",
                                           [],
                                           [{xmlcdata,<<112,105,110,103>>}]},
                                       {xmlelement,
                                           "x",
                                           [{"xmlns","jabber:x:event"}],
                                           [{xmlelement,"composing",[],
[]}]}]}]},
                        "1070035387",
                        false,
                        #Ref<0.0.0.140400>}

** Reason for termination =
** {badarg,[{erlang,port_control,
                    [#Port<0.7465>,
                     4,
                     [60,
                      63,
                      120,
<snip>
                     61,
                      39,
                      "jabber.org",
                      39,
                      " version='1.0'",
                      62]]},
            {tls,send,2},
            {ejabberd_s2s_out,wait_for_starttls_proceed,2},
            {gen_fsm,handle_msg,7},
            {proc_lib,init_p,5}]}


I have my firewall configured to Accept outgoing and incoming connections to 
5269 is that enough, or are there other ports for important for s2s 
connections.

-- 
Micha Krause

Jabber:	SMS-King at jabber.org
Email:	Micha at krausam.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.jabber.ru/pipermail/ejabberd/attachments/20061004/d3cc6e33/attachment.pgp


More information about the ejabberd mailing list