Fresh Install 'IP Adress not available"

Server Info:

OS: Ubuntu Server 12.10

IP Info: Local Adress statically assigned.

ifconfig: em1 inet addr: 192.168.1.15

Installed via: sudo apt-get install ejabberd

Issue:

Upon a fresh installation via apt-get, the ejabberd server attempts to start. It eventually reads failed after a few min. sudo ejabberd zap reads:

=INFO REPORT==== 12-May-2014::13:46:58 ===
I(<0.39.0>:cyrsasl_digest:44) : FQDN used to check DIGEST-MD5 SASL authentication: "mydomain.org"

=ERROR REPORT==== 12-May-2014::13:46:58 ===
E(<0.296.0>:ejabberd_listener:512) : Failed to open socket:
  {7777,mod_proxy65_stream,[inet,{ip,{A, B, C, D}}]}
Reason: IP address not available: A.B.C.D

=ERROR REPORT==== 12-May-2014::13:46:58 ===
C(<0.39.0>:gen_mod:75) : Problem starting the module mod_proxy65 for host "localhost"
options: [{access,local},{shaper,c2s_shaper}]
error: {error,
            {{eaddrnotavail,{7777,{A, B, C, D},tcp}},
             {child,undefined,
                 {7777,{A,B,C,D},tcp},
                 {ejabberd_listener,start,
                     [{7777,{A,B,C,D},tcp},
                      mod_proxy65_stream,
                      ["localhost",{access,local},{shaper,c2s_shaper}]]},
                 transient,brutal_kill,worker,
                 [ejabberd_listener]}}}

=ERROR REPORT==== 12-May-2014::13:46:58 ===
C(<0.39.0>:gen_mod:80) : ejabberd initialization was aborted because a module start failed.

Where A.B.C.D is my networks external WAN address, and not the internal LAN address of the server.

Why does it attempt to use the external wan, and not the internal lan?

All ports have been successfully forwarded to the server at 192.168.1.15

I'm open to all input and ideas, if any further information is needed, please request it and I will be happy to supply it.

You need to reconfigure your

You need to reconfigure your dns server, as thats where ejabberd gets the public ip from.

Dweezahr wrote: You need to

Dweezahr wrote:

You need to reconfigure your dns server, as thats where ejabberd gets the public ip from.

At the moment for DNS it is just using 'or should be using' my router which is configured via DD-WRT. Why would it want the public IP? Currently its trying to bind to my public 'wan' ip, which is why it's failing.

Dweezahr wrote: You need to

Dweezahr wrote:

You need to reconfigure your dns server, as thats where ejabberd gets the public ip from.

hello expert, please help, i face the same error that is eaddrnotavail. Here detail logs:

2015-05-10 23:34:55.575 [error] <0.335.0>@ejabberd_listener:socket_error:556 FORMAT ERROR: "Failed to open socket:~n ~p~nReason: ~s" [{5222,ejabberd_stun,[inet,{ip,{103,10,58,45}}]},[73,80,32,97,100,100,114,101,115,115,32,110,111,116,32,97,118,97,105,108,97,98,108,101,58,32|<<"103.10.58.45">>]]
2015-05-10 23:34:55.575 [error] <0.335.0> CRASH REPORT Process ejabberd_listeners with 0 neighbours exited with reason: bad return value: {eaddrnotavail,{5222,{103,10,58,45},tcp}} in gen_server:init_it/6 line 332
2015-05-10 23:34:55.576 [error] <0.299.0> Supervisor ejabberd_sup had child ejabberd_listener started with ejabberd_listener:start_link() at undefined exit with reason bad return value: {eaddrnotavail,{5222,{103,10,58,45},tcp}} in context start_error
2015-05-10 23:34:55.671 [info] <0.38.0>@cyrsasl_digest:start:57 FQDN used to check DIGEST-MD5 SASL authentication: bay-laptop
2015-05-10 23:34:55.692 [critical] <0.38.0>@gen_mod:start_module:90 Problem starting the module mod_adhoc for host <<"bay-laptop">>
options: []
exit: {noproc,
{gen_server,call,
[ejabberd_iq_sup,
{start_child,[<<"bay-laptop">>,mod_adhoc,process_local_iq]},
infinity]}}
[{gen_server,call,3,[{file,"gen_server.erl"},{line,188}]},
{gen_iq_handler,add_iq_handler,6,[{file,"src/gen_iq_handler.erl"},{line,69}]},
{mod_adhoc,start,2,[{file,"src/mod_adhoc.erl"},{line,48}]},
{gen_mod,start_module,3,[{file,"src/gen_mod.erl"},{line,82}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1323}]},
{ejabberd_app,start,2,[{file,"src/ejabberd_app.erl"},{line,67}]},
{application_master,start_it_old,4,
[{file,"application_master.erl"},{line,269}]}]

thanks in advance,
best regards,
alandalus

No idea why it attempts to

No idea why it attempts to use that IP address. But you can tell mod_proxy65 what IP address you want it to use, right? Set the option 'ip' in mod_proxy65.

I told it to listen on the ip

I told it to listen on the ip 192,168,1,15 but now it seems to sort of stall out.

I run sudo ejabberd zap

but when it reaches

=INFO REPORT==== 18-May-2014::16:13:28 ===
I(<0.39.0>:cyrsasl_digest:44) : FQDN used to check DIGEST-MD5 SASL authentication: "mydomain.org"

=INFO REPORT==== 18-May-2014::16:13:28 ===
I(<0.355.0>:ejabberd_listener:166) : Reusing listening port for 5222

=INFO REPORT==== 18-May-2014::16:13:28 ===
I(<0.356.0>:ejabberd_listener:166) : Reusing listening port for 5269

=INFO REPORT==== 18-May-2014::16:13:28 ===
I(<0.357.0>:ejabberd_listener:166) : Reusing listening port for 5280

=INFO REPORT==== 18-May-2014::16:13:28 ===
I(<0.39.0>:ejabberd_app:72) : ejabberd 2.1.10 is started in the node ejabberd@mydomain

It never goes beyond this.

Syndicate content