ejabberd - Comments for "ejabberd won&amp;#039;t start" https://www.ejabberd.im/node/872 en I am getting below error: In https://www.ejabberd.im/node/872#comment-66994 <p>I am getting below error: </p> <p>In error.log file<br /> =============================<br /> 2016-08-16 00:30:57.282 [error] &lt;0.5717.541&gt; ** Connection attempt from disallowed node 'ctl-ejabberd@localhost' **</p> <p>2016-08-16 07:15:33.364 [error] &lt;0.30842.540&gt; ** Connection attempt from disallowed node 'ctl-ejabberd@localhost' **</p> <p>=============================<br /> erl_crash_20160816-071531.dump<br /> =============================<br /> =erl_crash_dump:0.3<br /> Tue Aug 16 07:15:31 2016<br /> Slogan: Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{k<br /> System version: Erlang R16B03 (erts-5.10.4) [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:true]<br /> Compiled: Thu Dec 12 09:26:51 2013<br /> Taints:<br /> Atoms: 5030<br /> =memory<br /> total: 8752552<br /> processes: 3382224<br /> processes_used: 3370312<br /> system: 5370328<br /> atom: 132249<br /> atom_used: 117079<br /> binary: 18016<br /> code: 2843323</p> <p>User end error:<br /> =============================<br /> 08-16 12:21:39.488: W/System.err(5402): Connection failed. No response from server.:<br /> =============================</p> <p>Please advise asap any user not able to connect the server.</p> Tue, 16 Aug 2016 09:02:22 +0000 Ramesh Chand comment 66994 at https://www.ejabberd.im That solved the problem I was https://www.ejabberd.im/node/872#comment-57640 <p>That solved the problem I was having. During a distribution upgrade the home directory for the user ejabberd runs as was removed (its location was somewhat of a legacy). So I recreated it in a more conventional location. By the way, you chan change the ownership of that file by running 'chown user.group .erlang.cookie' as root, where user is the username and group is the group you want it to belong to.</p> Sun, 24 Jul 2011 12:21:00 +0000 jeza comment 57640 at https://www.ejabberd.im The problem was the hostname https://www.ejabberd.im/node/872#comment-52250 <p>In my case, the problema was that I had only a short hostname in /etc/hostname, I changed it from "myhost" to "myhost.mydomain.tld", restarted hostname service and then everything works great.</p> Wed, 23 Apr 2008 14:04:03 +0000 Pablo Manuel Rizzo comment 52250 at https://www.ejabberd.im You can remove the file https://www.ejabberd.im/node/872#comment-51871 <p>The file .erlang.cookie is generated in $HOME of the user that executes erl, when erl is started, and only if that file does not exist. So, you can remove that file because it will be generated again (with different content of course). Or change its permissions and owner.</p> <p>The only really important is that all the erlang nodes in your cluster have the same cookie.</p> Mon, 25 Feb 2008 00:11:11 +0000 mfoss comment 51871 at https://www.ejabberd.im work around for erlang crash when doing "erl -sname foo" https://www.ejabberd.im/node/872#comment-51842 <p>At 2AM I woke up with an idea on how to resolve Ubuntu Fiesty not being able to run "erl -sname foo" without crashing erlang. The problem was that:</p> <p>The file ~/.erlang.cookie was read only by root and was owned by root.</p> <p>that is,</p> <p> --w------- 1 root root 21 2008-02-21 03:19 .erlang.cookie</p> <p>The solution is to do:</p> <p>sudo erl -sname foo</p> <p>Always having to do a sudo and then type in the password whenever I want to use -sname or -name seems a little much.</p> <p>Is this as it should be? Anybody else out there experiencing this?</p> <p>Anyhow, now I can start up two nodes and ping between them.</p> <p>More mountains to climb.</p> <p>:-)</p> Thu, 21 Feb 2008 12:22:30 +0000 efittery comment 51842 at https://www.ejabberd.im didn't solve "erl -sname" crash problem (Ubuntu specific?) https://www.ejabberd.im/node/872#comment-51815 <p>I was premature.</p> <p>executing </p> <p>epmd -port 4369</p> <p>Solved my crash problem, but only on my Windows XP running cygwin.</p> <p>Even after running "epmd -port 4369" I am still having the same problems with "erl -sname foo" causing a crash on my Ubuntu machine.</p> Sun, 17 Feb 2008 05:59:24 +0000 efittery comment 51815 at https://www.ejabberd.im solved "erl -sname" crash problem https://www.ejabberd.im/node/872#comment-51803 <p>seems that I had to execute:</p> <p>epmd -port 4369</p> <p>One little problem down - now on to climbing the big Erlang mountain.</p> Wed, 13 Feb 2008 23:25:36 +0000 efittery comment 51803 at https://www.ejabberd.im erl -sname foo - causes crash https://www.ejabberd.im/node/872#comment-51802 <p>I have installed erlang on my ubuntu fiesty.</p> <p>When I type:</p> <p>erl -sname foo</p> <p>I think I see the same problem as reported by Chrissss on Wed, 2006-06-07 13:49.</p> <p>I thought this thread would solve my problems but I have tried all of the suggestions no avail.</p> <p>I am trying to duplicate the instructions found on page 171 of Programming Erlang by Joe Armstrong.</p> <p>Client on one node, server on second node but same host</p> <p>I quote from the book:</p> <p>Now we'll start two Erlang nodes on the same computer. </p> <p>To do this, we need to open two terminal windows and start two Erlang systems.</p> <p>----- I did this and it works --------</p> <p>First, fire up a terminal shell </p> <p>----- did this and it works ---------</p> <p>and start a distributed Erlang node in this shell called gandalf: then start the server:</p> <p>$ erl -sname gandalf</p> <p>------- my comments: ---------------<br /> I did this, but instead of getting what I should, I.e., (gandalf@localhost) &gt;1</p> <p>I get the lots of output and the file ear_crash.dump is producced.</p> <p>Comment: I expected that I could install erlang and run the examples found in Programming Erlang without doing anything else.</p> <p>What step am I missing? Is my system blocking something? Do I need to register something? I feel I have a termendous amount of erlang information to learn and it is frusturating to spend days on figuring out why:</p> <p>erl -f foo</p> <p>doesn't work.</p> <p>By the way, I can enter the following on the command line:</p> <p>erl</p> <p>and it is working ok.</p> <p>Does anybody know of a FAQ that would help me?</p> Wed, 13 Feb 2008 19:57:14 +0000 efittery comment 51802 at https://www.ejabberd.im Gosh, i found the problem. https://www.ejabberd.im/node/872#comment-1845 <p>Gosh, i found the problem. I'm running a ocaml application (mlnet) on the same machine. </p> <p>When mlnet is on:</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p># netstat -atnp |grep 4369<br /> tcp 0 0 0.0.0.0:4369 0.0.0.0:* LISTEN 24217/mlnet</p></div> <p>When erl is running</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p># netstat -atnp |grep 4369<br /> tcp 0 0 0.0.0.0:4369 0.0.0.0:* LISTEN 23827/epmd</p></div> <p>Looks like both applications use the same port. When i turn of mlnet, ejabberd starts without problems. Is there a way to choose a different port for epmd?</p> <p>Thanks<br /> Christoph</p> Wed, 07 Jun 2006 13:49:50 +0000 Chrissss comment 1845 at https://www.ejabberd.im Please, run https://www.ejabberd.im/node/872#comment-1843 <p>Please, run</p> <pre>erl -sname somestrangename</pre><p>then don't stop it and give the output of:</p> <pre>netstat -atnp |grep 4369</pre><p>and</p> <pre>ps aux | egrep '(epmd|beam)'</pre> Wed, 07 Jun 2006 06:24:14 +0000 teo comment 1843 at https://www.ejabberd.im Re: Do you have firewall enabled https://www.ejabberd.im/node/872#comment-1841 <p>Nope, my firewall permits connections to localhost. Everything is open on lo:</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p># ping localhost<br /> PING localhost (127.0.0.1) 56(84) bytes of data.<br /> 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.148 ms<br /> 64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.100 ms</p></div> <p>Not sure how to check if there is a second erlang vm, there is no task with "erl" running on my debian box</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p># ps aux | grep erl<br /> root 3030 0.0 0.0 1672 404 ? S May15 0:00 /usr/sbin/courierlogger -pid=/var/run/courier/authdaemon/pid -start /usr/lib/courier/authlib/authdaemond.mysql<br /> root 3413 0.0 0.1 3212 748 pts/0 R+ 22:45 0:00 grep erl</p></div> <p>Thanks for your help.</p> <p>CU<br /> Christoph</p> Tue, 06 Jun 2006 20:49:45 +0000 Chrissss comment 1841 at https://www.ejabberd.im You have already a running node with this name https://www.ejabberd.im/node/872#comment-1838 <p>When doing:<br /> erl -name qqq</p> <p>you get a duplicate name error, which means that an Erlang VM is already running with this node name.</p> <p>--<br /> Mickaël Rémond<br /> <noindex><a href="http://www.process-one.net/" rel="nofollow" >Process-one</a></noindex></p> Tue, 06 Jun 2006 12:43:28 +0000 mremond comment 1838 at https://www.ejabberd.im Do you have firewall enabled https://www.ejabberd.im/node/872#comment-1836 <p>Do you have firewall enabled at localhost? If so, you have to disable it and allow local connections.</p> Tue, 06 Jun 2006 11:51:37 +0000 teo comment 1836 at https://www.ejabberd.im Ok, here are the results. https://www.ejabberd.im/node/872#comment-1835 <p>Ok, here are the results. Looks like a problem with erlang and not with ejabberd. BTW, using ejabberd 1.1.1 and Erlang 5.4.13 here. Sorry for the long lines, i tried to avoid even longer ones by inserting some line breaks.</p> <p>This works:</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p># erl<br /> Erlang (BEAM) emulator version 5.4.13 [source] [threads:0] [kernel-poll]</p> <p>Eshell V5.4.13 (abort with ^G)<br /> 1&gt;<br /> BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded<br /> (v)ersion (k)ill (D)b-tables (d)istribution</p></div> <p>This fails:</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p># erl -sname qqq<br /> {error_logger,{{2006,6,6},{12,24,17}},'Protocol: ~p: register error: ~p~n',[inet_tcp,{{badmatch,{error,no_reg_reply_from_epmd}},<br /> [{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},<br /> {gen_server,init_it,6},{proc_lib,init_p,5}]}]}</p> <p>{error_logger,{{2006,6,6},{12,24,17}},crash_report,[[{pid,&lt;0.19.0&gt;},{registered_name,net_kernel},{error_info,{error,badarg}},<br /> {initial_call,{gen,init_it,[gen_server,&lt;0.16.0&gt;,&lt;0.16.0&gt;,{local,net_kernel},net_kernel,{qqq,shortnames,15000},[]]}},<br /> {ancestors,[net_sup,kernel_sup,&lt;0.8.0&gt;]},{messages,[]},{links,[#Port&lt;0.11&gt;,&lt;0.16.0&gt;]},{dictionary,[{longnames,false}]},<br /> {trap_exit,true},{status,running},{heap_size,610},{stack_size,21},{reductions,373}],[]]}</p> <p>{error_logger,{{2006,6,6},{12,24,17}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},<br /> {reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[[qqq,shortnames]]}},<br /> {restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}</p> <p>{error_logger,{{2006,6,6},{12,24,17}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},<br /> {reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfa,{erl_distribution,start_link,[]}},{restart_type,permanent},<br /> {shutdown,infinity},{child_type,supervisor}]}]}</p> <p>{error_logger,{{2006,6,6},{12,24,17}},crash_report,[[{pid,&lt;0.7.0&gt;},{registered_name,[]},{error_info,{shutdown,{kernel,start,[normal,[]]}}},<br /> {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,<br /> code_server,disk_log_server,disk_log_sup,erl_prim_loader,error_logger,file_server,file_server_2,fixtable_server,global_group,<br /> global_name_server,heart,init,kernel_config,kernel_sup,net_kernel,net_sup,rex,user,os_server,ddll_server,erl_epmd,inet_db,pg2],<br /> undefined,{kernel,[]},[application,application_controller,application_master,application_starter,auth,code,code_aux,packages,<br /> code_server,dist_util,erl_boot_server,erl_distribution,erl_prim_loader,erl_reply,erlang,error_handler,error_logger,file,file_server,<br /> old_file_server,file_io_server,prim_file,global,global_group,global_search,group,heart,inet6_tcp,inet6_tcp_dist,inet6_udp,<br /> inet_config,inet_hosts,inet_gethost_native,inet_tcp_dist,init,kernel,kernel_config,net,net_adm,net_kernel,os,ram_file,rpc,<br /> 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,<br /> prim_inet,inet,inet_db,inet_dns,inet_parse,inet_res,inet_tcp,inet_udp,pg2,seq_trace,wrap_log_reader,zlib,otp_ring0],[],infinity,infinity},<br /> normal]}},{ancestors,[&lt;0.6.0&gt;]},{messages,[{'EXIT',&lt;0.8.0&gt;,normal}]},{links,[&lt;0.6.0&gt;,&lt;0.5.0&gt;]},{dictionary,[]},{trap_exit,true},<br /> {status,running},{heap_size,987},{stack_size,21},{reductions,1062}],[]]}</p> <p>{error_logger,{{2006,6,6},{12,24,17}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}<br /> {"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}</p> <p>Crash dump was written to: erl_crash.dump<br /> Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})</p></div> <p>And this also:</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>erl -name qqq<br /> {error_logger,{{2006,6,6},{12,24,50}},'Protocol: ~p: register error: ~p~n',[inet_tcp,{{badmatch,{error,duplicate_name}},<br /> [{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},<br /> {gen_server,init_it,6},{proc_lib,init_p,5}]}]}</p> <p>{error_logger,{{2006,6,6},{12,24,50}},crash_report,[[{pid,&lt;0.19.0&gt;},{registered_name,net_kernel},{error_info,{error,badarg}},<br /> {initial_call,{gen,init_it,[gen_server,&lt;0.16.0&gt;,&lt;0.16.0&gt;,{local,net_kernel},net_kernel,{qqq,longnames,15000},[]]}},<br /> {ancestors,[net_sup,kernel_sup,&lt;0.8.0&gt;]},{messages,[]},{links,[#Port&lt;0.7&gt;,&lt;0.16.0&gt;]},{dictionary,[{longnames,true}]},{trap_exit,true},<br /> {status,running},{heap_size,377},{stack_size,21},{reductions,386}],[]]}</p> <p>{error_logger,{{2006,6,6},{12,24,50}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},<br /> {reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[[qqq,longnames]]}},<br /> {restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}</p> <p>{error_logger,{{2006,6,6},{12,24,50}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},<br /> {offender,[{pid,undefined},{name,net_sup},{mfa,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},<br /> {child_type,supervisor}]}]}</p> <p>{error_logger,{{2006,6,6},{12,24,50}},crash_report,[[{pid,&lt;0.7.0&gt;},{registered_name,[]},{error_info,{shutdown,{kernel,start,[normal,[]]}}},<br /> {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,<br /> code_server,disk_log_server,disk_log_sup,erl_prim_loader,error_logger,file_server,file_server_2,fixtable_server,global_group,<br /> global_name_server,heart,init,kernel_config,kernel_sup,net_kernel,net_sup,rex,user,os_server,ddll_server,erl_epmd,inet_db,pg2],<br /> undefined,{kernel,[]},[application,application_controller,application_master,application_starter,auth,code,code_aux,packages,code_server,<br /> dist_util,erl_boot_server,erl_distribution,erl_prim_loader,erl_reply,erlang,error_handler,error_logger,file,file_server,old_file_server,<br /> file_io_server,prim_file,global,global_group,global_search,group,heart,inet6_tcp,inet6_tcp_dist,inet6_udp,inet_config,inet_hosts,<br /> 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,<br /> disk_log_1,disk_log_server,disk_log_sup,dist_ac,erl_ddll,erl_epmd,erts_debug,gen_tcp,gen_udp,prim_inet,inet,inet_db,inet_dns,<br /> inet_parse,inet_res,inet_tcp,inet_udp,pg2,seq_trace,wrap_log_reader,zlib,otp_ring0],[],infinity,infinity},normal]}},{ancestors,<br /> [&lt;0.6.0&gt;]},{messages,[{'EXIT',&lt;0.8.0&gt;,normal}]},{links,[&lt;0.6.0&gt;,&lt;0.5.0&gt;]},{dictionary,[]},{trap_exit,true},{status,running},<br /> {heap_size,987},{stack_size,21},{reductions,1062}],[]]}</p> <p>{error_logger,{{2006,6,6},{12,24,50}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}<br /> {"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}</p> <p>Crash dump was written to: erl_crash.dump<br /> Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})</p></div> <p>Thanks<br /> Christoph</p> Tue, 06 Jun 2006 10:40:43 +0000 Chrissss comment 1835 at https://www.ejabberd.im Try to run: https://www.ejabberd.im/node/872#comment-1834 <p>Try to run:</p> <pre>erl</pre><pre>erl -sname qqq</pre><pre>erl -name qqq</pre><p>And tell if there will be some errors and crashes.</p> <p>Please, report also versions of erlang related packages and ejabberd.</p> Tue, 06 Jun 2006 08:03:32 +0000 teo comment 1834 at https://www.ejabberd.im