ejabberd - Comments for "Ejabberd crashing on startup - &amp;quot;Problem starting the module mod_cron for host localhost&amp;quot;" https://www.ejabberd.im/forum/28889/ejabberd-crashing-startup-problem-starting-module-modcron-host-localhost en Thanks for all the help. https://www.ejabberd.im/forum/28889/ejabberd-crashing-startup-problem-starting-module-modcron-host-localhost#comment-67581 <p>Thanks for all the help. Eventually I locate all the ejabbered files, deleted them and installed a fresh version of 17.07 and it seems to work nicely.</p> Sun, 16 Jul 2017 12:40:14 +0000 adiohaion comment 67581 at https://www.ejabberd.im Notice that this purge may https://www.ejabberd.im/forum/28889/ejabberd-crashing-startup-problem-starting-module-modcron-host-localhost#comment-67579 <p>Notice that this purge may keep the Mnesia spool dir. When ejabberd is installed, search for those files, then purge ejabberd, and check the files are removed.</p> Fri, 14 Jul 2017 10:38:03 +0000 badlop comment 67579 at https://www.ejabberd.im sorry meant: sudo apt https://www.ejabberd.im/forum/28889/ejabberd-crashing-startup-problem-starting-module-modcron-host-localhost#comment-67577 <p>sorry meant:<br /> sudo apt autoremove --purge ejabberd</p> Thu, 13 Jul 2017 16:28:28 +0000 adiohaion comment 67577 at https://www.ejabberd.im more info: I tried to https://www.ejabberd.im/forum/28889/ejabberd-crashing-startup-problem-starting-module-modcron-host-localhost#comment-67576 <p>more info:</p> <p>I tried to completely uninstall ejabberd using:<br /> sudo apt-get remove --purge ejabberd</p> <p>still crashing with this:</p> <p>2017-07-13 16:25:09.162 [critical] &lt;0.196.0&gt;@gen_mod:start_module:211 Problem starting the module mod_cron for host localhost<br /> options: []<br /> exit: {aborted,<br /> {bad_type,<br /> {ejabberd_commands,cron_list,<br /> [cron],<br /> "List tasks scheduled in a host",[],mod_cron,cron_list,<br /> [{host,string}],<br /> {tasks,<br /> {list,{task,{tuple,[{id,integer},{task,string}]}}}}}}}<br /> [{mnesia,abort,1,[{file,"mnesia.erl"},{line,313}]},<br /> {lists,foreach,2,[{file,"lists.erl"},{line,1337}]},<br /> {ejabberd_commands,register_commands,1,<br /> [{file,"src/ejabberd_commands.erl"},{line,323}]},<br /> {mod_cron,start,2,[]},<br /> {gen_mod,start_module,4,[{file,"src/gen_mod.erl"},{line,199}]},<br /> {lists,foreach,2,[{file,"lists.erl"},{line,1337}]},<br /> {gen_mod,start_link,0,[{file,"src/gen_mod.erl"},{line,78}]},<br /> {supervisor,do_start_child,2,[{file,"supervisor.erl"},{line,358}]}]<br /> 2017-07-13 16:25:09.162 [critical] &lt;0.196.0&gt;@gen_mod:maybe_halt_ejabberd:293 ejabberd initialization was aborted because a module start failed.</p> Thu, 13 Jul 2017 16:26:39 +0000 adiohaion comment 67576 at https://www.ejabberd.im Thank you for your https://www.ejabberd.im/forum/28889/ejabberd-crashing-startup-problem-starting-module-modcron-host-localhost#comment-67574 <p>Thank you for your reply.</p> <p>First I forgot to mention I upgraded our dev server from 17.01 to 17.07.<br /> When I started that it worked nicely like you said. We worked with that for an hour or so then in the day after it just stopped working with no actions from our end. </p> <p>This is the last thing I see in the error log:</p> <p>2017-07-11 14:46:53.787 [error] &lt;0.3039.0&gt;@ejabberd_hooks:safe_apply:383 Hook c2s_filter_send crashed when running mod_client_state:filter_other/1:<br /> ** Reason = {error,undef,[{maps,take,[],[{&lt;&lt;"tycoon_102803168"&gt;&gt;,&lt;&lt;"localhost"&gt;&gt;},#{}]},{mod_client_state,queue_take,[{file,"src/mod_client_state.erl"},{line,362}],2},{mod_client_state,dequeue_sender,[{file,"src/mod_client_state.erl"},{line,289}],2},{mod_client_state,filter_other,[{file,"src/mod_client_state.erl"},{line,250}],1},{ejabberd_hooks,safe_apply,[{file,"src/ejabberd_hooks.erl"},{line,380}],4},{ejabberd_hooks,run_fold1,[{file,"src/ejabberd_hooks.erl"},{line,364}],4},{ejabberd_c2s,send,[{file,"src/ejabberd_c2s.erl"},{line,128}],2},{ejabberd_hooks,safe_apply,[{file,"src/ejabberd_hooks.erl"},{line,380}],4}]}<br /> ** Arguments = [{{presence,&lt;&lt;&gt;&gt;,available,&lt;&lt;"en"&gt;&gt;,{jid,&lt;&lt;"tycoon_102803168"&gt;&gt;,&lt;&lt;"localhost"&gt;&gt;,&lt;&lt;"51773264847317138715491"&gt;&gt;,&lt;&lt;"tycoon_102803168"&gt;&gt;,&lt;&lt;"localhost"&gt;&gt;,&lt;&lt;"51773264847317138715491"&gt;&gt;},{jid,&lt;&lt;"tycoon_102803168"&gt;&gt;,&lt;&lt;"localhost"&gt;&gt;,&lt;&lt;"51773264847317138715491"&gt;&gt;,&lt;&lt;"tycoon_102803168"&gt;&gt;,&lt;&lt;"localhost"&gt;&gt;,&lt;&lt;"51773264847317138715491"&gt;&gt;},undefined,[],undefined,[],#{}},#{socket =&gt; {socket_state,gen_tcp,#Port&lt;0.18237&gt;,&lt;0.3038.0&gt;},jid =&gt; {jid,&lt;&lt;"tycoon_102803168"&gt;&gt;,&lt;&lt;"localhost"&gt;&gt;,&lt;&lt;"51773264847317138715491"&gt;&gt;,&lt;&lt;"tycoon_102803168"&gt;&gt;,&lt;&lt;"localhost"&gt;&gt;,&lt;&lt;"51773264847317138715491"&gt;&gt;},tls_verify =&gt; false,tls_required =&gt; false,lserver =&gt; &lt;&lt;"localhost"&gt;&gt;,stream_compressed =&gt; false,sid =&gt; {{1499,784167,64},&lt;0.3039.0&gt;},ip =&gt; {{0,0,0,0,0,65535,21109,56334},42040},access =&gt; c2s,pres_t =&gt; {1,{{&lt;&lt;"tycoon_102803168"&gt;&gt;,&lt;&lt;"localhost"&gt;&gt;,&lt;&lt;&gt;&gt;},nil,nil}},auth_module =&gt; ejabberd_auth_sql,shaper =&gt; c2s_shaper,stream_direction =&gt; in,server =&gt; &lt;&lt;"localhost"&gt;&gt;,stream_timeout =&gt; infinity,pres_f =&gt; {1,{{&lt;&lt;"tycoon_102803168"&gt;&gt;,&lt;&lt;"localhost"&gt;&gt;,&lt;&lt;&gt;&gt;},nil,nil}},stream_encrypted =&gt; false,stream_state =&gt; established,resource =&gt; &lt;&lt;"51773264847317138715491"&gt;&gt;,mod =&gt; ejabberd_c2s,pres_a =&gt; {1,{{&lt;&lt;"tycoon_102803168"&gt;&gt;,&lt;&lt;"localhost"&gt;&gt;,&lt;&lt;&gt;&gt;},nil,nil}},resend_offline =&gt; false,privacy_list =&gt; {userlist,none,[],false},csi_queue =&gt; {0,0,#{}},stream_version =&gt; {1,0},stream_restarted =&gt; true,zlib =&gt; true,pres_last =&gt; {presence,&lt;&lt;&gt;&gt;,available,&lt;&lt;"en"&gt;&gt;,{jid,&lt;&lt;"tycoon_102803168"&gt;&gt;,&lt;&lt;"localhost"&gt;&gt;,&lt;&lt;"51773264847317138715491"&gt;&gt;,&lt;&lt;"tycoon_102803168"&gt;&gt;,&lt;&lt;"localhost"&gt;&gt;,&lt;&lt;"51773264847317138715491"&gt;&gt;},{jid,&lt;&lt;"tycoon_102803168"&gt;&gt;,&lt;&lt;"localhost"&gt;&gt;,&lt;&lt;&gt;&gt;,&lt;&lt;"tycoon_102803168"&gt;&gt;,&lt;&lt;"localhost"&gt;&gt;,&lt;&lt;&gt;&gt;},undefined,[],undefined,[],#{}},conn =&gt; c2s,stream_header_sent =&gt; true,sockmod =&gt; ejabberd_socket,tls_options =&gt; [compression_none,{protocol_options,&lt;&lt;"no_sslv3"&gt;&gt;},{certfile,&lt;&lt;"/etc/ejabberd/ejabberd.pem"&gt;&gt;}],owner =&gt; &lt;0.3039.0&gt;,tls_enabled =&gt; true,user =&gt; &lt;&lt;"tycoon_102803168"&gt;&gt;,socket_monitor =&gt; #Ref&lt;0.0.2.12697&gt;,stream_authenticated =&gt; true,lang =&gt; &lt;&lt;"en"&gt;&gt;,pres_timestamp =&gt; {1499,784413,784957},csi_state =&gt; active,xmlns =&gt; &lt;&lt;"jabber:client"&gt;&gt;,stream_id =&gt; &lt;&lt;"9727283898252478331"&gt;&gt;,caps_resources =&gt; {0,nil}}}]</p> <p>I also uploaded the dump file here:<br /> <noindex><a href="https://www.dropbox.com/s/kqtxt8azugy3js8/erl_crash_20170712-110933.dump?dl=0" title="https://www.dropbox.com/s/kqtxt8azugy3js8/erl_crash_20170712-110933.dump?dl=0" rel="nofollow" >https://www.dropbox.com/s/kqtxt8azugy3js8/erl_crash_20170712-110933.dump...</a></noindex></p> <p>Let me know what else I can provide to solve this.</p> <p>Thanks.</p> Wed, 12 Jul 2017 11:21:39 +0000 adiohaion comment 67574 at https://www.ejabberd.im And what did you do to make https://www.ejabberd.im/forum/28889/ejabberd-crashing-startup-problem-starting-module-modcron-host-localhost#comment-67571 <p>And what did you do to make this problem happen? I mean, when you installed ejabberd, it started correctly, what has changed that it crashes now?</p> Wed, 12 Jul 2017 09:49:36 +0000 badlop comment 67571 at https://www.ejabberd.im