From nobody@FreeBSD.org  Sun Mar 11 16:32:50 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 28D231065675
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 11 Mar 2012 16:32:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id F2E408FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 11 Mar 2012 16:32:49 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q2BGWn43002043
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 11 Mar 2012 16:32:49 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q2BGWnd2002035;
	Sun, 11 Mar 2012 16:32:49 GMT
	(envelope-from nobody)
Message-Id: <201203111632.q2BGWnd2002035@red.freebsd.org>
Date: Sun, 11 Mar 2012 16:32:49 GMT
From: Andrey Shestakov <ornicum@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Ejabberd fails when starting odbc.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         165936
>Category:       ports
>Synopsis:       net-im/ejabberd fails when starting odbc.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ashish
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 11 16:40:04 UTC 2012
>Closed-Date:    
>Last-Modified:  Fri May 18 22:30:01 UTC 2012
>Originator:     Andrey Shestakov
>Release:        8.2
>Organization:
>Environment:
FreeBSD ornicum_server.local 8.2-RELEASE FreeBSD 8.2-RELEASE #2: Sun Jul  3 19:34:35 NOVST 2011     root@ornicum_server:/usr/src/sys/i386/compile/ornicum  i386
>Description:
Goof time of day!

I have installed erlang with odbc support and ejabberd from ports, erlang version is R14B04 and ejabberd version is 2.1.9. When I try to start it in ejabberd.log I see this:

=INFO REPORT==== 2012-03-11 22:43:23 ===
    application: ejabberd
    exited: {bad_return,
        {{ejabberd_app,start,[normal,[]]},
         {'EXIT',
          {noproc,
           {gen_server,call,
            [ejabberd_sup,
             {start_child,
              {'ejabberd_odbc_sup_<my.domain>',
               {ejabberd_odbc_sup,start_link,["<my.domain>"]},
               transient,infinity,supervisor,
               [ejabberd_odbc_sup]}},
             infinity]}}}}}
    type: temporary

And same error in erlang.log.
How can you see there is nothing error name, type of error only. I have searching any information about it. Developers of ejabberd answered that such behavior impossible because it was fixed in more earlier version. And on official site of ejabberd project written in "2.4.1  Requirements" section: "Erlang/OTP R10B-9 or higher. The recommended versions are R12B-5 and R13B04. Dont use R14A or R14B because they have a bug."

What can I do?

Regards,

Andrey Shestakov
>How-To-Repeat:
1. Install erlang with odbc support.
2. Install ejabberd.
3. Install ejabberd module for postgresql.
4. My ejabberd.cfg.
override_acls.
{loglevel, 5}.
{hosts, ["<my.domain>"]}.
{listen,
 [
  {5222, ejabberd_c2s, [
   {access, c2s},
   {shaper, c2s_shaper},
   {max_stanza_size, 65536}
  ]},
  {5280, ejabberd_http, [
   captcha,
   http_bind,
   http_poll,
   web_admin
  ]}
 ]}.
{auth_method, odbc}.
{odbc_server, {pgsql, "localhost", "ejabberd", "ejabber", "password"}}.
{pgsql_users_number_estimate, true}.

all other options is in default value.

5. In /etc/rc.conf.
ejabberd_enable="YES"
ejabberd_node="<my0>@<my_domain>"

6. And now starting.
#/usr/local/etc/rc.d/ejabberd start
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ashish 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Mar 12 00:51:20 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=165936 

From: ashish@FreeBSD.org (Ashish SHUKLA)
To: bug-followup@FreeBSD.org,ornicum@gmail.com
Cc:  
Subject: Re: ports/165936: net-im/ejabberd fails when starting odbc.
Date: Sat, 19 May 2012 03:52:33 +0530

 --=-=-=
 Content-Type: text/plain
 Content-Transfer-Encoding: quoted-printable
 
 Hi,
 
 I updated port net-im/ejabberd to 2.1.11. Could you please check if it solv=
 es
 your problem?
 
 Thanks
 =2D-=20
 Ashish SHUKLA      | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0
 freebsd.org!ashish | http://people.freebsd.org/~ashish/
 
 Sent from my Emacs
 
 --=-=-=
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.18 (FreeBSD)
 
 iQIcBAEBCgAGBQJPtsusAAoJEMdGz6nnT6SwOAoQAJpLFwjB0FULM0VGu/Gif6bi
 nrKGPV82bwHMMpktoaLXrGX40pL5ed9EvMFCTZK+GWjzWcZDdrTaiObX81q+Hvn+
 tf/PDV7EXxHXpP8VxhVDQL+Uw0pRIlHzEeiJPkAbcd3WR9M25eTiRL5sWEbWw+RU
 m3FuWAgmBoj/rVd3h8QqOIA3UF+kA4t9RSsclzmH7yYyTlIfDHvp0ad481Nd+emj
 nWpDUm2PFnrTxULBU05qFuIDrx3sczF0o4UxHumxlN5t5xyCna2PU6bl8H7VXPqy
 1HWHhH6MneMoC/mtdWGtkogbP0P3M3TczzQV1tNcdqRlzetj9HK7CVcmvUaK9LN6
 M74LPHARgzMJzlTaHej0XgOuI65Fvx1f0Ttv+oDRi+RGh/nlHvcIhzbx2VYFi+Yp
 WU7scZQBpzIz3YU9APXdcusGh2SksDeF4Ks7vNXj0ncxvuaBWc2jrhfGQaEjLKIm
 RmaBdi6og/gahrrVTS4dP+vUJa+xz3wVvZeGtl/56tbLS7ahpye7HkEzZeIUExgO
 us3dP0Uzdj2guRYbvge4EhkYTuw7IiAcBf+iWN2lz8CD/FbEuA21WlNNnykb/l+0
 qjBHGbVU4gEmVjf4UVwnHC5K2lBhO5LfnKCgtsLwgGmWcoaozmHPnR27DFVPUuRn
 wok4f9ry3/xhoIsKg758
 =UQA6
 -----END PGP SIGNATURE-----
 --=-=-=--
>Unformatted:
