From owner-freebsd-questions@FreeBSD.ORG Fri Nov 19 00:12:31 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FDD21065696 for ; Fri, 19 Nov 2010 00:12:31 +0000 (UTC) (envelope-from tom@diogunix.com) Received: from mail.kepos.org (mail.kepos.org [64.120.5.168]) by mx1.freebsd.org (Postfix) with ESMTP id 5F3848FC17 for ; Fri, 19 Nov 2010 00:12:31 +0000 (UTC) From: "tom@diogunix.com" To: freebsd-questions@freebsd.org, Panagiotis Christias Date: Fri, 19 Nov 2010 01:12:05 +0100 References: <201011170535.46151.tom@diogunix.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011190112.06484.tom@diogunix.com> Cc: Subject: Re: ejabberd won't startup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Nov 2010 00:12:31 -0000 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