ejabberd - Comments for "ejabberd not starting after filesystem issue" https://www.ejabberd.im/node/3728 en For explanation of this error https://www.ejabberd.im/node/3728#comment-54905 <p>For explanation of this error message: ["inet_tcp",{{badmatch,{error,duplicate_name}},<br /> see: <a href="http://www.ejabberd.im/error/duplicate_name">error, duplicate_name</a></p> Mon, 16 Nov 2009 22:47:37 +0000 mfoss comment 54905 at https://www.ejabberd.im Second run https://www.ejabberd.im/node/3728#comment-54872 <div class="codeblock"><code>p:~# su - ejabberd -c /usr/sbin/ejabberd<br />Erlang (BEAM) emulator version 5.6.3 [source] [async-threads:0] [kernel-poll:false] <p>Eshell V5.6.3&nbsp; (abort with ^G)<br />(ejabberd@p)1&gt; <br />=ERROR REPORT==== 11-Nov-2009::17:18:40 ===<br />Mnesia(ejabberd@p): ** ERROR ** (core dumped to file: &quot;/var/lib/ejabberd/MnesiaCore.ejabberd@p_1257_956320_152964&quot;)<br /> ** FATAL ** mnesia_recover crashed: {&quot;Bad decision log item&quot;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {log_header,dcl_log,&quot;1.0&quot;,&quot;4.4.11&quot;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ejabberd@p,<br />&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false,[]}</p> <p>=ERROR REPORT==== 11-Nov-2009::17:18:50 ===<br />** Generic server mnesia_monitor terminating <br />** Last message in was {&#039;EXIT&#039;,&lt;0.67.0&gt;,killed}<br />** When Server state == {state,&lt;0.67.0&gt;,[],[],false,[],undefined,[]}<br />** Reason for termination == <br />** killed</p> <p>=ERROR REPORT==== 11-Nov-2009::17:18:50 ===<br />Mnesia(ejabberd@p): ** ERROR ** mnesia_event got unexpected event: {&#039;EXIT&#039;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;0.69.0&gt;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; killed}</p> <p>=INFO REPORT==== 11-Nov-2009::17:18:50 ===<br />&nbsp;&nbsp;&nbsp; application: mnesia<br />&nbsp;&nbsp;&nbsp; exited: {killed,{mnesia_sup,start,[normal,[]]}}<br />&nbsp;&nbsp;&nbsp; type: temporary</p> <p>=INFO REPORT==== 11-Nov-2009::17:18:50 ===<br />&nbsp;&nbsp;&nbsp; application: ejabberd<br />&nbsp;&nbsp;&nbsp; exited: {bad_return,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {{ejabberd_app,start,[normal,[]]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&#039;EXIT&#039;,{aborted,{node_not_running,ejabberd@p}}}}}<br />&nbsp;&nbsp;&nbsp; type: temporary</p></code></div> Wed, 11 Nov 2009 16:20:16 +0000 sylwester comment 54872 at https://www.ejabberd.im More verbose output from su - ejabberd -c /usr/sbin/ejabberd https://www.ejabberd.im/node/3728#comment-54871 <div class="codeblock"><code>{error_logger,{{2009,11,11},{17,17,5}},&quot;Protocol: ~p: register error: ~p~n&quot;,[&quot;inet_tcp&quot;,{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p,5}]}]}<br />{error_logger,{{2009,11,11},{17,17,5}},crash_report,[[{pid,&lt;0.20.0&gt;},{registered_name,net_kernel},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p,5}]}},{initial_call,{gen,init_it,[gen_server,&lt;0.17.0&gt;,&lt;0.17.0&gt;,{local,net_kernel},net_kernel,{ejabberd,shortnames,15000},[]]}},{ancestors,[net_sup,kernel_sup,&lt;0.8.0&gt;]},{messages,[]},{links,[#Port&lt;0.7&gt;,&lt;0.17.0&gt;]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,23},{reductions,453}],[]]}<br />{error_logger,{{2009,11,11},{17,17,5}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{&#039;EXIT&#039;,nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[[ejabberd,shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}<br />{error_logger,{{2009,11,11},{17,17,5}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfa,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}<br />{error_logger,{{2009,11,11},{17,17,5}},crash_report,[[{pid,&lt;0.7.0&gt;},{registered_name,[]},{error_info,{exit,{shutdown,{kernel,start,[normal,[]]}},[{application_master,init,4},{proc_lib,init_p,5}]}},{initial_call,{application_master,init,[&lt;0.5.0&gt;,&lt;0.6.0&gt;,{appl_data,kernel,[application_controller,erl_reply,auth,boot_server,code_server,disk_log_server,disk_log_sup,erl_prim_loader,error_logger,file_server_2,fixtable_server,global_group,global_name_server,heart,init,kernel_config,kernel_sup,net_kernel,net_sup,rex,user,os_server,ddll_server,erl_epmd,inet_db,pg2],undefined,{kernel,[]},[application,application_controller,application_master,application_starter,auth,code,code_aux,packages,code_server,dist_util,erl_boot_server,erl_distribution,erl_prim_loader,erl_reply,erlang,error_handler,error_logger,file,file_server,file_io_server,prim_file,global,global_group,global_search,group,heart,hipe_unified_loader,inet6_tcp,inet6_tcp_dist,inet6_udp,inet_config,inet_hosts,inet_gethost_native,inet_tcp_dist,init,kernel,kernel_config,net,net_adm,net_kernel,os,ram_file,rpc,user,user_drv,user_sup,disk_log,disk_log_1,disk_log_server,disk_log_sup,dist_ac,erl_ddll,erl_epmd,erts_debug,gen_tcp,gen_udp,gen_sctp,prim_inet,inet,inet_db,inet_dns,inet_parse,inet_res,inet_tcp,inet_udp,inet_sctp,pg2,seq_trace,wrap_log_reader,zlib,otp_ring0],[],infinity,infinity},normal]}},{ancestors,[&lt;0.6.0&gt;]},{messages,[{&#039;EXIT&#039;,&lt;0.8.0&gt;,normal}]},{links,[&lt;0.6.0&gt;,&lt;0.5.0&gt;]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,23},{reductions,127}],[]]}<br />{error_logger,{{2009,11,11},{17,17,5}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}<br />{&quot;Kernel pid terminated&quot;,application_controller,&quot;{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}&quot;} <p>Crash dump was written to: /var/log/ejabberd/erl_crash.dump<br />Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})</p></code></div> Wed, 11 Nov 2009 16:18:26 +0000 sylwester comment 54871 at https://www.ejabberd.im Still no solution https://www.ejabberd.im/node/3728#comment-54870 <p>Hmm, the Problem still exists. Any more suggestions?</p> Wed, 11 Nov 2009 16:14:32 +0000 sylwester comment 54870 at https://www.ejabberd.im The most simple solution is https://www.ejabberd.im/node/3728#comment-54829 <p>The most simple solution is to remove the spool files; when ejabberd starts, it will create them, empty. Of course, the problem in this case is that you loose all user accounts. You can them attempt to copy the files of tables you consider important (passwd.*, roster.*, ...). Maybe Mnesia accepts those old files and works correctly.</p> <p>Another idea: maybe the problem is only with the vcard files? In that case, you can try to remove the files files vcard* and restart ejabberd. Of course you lose Vcard information, but that's preferable than not having any info.</p> <p>Once solved, remember to write a script to make daily, or at least weekly backups to another machine.</p> Wed, 04 Nov 2009 10:21:40 +0000 mfoss comment 54829 at https://www.ejabberd.im Not fixed yet. https://www.ejabberd.im/node/3728#comment-54817 <p>Hello,</p> <p>Touching the /tmp/mnesia_vcore_elem.TMP did not fix the problem.</p> Sat, 31 Oct 2009 11:19:56 +0000 sylwester comment 54817 at https://www.ejabberd.im