Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Nov 2010 01:12:05 +0100
From:      "tom@diogunix.com" <tom@diogunix.com>
To:        freebsd-questions@freebsd.org, Panagiotis Christias <christias@gmail.com>
Subject:   Re: ejabberd won't startup
Message-ID:  <201011190112.06484.tom@diogunix.com>
In-Reply-To: <AANLkTikr_81RkpUXNrTZoMxZ%2B_=OAHmqHQZzNU3Mn7sp@mail.gmail.com>
References:  <201011170535.46151.tom@diogunix.com> <AANLkTikr_81RkpUXNrTZoMxZ%2B_=OAHmqHQZzNU3Mn7sp@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011190112.06484.tom>