Error when using -sname option

Serge Aleynikov serge@REDACTED
Thu Apr 8 15:30:16 CEST 2004


Simeon,

I ran into exactly the same problem with Windows XP on one of my 
computers. 
http://www.erlang.org/ml-archive/erlang-questions/200308/msg00076.html
So far I haven't figured out the solution to the problem, as distributed 
Erlang starts fine on other Windows XP machines, and there doesn't seem 
to be a port conflict according to netstat.

Perhaps someone else can shed some light on where else to check?

Serge


Simeon Verzijl wrote:

> Hi,
> 
>  
> 
> Bit of a beginner on using Erlang.
> 
>  
> 
> I was following a tutorial and it said to run Erlang like follows:
> 
>             erl.exe –sname ping
> 
>  
> 
> It fails miserably. I was wondering if it has got something to do with 
> my OS (Windows XP) or something to do with how Erlang is set up? And of 
> course, how do I fix it?
> 
>  
> 
> The error was:
> 
> C:\PROGRA~1\erl5.3>bin\erl.exe ­ -sname ping
> {error_logger,{{2004,4,8},{13,5,52­ }},'Protocol: ~p: register/listen 
> error: ~p~n'
> ,[inet_tcp,enotsock]}
> {error_logger,{{2004,4,8},{13,5,52­ }},crash_report,[[{pid,<0.18.0>­ 
> },{registered_n
> ame,net_kernel},{error_info,{error­ ,badarg}},{initial_call,{gen,init_­ 
> it,[gen_serv
> er,<0.15.0>,<0.15.0>,{­ local,net_kernel},net_kernel,{ping­ 
> ,shortnames,15000},[]]}}
> ,{ancestors,[net_sup,kernel_sup,<­ 0.8.0>]},{messages,[]},{links,[<­ 
> 0.15.0>]},{dict
> ionary,[{longnames,false}]},{trap_­ exit,true},{status,running},{heap_­ 
> size,377},{s
> tack_size,21},{reductions,275}],[]­ ]}
> {error_logger,{{2004,4,8},{13,5,52­ }},supervisor_report,[{supervisor,­ 
> {local,net_s
> up}},{errorContext,start_error},{r­ eason,{'EXIT',nodistribution}},{of­ 
> fender,[{pid
> ,undefined},{name,net_kernel},{mfa­ ,{net_kernel,start_link,[[ping,sho­ 
> rtnames]]}},
> {restart_type,permanent},{shutdown­ ,2000},{child_type,worker}]}]}
> {error_logger,{{2004,4,8},{13,5,52­ }},supervisor_report,[{supervisor,­ 
> {local,kerne
> l_sup}},{errorContext,start_error}­ ,{reason,shutdown},{offender,[{pid­ 
> ,undefined},
> {name,net_sup},{mfa,{erl_distribut­ ion,start_link,[]}},{restart_type,­ 
> permanent},{
> shutdown,infinity},{child_type,sup­ ervisor}]}]}
> {error_logger,{{2004,4,8},{13,5,52­ }},crash_report,[[{pid,<0.7.0>­ 
> },{registered_na
> me,[]},{error_info,{shutdown,{kern­ el,start,[normal,[]]}}},{initial_c­ 
> all,{applica
> tion_master,init,[<0.5.0>,<­ 0.6.0>,{appl_data,kernel,[appli­ 
> cation_controller,erl_
> reply,auth,boot_server,code_server­ ,disk_log_server,disk_log_sup,erl_­ 
> prim_loader,
> error_logger,file_server,file_serv­ er_2,fixtable_server,global_group,­ 
> global_name_
> server,heart,init,kernel_config,ke­ rnel_sup,net_kernel,net_sup,rex,us­ 
> er,os_server
> ,ddll_server,erl_epmd,inet_db,pg2]­ ,undefined,{kernel,[]},[applicatio­ 
> n,applicatio
> n_controller,application_master,ap­ plication_starter,auth,code,code_a­ 
> ux,packages,
> code_server,dist_util,erl_boot_ser­ ver,erl_distribution,erl_prim_load­ 
> er,erl_reply
> ,erlang,error_handler,error_logger­ ,file,file_server,old_file_server,­ 
> file_io_serv
> er,prim_file,global,global_group,g­ lobal_search,group,heart,inet6_tcp­ 
> ,inet6_tcp_d
> ist,inet6_udp,inet_config,inet_hos­ ts,inet_gethost_native,inet_tcp_di­ 
> st,init,kern
> el,kernel_config,net,net_adm,net_k­ ernel,os,ram_file,rpc,user,user_dr­ 
> v,user_sup,d
> isk_log,disk_log_1,disk_log_server­ ,disk_log_sup,dist_ac,erl_ddll,erl­ 
> _epmd,erts_d
> ebug,gen_tcp,gen_udp,prim_inet,ine­ t,inet_db,inet_dns,inet_parse,inet­ 
> _res,inet_tc
> p,inet_udp,pg2,seq_trace,socks5,so­ cks5_auth,socks5_tcp,socks5_udp,wr­ 
> ap_log_reade
> r,zlib,otp_ring0],[],infinity,infi­ nity},normal]}},{ancestors,[<0.­ 
> 6.0>]},{message
> s,[{'EXIT',<0.8.0>,normal}]}­ ,{links,[<0.6.0>,<0.5.0>­ 
> ]},{dictionary,[]},{trap_exi
> t,true},{status,running},{heap_siz­ e,610},{stack_size,21},{reductions­ 
> ,1080}],[]]}
> 
> {error_logger,{{2004,4,8},{13,5,52­ }},std_info,[{application,kernel},­ 
> {exited,{shu
> tdown,{kernel,start,[normal,[]]}}}­ ,{type,permanent}]}
> {"Kernel pid terminated",application_controller­ ,shutdown}
> 
> Crash dump was written to: erl_crash.dump
> Kernel pid terminated (application_controller) (shutdown)
> 
>  
> 
> Thanks,
> 
>             Simeon Verzijl
> 




More information about the erlang-questions mailing list