I'm trying to start Scalaris, but I keep getting dropped into the
erlang shell with various warnings printed, I'm not sure why.
Admittedly I'm just starting out.
Eshell V5.7.4 (abort with ^G)
(firstn...@ip-10-169-31-98.us-west-1.compute.internal)1> [warn] "to >
127.0.0.1:14194" Connection failed, drop message {connect}
[warn] "to > 127.0.0.1:14194" Connection failed, drop message
{send_to_group_member,service_per_vm,{hi}}
[warn] "to > 127.0.0.1:14194" Connection failed, drop message
{register,{{127,0,0,1},14195,<0.117.0>}}
root@ip-10-169-31-98:~/scalaris-0.3.0/bin# cat scalaris.local.cfg
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Settings for distributed Erlang
% (see scalaris.hrl to switch)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Settings for TCP mode.
% (see scalaris.hrl to switch)
%% userdevguide-begin local_cfg:distributed
% Insert the appropriate IP-addresses for your setup
% as comma separated integers:
% IP Address, Port, and label of the boot server
{mgmt_server, {{127,0,0,1}, 14194, mgmt_server}}.
% IP Address, Port, and label of a node which is already in the system
{known_hosts, [{{127,0,0,1}, 14195, service_per_vm}]}.
%% userdevguide-end local_cfg:distributed
this is the expected behaviour. You are starting scalaris in the foreground, i.e. not in daemon mode. The result is a running scalaris and you will get the normal erlang shell e.g. for debugging. You can now point your browser to localhost:8000 to see the web gui.
Or you can directly query scalaris using the erlang shell:
On Monday, October 24, 2011, Steve Ramage wrote: > I'm trying to start Scalaris, but I keep getting dropped into the > erlang shell with various warnings printed, I'm not sure why. > Admittedly I'm just starting out.
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > % Settings for TCP mode. > % (see scalaris.hrl to switch)
> %% userdevguide-begin local_cfg:distributed > % Insert the appropriate IP-addresses for your setup > % as comma separated integers: > % IP Address, Port, and label of the boot server > {mgmt_server, {{127,0,0,1}, 14194, mgmt_server}}.
> % IP Address, Port, and label of a node which is already in the system > {known_hosts, [{{127,0,0,1}, 14195, service_per_vm}]}. > %% userdevguide-end local_cfg:distributed
as an additional note: your scalaris.local.cfg points to the wrong port for the management server you have started. Your node therefore did not register with the management server but should be operational anyway. The warnings only indicate this. You should be able to use the shell, e.g. type [enter] and you'll see the ordinary erlang prompt. Please also note that the management server's only purpose is to be able to monitor the whole ring, it is not mandatory for a working Scalaris ring.
Nico
On Tuesday 25 October 2011 09:53:17 Thorsten Schuett wrote:
> this is the expected behaviour. You are starting scalaris in the foreground, > i.e. not in daemon mode. The result is a running scalaris and you will get > the normal erlang shell e.g. for debugging. You can now point your browser > to localhost:8000 to see the web gui.
> Or you can directly query scalaris using the erlang shell:
> On Monday, October 24, 2011, Steve Ramage wrote: > > I'm trying to start Scalaris, but I keep getting dropped into the > > erlang shell with various warnings printed, I'm not sure why. > > Admittedly I'm just starting out.
> > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > % Settings for TCP mode. > > % (see scalaris.hrl to switch)
> > %% userdevguide-begin local_cfg:distributed > > % Insert the appropriate IP-addresses for your setup > > % as comma separated integers: > > % IP Address, Port, and label of the boot server > > {mgmt_server, {{127,0,0,1}, 14194, mgmt_server}}.
> > % IP Address, Port, and label of a node which is already in the system > > {known_hosts, [{{127,0,0,1}, 14195, service_per_vm}]}. > > %% userdevguide-end local_cfg:distributed