[erlang-questions] Unable to start ejabberd or use TCP/IP communication in erlang interpreter

Mikle sign1024_3@REDACTED
Thu Dec 28 14:54:29 CET 2006


Serge Aleynikov <serge <at> hq.idt.net> writes:

> 
> Apparently this report has no value because gen_tcp:listn is misspelled. 
>   Could you please retry with correct function call?
> 

Sorry ;-).
I was suprised looking on so short log, but does not noticed that 
I have misspelled the call.

Here the log:

Erlang (BEAM) emulator version 5.5.2 [async-threads:0]

Eshell V5.5.2  (abort with ^G)
1> dbg:tracer().
{ok,<0.32.0>}
2> dbg:p(all,c).
{ok,[{matched,nonode@REDACTED,24}]}
3> dbg:tp(inet,dbg:fun2ms(fun(_)-return_trace() end)).
** 1: syntax error before: '-' **
3> dbg:tp(inet,dbg:fun2ms(fun(_)->return_trace() end)).
{ok,[{matched,nonode@REDACTED,67},{saved,1}]}
4> dbg:tp(prim_inet,dbg:fun2ms(fun(_)->return_trace() end)).
{ok,[{matched,nonode@REDACTED,47},{saved,1}]}
5> dbg:tp(inet_config,dbg:fun2ms(fun(_)->return_trace() end)).
{ok,[{matched,nonode@REDACTED,4},{saved,1}]}
6> gen_tcp:listen(0,[]).
(<0.30.0>) call inet:listen_options([{port,0}],inet)
{error,enotsock}(<0.30.0>) returned from inet:listen_options/2 -> {ok,{listen_o
ts,
                                                          {0,0,0,0},
                                                          0,
                                                          5,
                                                          -1,
                                                          [{active,true}]}}
(<0.30.0>) call inet:open(-1,{0,0,0,0},0,[{active,true}],stream,inet,inet_tcp)

(<0.30.0>) call prim_inet:open(stream,inet)
(<0.30.0>) returned from prim_inet:open/2 -> {ok,#Port<0.97>}
(<0.30.0>) call prim_inet:setopts(#Port<0.97>,[{active,true}])
7> (<0.30.0>) returned from prim_inet:setopts/2 -> ok
(<0.30.0>) call prim_inet:bind(#Port<0.97>,{0,0,0,0},0)
(<0.30.0>) returned from prim_inet:bind/3 -> {error,enotsock}
(<0.30.0>) call prim_inet:close(#Port<0.97>)
(<0.30.0>) returned from prim_inet:close/1 -> ok
(<0.30.0>) returned from inet:open/7 -> {error,enotsock}






More information about the erlang-questions mailing list