<html><head><base href="x-msg://171/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi,</div><div><br></div><div>On 10 Jul 2012, at 09:44, �α� wrote:</div><div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-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; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 10pt; font-family: ΢���ź�; "><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 type="cite"><span class="Apple-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; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 10pt; font-family: ΢���ź�; "><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 type="cite"><span class="Apple-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; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 10pt; font-family: ΢���ź�; "><div dir="ltr"><br>He Bin<br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Mon, 9 Jul 2012 13:16:18 +0100<br>From:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:tim@rabbitmq.com">tim@rabbitmq.com</a><br>To:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>CC:<span class="Apple-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></body></html>