[ejabberd] ejabberd doesn't start after upgrade from wheezy to jessie with LDAP authentication

q.8 at gmx.net q.8 at gmx.net
Thu Jun 13 13:16:45 MSK 2013


I recently did an upgrade from debian wheezy to debian jessie (testing). After the upgrade ejabberd doesn't start anymore if LDAP is enabled.

Has anybody experienced the same problem? Or some ideas on how to fix that problem?

Thank you very much in advance,
  Bernhard


/var/log/ejabberd/ejabberd.log: (complete section here: http://pastebin.com/AnmvKzGt)
<pre>
=INFO REPORT==== 2013-06-13 10:55:10 ===
D(<0.356.0>:eldap:1032) : Bind Request Message:{'LDAPMessage',1,
                                                {bindRequest,
                                                 {'BindRequest',3,[],
                                                  {simple,[]}}},
                                                asn1_NOVALUE}


=ERROR REPORT==== 2013-06-13 10:55:10 ===
** State machine 'eldap_#Ref<0.0.0.10922>' terminating 
** Last event in was timeout
** When State == connecting
**      Data  == {eldap,3,
                        ["localhost"],
                        null,389,undefined,none,[],null,[],[],0,undefined,
                        {dict,0,16,16,8,80,48,
                              {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                               []},
                              {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                []}}},
                        {[],[]}}
** Reason for termination = 
** {{badmatch,
        {error,
            {asn1,
                {undef,
                    [{asn1rt_ber_bin_v2,encode_integer,[[],1,[<<2>>]],[]},
                     {'ELDAPv3',enc_LDAPMessage,2,
                         [{file,"ELDAPv3.erl"},{line,288}]},
                     {'ELDAPv3',encode,2,[{file,"ELDAPv3.erl"},{line,130}]},
                     {asn1rt,encode,3,[{file,"asn1rt.erl"},{line,34}]},
                     {eldap,bind_request,2,[{file,"eldap.erl"},{line,1033}]},
                     {eldap,connect_bind,1,[{file,"eldap.erl"},{line,1002}]},
                     {eldap,connecting,2,[{file,"eldap.erl"},{line,498}]},
                     {gen_fsm,handle_msg,7,
                         [{file,"gen_fsm.erl"},{line,494}]}]}}}},
    [{eldap,bind_request,2,[{file,"eldap.erl"},{line,1033}]},
     {eldap,connect_bind,1,[{file,"eldap.erl"},{line,1002}]},
     {eldap,connecting,2,[{file,"eldap.erl"},{line,498}]},
     {gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,494}]},
     {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}

=ERROR REPORT==== 2013-06-13 10:55:10 ===
C(<0.37.0>:gen_mod:75) : Problem starting the module mod_muc for host "server2" 
 options: [{access,muc},
           {access_create,muc},
           {access_persistent,muc},
           {access_admin,muc_admin},
           {max_users,500}]
 exit: {shutdown,
           {gen_server,call,
               [ejabberd_sup,
                {start_child,
                    {ejabberd_mod_muc_sup_server2,
                        {ejabberd_tmp_sup,start_link,
                            [ejabberd_mod_muc_sup_server2,mod_muc_room]},
                        permanent,infinity,supervisor,
                        [ejabberd_tmp_sup]}},
                infinity]}}

=ERROR REPORT==== 2013-06-13 10:55:10 ===
C(<0.37.0>:gen_mod:80) : ejabberd initialization was aborted because a module start failed.
</pre>

I haven't changed my config, so it should be ok:

<pre>
%%
%% Authentication using LDAP
%%
{auth_method, [ldap, internal]}.
%%{auth_method, [internal]}.
%%
%% List of LDAP servers:
{ldap_servers, ["localhost"]}.
%%
%% Encryption of connection to LDAP servers (LDAPS):
{ldap_encrypt, none}.
%%{ldap_encrypt, tls}.
%%
%% Port connect to LDAP server:
{ldap_port, 389}.
%%{ldap_port, 636}.
%%
%% LDAP manager:
{ldap_rootdn, ""}.
%%
%% Password to LDAP manager:
%%{ldap_password, ""}.
%%
%% Search base of LDAP directory:
{ldap_base, "ou=People,dc=domain,dc=local"}.
</pre>



System information:
<pre>
$ uname -a
Linux SERVER2 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2+deb7u2 x86_64 GNU/Linux

$ apt-cache showpkg ejabberd
Package: ejabberd
Versions: 
2.1.10-5
</pre>


More information about the ejabberd mailing list