ejabberd - Comments for "ejabberd 2.0.0 with OLPC mods on FC7; cant&amp;#039; login in to web interface" https://www.ejabberd.im/node/2967 en Check this FAQ page https://www.ejabberd.im/node/2967#comment-52205 <div class="quote-msg"> <div class="quote-author"><em>kbakalar</em> wrote:</div> <p>I reverted to the previous version of the OLPC ejabberd -- ejabberd-1.1.3-1.olpc.i386.rpm Now I get a different crash:</p> <p>=CRASH REPORT==== 12-Apr-2008::12:11:47 ===<br /> crasher:<br /> pid: &lt;0.36.0&gt;<br /> registered_name: []<br /> exception exit: {bad_return,<br /> {{ejabberd_app,start,[normal,[]]},<br /> {'EXIT',<br /> {{badmatch,{aborted,{no_exists,config}}},<br /> [{ejabberd_config,set_opts,1},</p> </div> <p>Check this FAQ page:<br /> <noindex><a href="/node/602" rel="nofollow" >aborted,{no_exists,config}</a></noindex></p> Sun, 20 Apr 2008 17:23:24 +0000 mfoss comment 52205 at https://www.ejabberd.im ejabberd 2.0.0 from source w/olpc patches gives same error https://www.ejabberd.im/node/2967#comment-52179 <p>I downloaded the sources, applied the OLPC patches, compiled and installed with no errors (a few warnings)according to <noindex><a href="http://wiki.laptop.org/go/Installing_ejabberd" title="http://wiki.laptop.org/go/Installing_ejabberd" rel="nofollow" >http://wiki.laptop.org/go/Installing_ejabberd</a></noindex>. I get the same error message as I got with 1.1.3. in sasl.log when I start with the "System-&gt;Services" control panel in GNOME.</p> <p>Any advice would be appreciated.</p> Mon, 14 Apr 2008 02:31:55 +0000 kbakalar comment 52179 at https://www.ejabberd.im ejabbard-1-.1.3-1.olpc gives different crash https://www.ejabberd.im/node/2967#comment-52174 <p>I reverted to the previous version of the OLPC ejabberd -- ejabberd-1.1.3-1.olpc.i386.rpm Now I get a different crash:</p> <p>=PROGRESS REPORT==== 12-Apr-2008::12:11:45 ===<br /> application: ssl<br /> started_at: ejabberd@jabber</p> <p>=CRASH REPORT==== 12-Apr-2008::12:11:47 ===<br /> crasher:<br /> pid: &lt;0.36.0&gt;<br /> registered_name: []<br /> exception exit: {bad_return,<br /> {{ejabberd_app,start,[normal,[]]},<br /> {'EXIT',<br /> {{badmatch,{aborted,{no_exists,config}}},<br /> [{ejabberd_config,set_opts,1},<br /> {ejabberd_app,start,2},<br /> {application_master,start_it_old,4}]}}}}<br /> in function application_master:init/4<br /> initial call: application_master:init(&lt;0.5.0&gt;,&lt;0.35.0&gt;,<br /> {appl_data,ejabberd,<br /> [ejabberd,ejabberd_sup,<br /> ejabberd_auth,ejabberd_router,<br /> ejabberd_sm,ejabberd_s2s,<br /> ejabberd_local,ejabberd_listeners,<br /> ejabberd_iq_sup,<br /> ejabberd_service_sup,<br /> ejabberd_s2s_out_sup,<br /> ejabberd_s2s_in_sup,<br /> ejabberd_c2s_sup,<br /> ejabberd_mod_roster,<br /> ejabberd_mod_echo,<br /> ejabberd_mod_pubsub,<br /> ejabberd_mod_irc,ejabberd_mod_muc,<br /> ejabberd_offline,random_generator],<br /> undefined,<br /> {ejabberd_app,[]},<br /> [acl,configure,cyrsasl,<br /> cyrsasl_digest,cyrsasl_plain,<br /> ejabberd,ejabberd_app,<br /> ejabberd_auth,ejabberd_c2s,<br /> ejabberd_config,ejabberd_listener,<br /> ejabberd_logger_h,ejabberd_local,<br /> ejabberd_router,ejabberd_s2s,<br /> ejabberd_s2s_in,ejabberd_s2s_out,<br /> ejabberd_service,ejabberd_sm,<br /> ejabberd_sup,ejabberd_tmp_sup,<br /> gen_iq_handler,gen_mod,jd2ejd,<br /> jlib,mod_caps,mod_configure,<br /> mod_ctlextra,mod_disco,mod_echo,<br /> mod_last,mod_offline,mod_private,<br /> mod_register,mod_roster,mod_stats,<br /> mod_time,mod_vcard,mod_version,<br /> randoms,sha,shaper,translate,xml,<br /> xml_stream],<br /> [],infinity,infinity},<br /> normal)<br /> ancestors: [&lt;0.35.0&gt;]<br /> messages: [{'EXIT',&lt;0.37.0&gt;,normal}]<br /> links: [&lt;0.35.0&gt;,&lt;0.5.0&gt;]<br /> dictionary: []<br /> trap_exit: true<br /> status: running<br /> heap_size: 610<br /> stack_size: 23<br /> reductions: 123<br /> neighbours:</p> Sat, 12 Apr 2008 16:20:49 +0000 kbakalar comment 52174 at https://www.ejabberd.im stringprep_drv is the problem; what next? https://www.ejabberd.im/node/2967#comment-52173 <p>Well, so it is. I am on a 32 bit architecture-- an old one, dual processor 300 Mz Pentiums in an HP Kayak SU. I got ejabberd from <noindex><a href="http://wiki.laptop.org/go/Installing_ejabberd" title="http://wiki.laptop.org/go/Installing_ejabberd" rel="nofollow" >http://wiki.laptop.org/go/Installing_ejabberd</a></noindex> -&gt; <noindex><a href="http://people.collabora.co.uk/~robot101/olpc-ejabberd/ejabberd-2.0.0-0.1.beta1.fc7.olpc.i386.rpm" title="http://people.collabora.co.uk/~robot101/olpc-ejabberd/ejabberd-2.0.0-0.1.beta1.fc7.olpc.i386.rpm" rel="nofollow" >http://people.collabora.co.uk/~robot101/olpc-ejabberd/ejabberd-2.0.0-0.1...</a></noindex><br /> Could it be that this is broken?<br /> Should I try to compile from the Collabra sources according to <noindex><a href="http://wiki.laptop.org/go/Installing_ejabberd" title="http://wiki.laptop.org/go/Installing_ejabberd" rel="nofollow" >http://wiki.laptop.org/go/Installing_ejabberd</a></noindex> ?</p> <p># locate stringprep<br /> /usr/lib/ejabberd-2.0.0/ebin/stringprep.beam<br /> /usr/lib/ejabberd-2.0.0/ebin/stringprep_sup.beam<br /> /usr/lib/ejabberd-2.0.0/priv/lib/stringprep_drv.so<br /> /usr/lib/python2.5/stringprep.py<br /> /usr/lib/python2.5/stringprep.pyc<br /> /usr/lib/python2.5/stringprep.pyo<br /> [root@jabber ejabberd]# erl<br /> Erlang (BEAM) emulator version 5.6.1 [source] [smp:2] [async-threads:0] [hipe] [kernel-poll:false]</p> <p>Eshell V5.6.1 (abort with ^G)<br /> 1&gt; erl_ddll:load_driver("/usr/lib/ejabberd-2.0.0/priv/lib"), stringprep_drv).<br /> * 1: syntax error before: ')'<br /> 1&gt; erl_ddll:load_driver("/usr/lib/ejabberd-2.0.0/priv/lib", stringprep_drv).<br /> {error,driver_incorrect_version}<br /> 2&gt;</p> Sat, 12 Apr 2008 15:54:20 +0000 kbakalar comment 52173 at https://www.ejabberd.im Maybe stringprep_drv compiled for a differentarchitecture https://www.ejabberd.im/node/2967#comment-52168 <div class="quote-msg"> <div class="quote-author"><em>kbakalar</em> wrote:</div> <p>I misread the log. I think it is crashing earlier. The question is, which driver is of the incorrect version??</p> <pre>=CRASH REPORT==== 11-Apr-2008::22:17:46 === crasher: pid: &lt;0.115.0&gt; registered_name: stringprep exception exit: {{case_clause,{error,driver_incorrect_version}}, [{stringprep,init,1}, {gen_server,init_it,6}, {proc_lib,init_p,5}]} in function gen_server:init_it/6 initial call: gen:init_it(gen_server,&lt;0.114.0&gt;,&lt;0.114.0&gt;, {local,stringprep}, stringprep,[],[]) ancestors: [stringprep_sup,&lt;0.37.0&gt;] messages: [] links: [&lt;0.114.0&gt;] dictionary: [] trap_exit: false status: running heap_size: 233 stack_size: 23 reductions: 209 neighbours:</pre></div> <p>So you found the first error message reported by ejabberd when starting. It says the 'stringprep' C dirver is of incorrect version. It means the file stringprep_drv.so</p> <p>Maybe the ejabberd you use is compiled for 32bits kernel, and you are using a 64 bit kernel?</p> <p>You can experiment to load the file manually. Check where the file is in your system, and try this:</p> <pre>$ erl Erlang (BEAM) emulator version 5.6.2 [source] [smp:2] [async-threads:0] [kernel-poll:false] Eshell V5.6.2 (abort with ^G) 1&gt; erl_ddll:load_driver("/var/lib/ejabberd/priv/lib", stringprep_drv). ok 2&gt; q().</pre> Sat, 12 Apr 2008 07:20:18 +0000 mfoss comment 52168 at https://www.ejabberd.im Ah, then ejabberd can't start https://www.ejabberd.im/node/2967#comment-52167 <div class="quote-msg"> <div class="quote-author"><em>kbakalar</em> wrote:</div> <p>there is no process running named ejabberd<br /> telnet to 5222 connection refused.</p></div> <p>If telnet fails, then you are sure ejabberd couldn't start correctly.</p> <p>BTW, the system process you want to search for ejabberd is called 'beam'.</p> Sat, 12 Apr 2008 07:08:21 +0000 mfoss comment 52167 at https://www.ejabberd.im sasl.log shows "driver_incorrect_version" crash report https://www.ejabberd.im/node/2967#comment-52166 <p>I misread the log. I think it is crashing earlier. The question is, which driver is of the incorrect version??</p> <p>=PROGRESS REPORT==== 11-Apr-2008::22:17:46 ===<br /> supervisor: {local,ssl_sup}<br /> started: [{pid,&lt;0.113.0&gt;},<br /> {name,ssl_connection},<br /> {mfa,{ssl_connection_sup,start_link,[]}},<br /> {restart_type,permanent},<br /> {shutdown,4000},<br /> {child_type,supervisor}]</p> <p>=PROGRESS REPORT==== 11-Apr-2008::22:17:46 ===<br /> application: ssl<br /> started_at: ejabberd@jabber</p> <p>=CRASH REPORT==== 11-Apr-2008::22:17:46 ===<br /> crasher:<br /> pid: &lt;0.115.0&gt;<br /> registered_name: stringprep<br /> exception exit: {{case_clause,{error,driver_incorrect_version}},<br /> [{stringprep,init,1},<br /> {gen_server,init_it,6},<br /> {proc_lib,init_p,5}]}<br /> in function gen_server:init_it/6<br /> initial call: gen:init_it(gen_server,&lt;0.114.0&gt;,&lt;0.114.0&gt;,<br /> {local,stringprep},<br /> stringprep,[],[])<br /> ancestors: [stringprep_sup,&lt;0.37.0&gt;]<br /> messages: []<br /> links: [&lt;0.114.0&gt;]<br /> dictionary: []<br /> trap_exit: false<br /> status: running<br /> heap_size: 233<br /> stack_size: 23<br /> reductions: 209<br /> neighbours:</p> <p>=SUPERVISOR REPORT==== 11-Apr-2008::22:17:46 ===<br /> Supervisor: {local,stringprep_sup}<br /> Context: start_error<br /> Reason: {{case_clause,{error,driver_incorrect_version}},<br /> [{stringprep,init,1},<br /> {gen_server,init_it,6},<br /> {proc_lib,init_p,5}]}<br /> Offender: [{pid,undefined},<br /> {name,stringprep},<br /> {mfa,{stringprep,start_link,[]}},<br /> {restart_type,permanent},<br /> {shutdown,brutal_kill},<br /> {child_type,worker}]</p> <p>=CRASH REPORT==== 11-Apr-2008::22:17:49 ===<br /> crasher:<br /> pid: &lt;0.36.0&gt;<br /> registered_name: []<br /> exception exit: {bad_return,<br /> {{ejabberd_app,start,[normal,[]]},<br /> {'EXIT',<br /> {badarg,<br /> [{erlang,port_control,<br /> [stringprep_port,2,<br /> "jabber.homelinux.net"]},<br /> {stringprep,control,2},<br /> {jlib,nodeprep,1},<br /> {ejabberd_config,normalize_hosts,2},<br /> {ejabberd_config,add_hosts_to_option,2},<br /> {lists,foldl,3},<br /> {ejabberd_config,load_file,1},<br /> {ejabberd_app,start,2}]}}}}<br /> in function application_master:init/4<br /> initial call: application_master:init(&lt;0.5.0&gt;,&lt;0.35.0&gt;,<br /> {appl_data,ejabberd,<br /> [ejabberd,ejabberd_sup,<br /> ejabberd_auth,ejabberd_router,<br /> ejabberd_sm,ejabberd_s2s,<br /> ejabberd_local,ejabberd_listeners,<br /> ejabberd_iq_sup,<br /> ejabberd_service_sup,<br /> ejabberd_s2s_out_sup,<br /> ejabberd_s2s_in_sup,<br /> ejabberd_c2s_sup,<br /> ejabberd_mod_roster,<br /> ejabberd_mod_echo,<br /> ejabberd_mod_pubsub,<br /> ejabberd_mod_irc,ejabberd_mod_muc,<br /> ejabberd_offline,random_generator],<br /> undefined,<br /> {ejabberd_app,[]},<br /> [acl,adhoc,configure,<br /> cyrsasl_anonymous,cyrsasl,<br /> cyrsasl_digest,cyrsasl_plain,<br /> ejabberd_admin,ejabberd_app,<br /> ejabberd_auth_anonymous,<br /> ejabberd_auth,<br /> ejabberd_auth_external,<br /> ejabberd_auth_internal,<br /> ejabberd_auth_ldap,<br /> ejabberd_auth_odbc,<br /> ejabberd_auth_pam,ejabberd,<br /> ejabberd_c2s,ejabberd_c2s_config,<br /> ejabberd_config,ejabberd_ctl,<br /> ejabberd_frontend_socket,<br /> ejabberd_hooks,ejabberd_http,<br /> ejabberd_http_bind,<br /> ejabberd_http_poll,</p> <p>[trunctated]</p> Sat, 12 Apr 2008 02:30:25 +0000 kbakalar comment 52166 at https://www.ejabberd.im ejabberd is not listening on 5222 https://www.ejabberd.im/node/2967#comment-52165 <p>there is no process running named ejabbard<br /> telnet to 5222 connection refused.<br /> telnet to 80 or 8080 (my http server) produces the expected garbage<br /> there is no ejabbard.log<br /> sasl.log contains a crash report for an<br /> exception exit: {bad return, {{ejabbard_app, start, [normal,[]]},<br /> and so on for a while. I will post the full sasl.log, if it can help</p> <p>I posted the .cfg twice because I was unfamiliar with this posting software. It was a mistake. I promise I won't do it again.</p> Sat, 12 Apr 2008 00:13:50 +0000 kbakalar comment 52165 at https://www.ejabberd.im Why did you post your full https://www.ejabberd.im/node/2967#comment-52161 <p>Why did you post your full config twice?</p> <p>Check ejabberd.log and sasl.log.</p> <p>Check if ejabberd listens in port 5222. For example: telnet 127.0.0.1 5222</p> Fri, 11 Apr 2008 23:39:30 +0000 mfoss comment 52161 at https://www.ejabberd.im