[rabbitmq-discuss] Overriding node long name

Matthew Sackman matthew at lshift.net
Mon Oct 5 17:13:17 BST 2009


Hi Sammy,

If you edit the rabbitmq-server script and change the -sname to -name,
then yes, you can set RABBITMQ_NODENAME to be foo at ip-address and that'll
work fine. Note that you'll also probably need to edit the other scripts
similarly to make them continue to work (rabbitmqctl, rabbitmq-multi
etc) - an sname node can't connect to a long name node (and vice versa).

Matthew

On Thu, Oct 01, 2009 at 03:52:40PM -0700, Sammy Yu wrote:
> Hi,
>    I would like to use -name (long name) option so that I can set
> something along the lines of rabbit@<ip address> rather than
> rabbit@<hostname>.  Is it possible to do this?  I think I read
> somewhere this is not possible because of some erlang limitation, when
> I try it I get this error:
> {error_logger,{{2009,10,1},{15,50,38}},"Protocol: ~p: register error:
> ~p~n",["inet_tcp",{{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_do_apply,3}]}]}
> {error_logger,{{2009,10,1},{15,50,38}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.22.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[net_sup,kernel_sup,<0.9.0>]},{messages,[]},{links,[#Port<0.90>,<0.19.0>]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,24},{reductions,505}],[]]}
> {error_logger,{{2009,10,1},{15,50,38}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[[rabbit,shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
> {error_logger,{{2009,10,1},{15,50,38}},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}]}]}
> {error_logger,{{2009,10,1},{15,50,38}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
> {"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}
> 
> Thanks,
> Sammy
> 
> Thanks,
> Sammy
> 
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss




More information about the rabbitmq-discuss mailing list