[erlang-questions] net_kernel:nodes_info() error

Gleber <>
Thu Feb 21 09:14:51 CET 2008


Thanks a lot. I should have checked docs... :)

P.S. Nicolas, sorry for the off-list reply.

On Wed, Feb 20, 2008 at 4:23 PM, Niclas Eklund <> wrote:
>
>  Hello!
>
>  Try:
>
>   shell> erl -sname hello
>
>   erl> net_kernel:nodes_info().
>  {ok,[]}
>
>
>  /Nick
>
>
>
>
>
>  On Wed, 20 Feb 2008, Gleber wrote:
>
>  > Hello,
>  >
>  > While figuring out how to make Distel work with long domain names, I've
>  > encountered the following error:
>  >
>  > :~$ erl
>  > 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
>  >
>
>
>



-- 
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



More information about the erlang-questions mailing list