Hi Ivan,
You'll want to use {vm_sname, "cwy"} to use the short name, and {vm_name,
"cwy@whatever"} for the log name. This is comparable to the erl launch
switches -name for longnames and -sname for shortnames.
-Jesse
On Tue, Mar 25, 2014 at 3:55 PM, Iván Martínez
<[email protected]>wrote:
> Hello everybody,
> I'm having the following issue when trying to start our ChicagoBoss
> application:
>
> ivan@ivan-dv6-laptop ~/Documents/cwy/code/cwy-front $ ./init-dev.sh
> {error_logger,{{2014,3,25},{21,43,15}},"Can't set long node name!\nPlease
> check your configuration\n",[]}
>
> {error_logger,{{2014,3,25},{21,43,15}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.21.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,239}]}]}},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,[]},{links,[<0.18.0>]},{dictionary,[{longnames,true}]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,27},{reductions,509}],[]]}
>
> {error_logger,{{2014,3,25},{21,43,15}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[[cwy,longnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
>
> {error_logger,{{2014,3,25},{21,43,15}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}},{offender,[{pid,undefined},{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}
>
> {error_logger,{{2014,3,25},{21,43,15}},crash_report,[[{initial_call,{application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}},{pid,<0.9.0>},{registered_name,[]},{error_info,{exit,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{kernel,start,[normal,[]]}},[{application_master,init,4,[{file,"application_master.erl"},{line,133}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}},{ancestors,[<0.8.0>]},{messages,[{'EXIT',<0.10.0>,normal}]},{links,[<0.8.0>,<0.7.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,376},{stack_size,27},{reductions,117}],[]]}
>
> {error_logger,{{2014,3,25},{21,43,16}},std_info,[{application,kernel},{exited,{{shutdown,{failed_to_start_child,net_sup,{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}}}},{kernel,start,[normal,[]]}}},{type,permanent}]}
> {"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}}}}},{kernel,start,[normal,[]]}}}"}
>
> Crash dump was written to: erl_crash.dump
> 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
>
> vm_name is set in boss.config as follows:
>
> {vm_name, "cwy"},
>
> I know I can fix the problem by using a long name:
>
> {vm_name, "cwy@localhost"},
>
> The issue is that the short name works in other computers but mine, and my
> colleagues would like to keep the short name. My questions are:
>
> - Is a short name valid as value for vm_name?.
> - Why does it work in some computers and it doesn't in others?.
>
> Thank you,
> Iván Martínez
>
> --
> You received this message because you are subscribed to the Google Groups
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at http://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/chicagoboss/eb01a1e2-bf13-4a8f-b2d3-b101efe10951%40googlegroups.com<https://groups.google.com/d/msgid/chicagoboss/eb01a1e2-bf13-4a8f-b2d3-b101efe10951%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 || sigma-star.com || @jessegumm
--
You received this message because you are subscribed to the Google Groups
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit
https://groups.google.com/d/msgid/chicagoboss/CAPTXyXd-xeirQ-g1Aw9AKTGHWMSDyJVvg4pg8UZqev%2BFiLBPVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.