[erlang-questions] crash dump at ejabberd startup
tom@REDACTED
tom@REDACTED
Tue Nov 16 21:36:49 CET 2010
Hello Michael,
thaniks for helping :-)
> > ejabberd Start:
> >
> > # ejabberdctl status
> > {error_logger,{{2010,11,16},{9,56,20}},"Protocol: ~p: register error:
> > ~p~n",
> > ["inet_tcp",{{badmatch,{error,epmd_close}},[{inet_tcp_dist,listen,1},
>
> When a distributed Erlang node starts up, it attempts to register itself
> with an epmd daemon listening on localhost on port 4369 and starts one,
> if an epmd is not running.
I have a process running by unix user "ejabberd", yes:
# ps axu
ejabberd 2355 0.0 0.1 3448 1284 ?? SJ 5:54AM 0:00.14
/usr/local/lib/erlang/erts-5.8.1/bin/epmd -daemon
I guess, this process was started by the ejabberdctl skript when it tried to
launch ejabberd.
EPMD tries to connect to "localhost" ? Then we are on the right track now I
guess FreeBSD jails have only sort of a "half own localhost" and thus one
has to configure the Jails IP address instead of localhost / 127.0.0.1
instead (what usually works for all other daemons).
Where can I configure Erlang to use the Jails IP instead localhost/127.0.0.1
? In that mysterious "inetrc" config file ?
However, there must be a way as I earlier had it running already in another
test host (half a year ago). Just cannot remember the details on how I did
it.
> Check epmd is running and if the node is allowed to contact it from the
> jail. You can get debugging info by running epmd manually: epmd -d -d -d
Ok, did that as
# kill -9 2355
# /usr/local/lib/erlang/erts-5.8.1/bin/epmd -d -d -d
epmd: Tue Nov 16 20:29:59 2010: epmd running - daemon = 0
epmd: Tue Nov 16 20:29:59 2010: try to initiate listening port 4369
epmd: Tue Nov 16 20:29:59 2010: starting
epmd: Tue Nov 16 20:29:59 2010: entering the main select() loop
epmd: Tue Nov 16 20:30:04 2010: time in seconds: 1289939404
epmd: Tue Nov 16 20:30:09 2010: time in seconds: 1289939409
epmd: Tue Nov 16 20:30:14 2010: time in seconds: 1289939414
epmd: Tue Nov 16 20:30:20 2010: time in seconds: 1289939420
epmd: Tue Nov 16 20:30:25 2010: time in seconds: 1289939425
epmd: Tue Nov 16 20:30:30 2010: time in seconds: 1289939430
epmd: Tue Nov 16 20:30:35 2010: time in seconds: 1289939435
epmd: Tue Nov 16 20:30:40 2010: time in seconds: 1289939440
...
...
^C
What could be the next step to test/check ?
kind regards
Tom
More information about the erlang-questions
mailing list