ejabberd won't startup

tom at diogunix.com tom at diogunix.com
Fri Nov 19 00:12:31 UTC 2010


Hello Panagiotis and list,

> I believe we are facing the same issue. Our setup is ejabberd-2.1.5 in
> a FreeBSD 7.3 amd64 jail and the workaround we found is running an
> older version of erlang (erlang-r13b04_3,1). You can find the old
> erlang port files in the FreeBSD CVS repository or here:
> 
>   http://noc.ntua.gr/~christia/erlang.tgz

it seems a solution came up to run Erlang 14B in a Jail. 

A few minutes ago, Michael from the Erlang tribe provied a quick patch for 
Erlang 14B to disable the checks causing the issue with erlang 14B in Jails.

Here's his quick patch:

> diff --git a/erts/epmd/src/epmd_srv.c b/erts/epmd/src/epmd_srv.c
> index ef471a4..e2cc2dc 100644
> --- a/erts/epmd/src/epmd_srv.c
> +++ b/erts/epmd/src/epmd_srv.c
> @@ -766,6 +766,9 @@ static int conn_open(EpmdVars *g,int fd)
>        dbg_tty_printf(g,2,(s->local_peer) ? "Local peer connected" :
>                    "Non-local peer connected");
> 
> +      /* XXX allow local messages from all clients */
> +      s->local_peer = EPMD_TRUE;
> +
>        s->want = 0;           /* Currently unknown */
>        s->got  = 0;
>        s->mod_time = current_time(g); /* Note activity */

He also announced to make a better patch in a few days. Also the Erlang 
folks might offer a future option to disable the check or provide another 
possibility to propperly run Erlang and Erlang programs (such as ejabberd) 
in a Jail.

Hope this helps

kind regards
Tom




More information about the freebsd-questions mailing list