[rabbitmq-discuss] Plz give me help about EPMD: Non-local peer connected
Tim Watson
tim at rabbitmq.com
Tue Jul 10 09:52:52 BST 2012
Hi,
On 10 Jul 2012, at 09:44, 何斌 wrote:
>
> It failed as following:
>
> [root at game-01 otp_src_R15B01]# erl -sname rabbit@`env hostname`
> {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}]}]}]}
> {error_logger,{{2012,7,10},{16,40,48}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.20.0>},{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,<0.9.0>]},{messages,[]},{links,[#Port<0.54>,<0.17.0>]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,24},{reductions,499}],[]]}
> {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 at game-01',shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
> {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}]}]}
> {error_logger,{{2012,7,10},{16,40,48}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
> {"Kernel pid terminated",applica tion_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}
>
> Crash dump was written to: erl_crash.dump
> Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})
>
My suspicion about this is that it relates to either
(a) having two host names in /etc/hosts
(b) multiple interfaces (are they bonded by any chance?)
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.
>
> BTW, epmd reported:
> epmd: Tue Jul 10 16:42:48 2012: Non-local peer connected
>
This is all to do with epmd not recognising the node id (rabbit at 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).
>
> He Bin
>
> Date: Mon, 9 Jul 2012 13:16:18 +0100
> From: tim at rabbitmq.com
> To: rabbitmq-discuss at lists.rabbitmq.com
> CC: hebin7611 at hotmail.com
> Subject: Re: [rabbitmq-discuss] Plz give me help about EPMD: Non-local peer connected
>
> On 07/09/2012 11:50 AM, 何斌 wrote:
> Hi Tim,
>
> `env hostname` returns game-01.
>
> So does erl -sname rabbit@`env hostname` work then!?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120710/0e428fcc/attachment.htm>
More information about the rabbitmq-discuss
mailing list