My ejabberd server don't work anymore - 3 errors (captcha_cmd is not configured, Failed to open socket)

Hi everybody,

I'm running a ejabberd-2.1.2 server (OpenBSD 4.5 virtualhost), but since this morning it doesn't work anymore :S

Here's my log :

=ERROR REPORT==== 2010-03-25 08:47:30 ===
C(<0.262.0>:ejabberd_captcha:331) : The option captcha_cmd is not configured, but some module wants to use the CAPTCHA feature.

=INFO REPORT==== 2010-03-25 08:47:30 ===
I(<0.36.0>:ejabberd_rdbms:37) : ejabberd has not been compiled with relational database support. Skipping database startup.

=ERROR REPORT==== 2010-03-25 08:47:30 ===
E(<0.375.0>:ejabberd_listener:463) : Failed to open socket:
  {5280,ejabberd_http,[inet,{ip,{0,0,0,0}}]}
Reason: IP address and port number already used: 0.0.0.0 5280

=INFO REPORT==== 2010-03-25 08:47:30 ===
    application: ejabberd
    exited: {bad_return,
                {{ejabberd_app,start,[normal,[]]},
                 {{eaddrinuse,{5280,{0,0,0,0},tcp}},
                  {child,undefined,
                      {5280,{0,0,0,0},tcp},
                      {ejabberd_listener,start,
                          [{5280,{0,0,0,0},tcp},
                           ejabberd_http,
                           [captcha,http_bind,http_poll,web_admin]]},
                      transient,brutal_kill,worker,
                      [ejabberd_listener]}}}}
    type: temporary

Thanks for your help

This means ejabberd is unable

This means ejabberd is unable to listen on 5280 port. Check if there are no other ejabberd instances running or other processes listening to 5280.

Server tries to join all addresses virtual server (0.0.0.0)

Hi Zinid,

thanks to answered me.

It seems that the server tries to join all addresses virtual server (0.0.0.0). So I configured the server to use only my IP address.

But it does not work :

%%%.   ===============
%%%'   LISTENING PORTS

%%
%% listen: Which ports will ejabberd listen, which service handles it
%% and what options to start it with.
%%
{listen,
[

  {5222, 205.205.221.187, ejabberd_c2s, [

%%
%% If TLS is compiled and you installed a SSL
%% certificate, put the correct path to the
%% file and uncomment this line:
%%
%%{certfile, "/path/to/ssl.pem"}, starttls,

{access, c2s},
{shaper, c2s_shaper},
{max_stanza_size, 65536}
       ]},

  %%
  %% To enable the old SSL connection method in port 5223:
  %%
  %%{5223, 205.205.221.187, ejabberd_c2s, [
  %% {access, c2s},
  %% {shaper, c2s_shaper},
  %% {certfile, "/path/to/ssl.pem"}, tls,
  %% {max_stanza_size, 65536}
  %%        ]},

  {5269, 205.205.221.187, ejabberd_s2s_in, [
   {shaper, s2s_shaper},
   {max_stanza_size, 131072}
  ]},

  %%
  %% ejabberd_service: Interact with external components (transports...)
  %%
  %%{8888, ejabberd_service, [
  %%     {access, all},
  %%     {shaper_rule, fast},
  %%     {ip, {127, 0, 0, 1}},
  %%     {hosts, ["icq.example.org", "sms.example.org"],
  %%      [{password, "secret"}]
  %%     }
  %%    ]},

  %%
  %% ejabberd_stun: Handles STUN Binding requests
  %%
  %%{{3478, udp}, ejabberd_stun, []},

  {5280, 205.205.221.187, ejabberd_http, [
%%{request_handlers,
%% [
%%  {["pub", "archive"], mod_http_fileserver}
%% ]},
captcha,
http_bind,
http_poll,
web_admin
]}

]}.

Thanks for your help.

Have a noce day.

Your config syntax is incorrect

The syntax you have used for specifying which ports to listen on is incorrect.

You should wrap the port number and IP in curly brackets and also wrap the IP with double quotes as shown below:

{listen,
[

  {{5222, "205.205.221.187"}, ejabberd_c2s, [
{access, c2s},
{shaper, c2s_shaper},
{max_stanza_size, 65536}
       ]},

  {{5269, "205.205.221.187"}, ejabberd_s2s_in, [
   {shaper, s2s_shaper},
   {max_stanza_size, 131072}
  ]},


  {{5280, "205.205.221.187"}, ejabberd_http, [
captcha,
http_bind,
http_poll,
web_admin
]}

]}.

Thanks qu1cksand !

Yes the syntax was wrong ...

Thanks a lot

Syndicate content