[erlang-questions] net_kernel:nodes_info() error

Michael McDaniel erlangy@REDACTED
Wed Feb 20 18:22:43 CET 2008


On Wed, Feb 20, 2008 at 04:03:03PM +0100, Gleber wrote:
> Hello,
> 
> While figuring out how to make Distel work with long domain names, I've
> encountered the following error:
> 
> gleber@REDACTED:~$ erl
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

 I have same Ubuntu 7.10 w/Erlang R12B ; need to start erl with a name

$ erl -sname fu
Erlang (BEAM) emulator version 5.6 [async-threads:0] [hipe] [kernel-poll:false]

=> reading /home/mmcdanie/.erlang
=> ** Found 0 name clashes in code paths
Eshell V5.6  (abort with ^G)
(fu@REDACTED)1> net_kernel:nodes_info().
{ok,[]}
(fu@REDACTED)2> 


I get same error if starting erl without name; I think because starting with
no name means there is no node name.

See net_kernel docs ...

"
 An Erlang node is started using the command line flag -name or -sname:

$ erl -sname foobar
"



> Erlang (BEAM) emulator version 5.6.1 [source] [async-threads:0] [hipe]
> [kernel-poll:false]
> 
> Eshell V5.6.1  (abort with ^G)
> 1> net_kernel:nodes_info().
> ** exception error: bad argument
>      in function  ets:first/1
>         called as ets:first(sys_dist)
>      in call from net_kernel:get_nodes/1
>      in call from net_kernel:get_nodes_info/0
> 2> ets:i().
> id              name              type  size   mem      owner
> ----------------------------------------------------------------------------
> 11              code              set   259    10768    code_server
> 12              code_names        set   52     5065     code_server
> 13              shell_records     ordered_set 0      72       <0.24.0>
> ac_tab          ac_tab            set   6      855      application_controller
> file_io_servers file_io_servers   set   0      279      file_server_2
> global_locks    global_locks      set   0      279      global_name_server
> global_names    global_names      set   0      279      global_name_server
> global_names_ext global_names_ext  set   0      279      global_name_server
> global_pid_ids  global_pid_ids    bag   0      279      global_name_server
> global_pid_names global_pid_names  bag   0      279      global_name_server
> inet_cache      inet_cache        bag   0      279      inet_db
> inet_db         inet_db           set   21     546      inet_db
> inet_hosts      inet_hosts        set   0      279      inet_db
> ok
> 3>
> 
> My system is Ubuntu Gutsy 7.10 with Erlang 12B built from debian experimental
> deb-src files.
> 
> Do anyone know what this means? Is it a bug?
> 
> 
> 
> --
> Gleb Peregud
> http://gleber.pl/
> 
> "Only two things are infinite, the universe and human stupidity, and I'm not
> sure about the former."
> --  Albert Einstein

> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions

-- 
Michael McDaniel
Portland, Oregon, USA
http://autosys.us
+1 503 283 5284



More information about the erlang-questions mailing list