From owner-freebsd-ports@FreeBSD.ORG Mon May 27 19:18:58 2013 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2766CB0B for ; Mon, 27 May 2013 19:18:58 +0000 (UTC) (envelope-from matt@conundrum.com) Received: from kaywinnit.conundrum.com (smtp.conundrum.com [IPv6:2001:4900:1:213::2:20]) by mx1.freebsd.org (Postfix) with ESMTP id 0A1D679E for ; Mon, 27 May 2013 19:18:58 +0000 (UTC) Received: from chani.conundrum.com ([216.235.10.34]) by kaywinnit.conundrum.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1Uh2wY-000IwR-9h; Mon, 27 May 2013 19:18:54 +0000 From: Matthew Pounsett Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Mon, 27 May 2013 15:18:48 -0400 Subject: ejabberd port: default config not working To: freebsd-ports@FreeBSD.org Message-Id: Mime-Version: 1.0 (Apple Message framework v1283) X-Mailer: Apple Mail (2.1283) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 May 2013 19:18:58 -0000 I've just installed ejabberd from ports=20 > sudo portversion -v ejabberd ejabberd-2.1.11 =3D up-to-date with port=20 Just to get it running, I've put the sample configs in place as running = configs. I did a quick scan through them to look for any obvious = changes that needed to be made for local configuration and started up = the daemon.=20 The only oddity I found is that ejabberdctl.cfg refers to = /var/run/ejabberd/ejabberd.pid for the ejabberd PID file, but that = directory wasn't created. I tried creating it, but ejabberd writes = nothing there. > ps auxww | grep ejabberd ejabberd 70497 0.0 0.1 8072 1236 ?? S 7:06PM 0:00.01 = /usr/local/lib/erlang/erts-5.9.3.1/bin/epmd -daemon > ls -la /var/run/ejabberd/ total 4 drwxr-xr-x 2 ejabberd ejabberd 512 May 24 18:39 . drwxr-xr-x 12 root wheel 1024 May 27 19:09 .. =20 Despite this the daemon seems to have started fine. However, the = control client isn't able to talk to ejabberd. = =20 > sudo ejabberdctl register matt conundrum.com [REDACTED] Failed RPC connection to the node ejabberd@localhost: nodedown Commands to start an ejabberd node: start Start an ejabberd node in server mode debug Attach an interactive Erlang shell to a running ejabberd node live Start an ejabberd node in live (interactive) mode Optional parameters when starting an ejabberd node: --config-dir dir Config ejabberd: /usr/local/etc/ejabberd --config file Config ejabberd: = /usr/local/etc/ejabberd/ejabberd.cfg --ctl-config file Config ejabberdctl: = /usr/local/etc/ejabberd/ejabberdctl.cfg --logs dir Directory for logs: /var/log/ejabberd --spool dir Database spool dir: /var/spool/ejabberd --node nodename ejabberd node name: ejabberd@localhost Is this just the missing PID file that's the problem? I can't find a = reference to a PID config in the ejabberd.cfg file, so I'm not sure if = it's really expected to write something in that location or not. I'm = also unsure how ejabberdctl is trying to communicate with ejabberd .. = whether the PID file is even important.. Anyone know what I'm missing here? Thanks