Works fine till I try to have it listen to ports

Ok,

My ejabberd install works perfectly until I try to have it listen to ports, specifically I am trying it with the AIM transport. As soon as I restart ejabberd, it runs but I can no longer connect with any client or login throught the web interface. As soon as I comment out the transport, it runs perfectly. Any suggestions? Thanks a bunch!!

As soon as I comment out the

As soon as I comment out the transport, it runs perfectly.

Maybe you introduce a syntax error when you put the transport. Copy here the changes you do on ejabberd (you modify ejabberd.cfg, right?).

Yes..I do the changes in

Yes..I do the changes in ejabberd.cfg

Here is the line I add

{5347, ejabberd_service, [{host, "aim.imessenge.com", [{password, "secret"}]}]},

Thanks again!

Did you check the log file?

Did you check if errors appear on the log? For example 'Can't load config file'. It's probable that you introduce a syntax error with that line. Check that every {...} has a comma at the end, except the last one.

Examples:

  • wrong:
    {listen, [
      {1},
      {2}   -- it needs a comma, since there are more elements later
      {3}
    ]}
  • wrong:
    {listen, [
      {1},
      {2},
      {3},  -- the last element should not have a comma
    ]}
  • right:
    {listen, [
      {1},
      {2},
      {3}
    ]}

Here is what I have right

Here is what I have right now:

% Listened ports:
{listen, [{5222, ejabberd_c2s,     [{access, c2s},
                                   {shaper, c2s_shaper}]},
          %% Use this line to enable SSL:
          %%{5223, ejabberd_c2s,     [{access, c2s}, ssl, {certfile, "./ssl.pem"}]},
          %%

          %% Use those lines instead for TLS support:
          %%{5222, ejabberd_c2s,     [{access, c2s}, {shaper, c2s_shaper},
          %%                         starttls, {certfile, "./ssl.pem"}]},
          %% {5223, ejabberd_c2s,     [{access, c2s},
          %%                       tls, {certfile, "./ssl.pem"}]},

          %% Remove this line if you want to prevent s2s connections:
          {5269, ejabberd_s2s_in,  [{shaper, s2s_shaper}]},

          %% remove http_poll to remove support for http polling
          %% remove web_admin to disable admin interface:
          {5280, ejabberd_http,    [http_poll, web_admin]}
          %% This is an example on how to define an external service/transport:
          %% {5347, ejabberd_service, [{access, all},
          %%       {hosts, ["aim.imessenge.com"],
          %%       [{password, "secret"}]}]}
 {5347, ejabberd_service, [{host, "aim.imessenge.com", [{password, "secret"}]}]}
         ]}.
% If SRV lookup fails, then port 5269 is used to communicate with remote server
{outgoing_s2s_port, 5269}.

I think I have it correct, I don't know though. Also, I dont have a log file? I can look in the /logs/ directory, but it is not there?

I guess the error is at the

I guess the error is at the end of this line:

{5280, ejabberd_http, [http_poll, web_admin]}

--
sander

Thank you so much!!!

Thank you so much!!!

Syndicate content