Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Feb 2012 12:57:40 GMT
From:      Neil Darlow <neil@darlow.co.uk>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/165360: ejabberdctl fails to communicate with ejabberd process
Message-ID:  <201202211257.q1LCveCk002531@red.freebsd.org>
Resent-Message-ID: <201202211300.q1LD0Ked053570@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         165360
>Category:       ports
>Synopsis:       ejabberdctl fails to communicate with ejabberd process
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 21 13:00:20 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Neil Darlow
>Release:        RELENG_9_0
>Organization:
>Environment:
FreeBSD bumblebee.darlow.co.uk 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Thu Jan  5 04:54:45 GMT 2012     root@bumblebee.darlow.co.uk:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
With ejabberd-2.1.9 installed and configured it is possible to start ejabberd with /usr/local/etc/rc.d/ejabberd start but /usr/local/etc/rc.d/ejabberd stop fails to stop ejabberd with a RPC error. Similarly /usr/local/etc/rc.d/ejabberd status indicates the node is not running when it clearly is.

/etc/rc.conf.local:
ejabberd_enable="YES"
ejabberd_node="ejabberd@bumblebee"

/etc/hosts:
192.168.1.2             bumblebee.darlow.co.uk bumblebee

hostname -s
bumblebee


>How-To-Repeat:
1) Start ejabberd
bumblebee# /usr/local/etc/rc.d/ejabberd start
Starting ejabberd.

bumblebee # ps ax
 2185  ??  S      0:00.00 /usr/local/lib/erlang/erts-5.8.5/bin/epmd -daemon
 2187  ??  S      0:03.18 [beam.smp]
 2188  ??  Ss     0:00.02 /usr/local/lib/erlang/lib/ssl-4.1.6/priv/bin/ssl_esoc
 2189  ??  Is     0:00.01 inet_gethost 4
 2190  ??  I      0:00.00 inet_gethost 4

2) Query ejabberd status
bumblebee# /usr/local/etc/rc.d/ejabberd status
ejabberd is not running.

bumblebee# ps ax
 2185  ??  S      0:00.00 /usr/local/lib/erlang/erts-5.8.5/bin/epmd -daemon
 2187  ??  S      0:03.21 [beam.smp]
 2188  ??  Ss     0:00.02 /usr/local/lib/erlang/lib/ssl-4.1.6/priv/bin/ssl_esoc
 2189  ??  Is     0:00.01 inet_gethost 4
 2190  ??  I      0:00.00 inet_gethost 4

3) Attempt to stop ejabberd
bumblebee# /usr/local/etc/rc.d/ejabberd stop
Stopping ejabberd.
Failed RPC connection to the node ejabberd@bumblebee: 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@bumblebee

ejabberd not running?

4) Verify that ejabberd is operational
bumblebee# netstat -an
tcp4       0      0 *.5280                 *.*                    LISTEN
tcp4       0      0 *.5269                 *.*                    LISTEN
tcp4       0      0 *.5222                 *.*                    LISTEN

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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