<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br>Hi Tim,<br><br>I tried remove host name, it was the same.<br><br># cat /etc/hosts<br># Do not remove the following line, or various programs<br># that require network functionality will fail.<br>127.0.0.1&nbsp;&nbsp;&nbsp; game-01 localhost.localdomain localhost<br>::1&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; localhost6.localdomain6 localhost6<br>10.20.1.1&nbsp;&nbsp;&nbsp; install.zs.woyo.com<br>10.20.10.202&nbsp;&nbsp;&nbsp; ldap1.woyo.com<br>10.20.10.211&nbsp;&nbsp;&nbsp; ldap2.woyo.com<br><br><br>Thanks a lot!<br><br><br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Subject: Re: [rabbitmq-discuss] Plz give me help about EPMD: Non-local peer connected<br>From: tim@rabbitmq.com<br>Date: Tue, 10 Jul 2012 09:52:52 +0100<br>CC: rabbitmq-discuss@lists.rabbitmq.com<br>To: hebin7611@hotmail.com<br><br><div>Hi,</div><div><br></div><div>On 10 Jul 2012, at 09:44, ºÎ±ó wrote:</div><div><br class="ecxApple-interchange-newline"><blockquote><span class="ecxApple-sty
 le-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:medium"><div class="ecxhmmessage" style="font-size:10pt;font-family:\005fae\008f6f\0096c5\009ed1"><div dir="ltr"><br>It failed as following:<br><br>[root@game-01 otp_src_R15B01]# erl -sname rabbit@`env hostname`<br>{error_logger,{{2012,7,10},{16,40,48}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,epmd_close}},[{inet_tcp_dist,listen,1,[{file,"inet_tcp_dist.erl"},{line,70}]},{net_kernel,start_protos,4,[{file,"net_kernel.erl"},{line,1314}]},{net_kernel,start_protos,3,[{file,"net_kernel.erl"},{line,1307}]},{net_kernel,init_node,2,[{file,"net_kernel.erl"},{line,1197}]},{net_kernel,init,1,[{file,"net_kernel.erl"},{line,357}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line
 ,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}]}<br>{error_logger,{{2012,7,10},{16,40,48}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,&lt;0.20.0&gt;},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,320}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}},{ancestors,[net_sup,ker nel_sup,&lt;0.9.0&gt;]},{messages,[]},{links,[#Port&lt;0.54&gt;,&lt;0.17.0&gt;]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,24},{reductions,499}],[]]}<br>{error_logger,{{2012,7,10},{16,40,48}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[['rabbit@game-01',shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}<br>{error_logger,{{2012,7,10},{16,40,48}},supervisor
 _report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}<br>{error_logger,{{2012,7,10},{16,40,48}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}<br>{"Kernel pid terminated",applica tion_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}<br><br>Crash dump was written to: erl_crash.dump<br>Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})<br><br></div></div></span></blockquote><div><br></div><div>My suspicion about this is that it relates to either</div><div><br></div><div>(a) having two host names in /etc/hosts</div><div>(b) multiple interfaces (are they bonded by any chance?)</div><div><br></div><div>I am going to try and replicate this
  behaviour on CentOS 6.2 this afternoon and once I've done that then I'll get back to you.&nbsp;</div><br><blockquote><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:medium"><div class="ecxhmmessage" style="font-size:10pt;font-family:\005fae\008f6f\0096c5\009ed1"><div dir="ltr"><br>BTW, epmd reported:<br>epmd: Tue Jul 10 16:42:48 2012: Non-local peer connected<br><br></div></div></span></blockquote><div><br></div><div>This is all to do with epmd not recognising the node id (rabbit@game-01) AFAICT. Have you tried removing the second host ID from your /etc/hosts configuration? I don't actually think that's going to work, but it's worth a try - don't forget to restart (or otherwise refresh your session properly to pick 
 up the changes).</div><br><blockquote><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:medium"><div class="ecxhmmessage" style="font-size:10pt;font-family:\005fae\008f6f\0096c5\009ed1"><div dir="ltr"><br>He Bin<br><br><div><div id="ecxSkyDrivePlaceholder"></div><hr id="ecxstopSpelling">Date: Mon, 9 Jul 2012 13:16:18 +0100<br>From:<span class="ecxApple-converted-space">&nbsp;</span><a href="mailto:tim@rabbitmq.com">tim@rabbitmq.com</a><br>To:<span class="ecxApple-converted-space">&nbsp;</span><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>CC:<span class="ecxApple-converted-space">&nbsp;</span><a href="mailto:hebin7611@hotmail.com">hebin7611@hotmail.com</a><br>Subject: Re
 : [rabbitmq-discuss] Plz give me help about EPMD: Non-local peer connected<br><br>On 07/09/2012 11:50 AM, ºÎ±ó wrote:<blockquote cite="mid:SNT115-W15D1447EFB7C95C63ED064A6D30@phx.gbl"><div dir="ltr">Hi Tim,<br><br>`env hostname` returns game-01.<br></div></blockquote><br>So does erl -sname rabbit@`env hostname` work then!?<br><br></div></div></div></span></blockquote></div><br></div>                                               </div></body>
</html>