could_not_reach_node on Mac OS X 10.5

Brian Hammond brian at brianhammond.com
Thu Oct 8 12:00:24 EDT 2009


Thanks.

This is the output.

There is no further output when I run ./riak_demo.escript config/riak- 
demo.erlenv.

The log/access* files are all empty.

I have little idea if there is a problem here but "nonode at nohost"  
looks fishy.


> $ ./debug-fresh.sh config/riak-demo.erlenv
> Erlang R13B02 (erts-5.7.3) [source] [smp:2:2] [rq:2] [async-threads: 
> 0] [kernel-poll:true]
>
> hello there
> Eshell V5.7.3  (abort with ^G)
> 1>
> =PROGRESS REPORT==== 8-Oct-2009::11:56:19 ===
>           supervisor: {local,sasl_safe_sup}
>              started: [{pid,<0.38.0>},
>                        {name,alarm_handler},
>                        {mfa,{alarm_handler,start_link,[]}},
>                        {restart_type,permanent},
>                        {shutdown,2000},
>                        {child_type,worker}]
>
> =PROGRESS REPORT==== 8-Oct-2009::11:56:19 ===
>           supervisor: {local,sasl_safe_sup}
>              started: [{pid,<0.39.0>},
>                        {name,overload},
>                        {mfa,{overload,start_link,[]}},
>                        {restart_type,permanent},
>                        {shutdown,2000},
>                        {child_type,worker}]
>
> =PROGRESS REPORT==== 8-Oct-2009::11:56:19 ===
>           supervisor: {local,sasl_sup}
>              started: [{pid,<0.37.0>},
>                        {name,sasl_safe_sup},
>                        {mfa,
>                            {supervisor,start_link,
>                                [{local,sasl_safe_sup},sasl,safe]}},
>                        {restart_type,permanent},
>                        {shutdown,infinity},
>                        {child_type,supervisor}]
>
> =PROGRESS REPORT==== 8-Oct-2009::11:56:19 ===
>           supervisor: {local,sasl_sup}
>              started: [{pid,<0.40.0>},
>                        {name,release_handler},
>                        {mfa,{release_handler,start_link,[]}},
>                        {restart_type,permanent},
>                        {shutdown,2000},
>                        {child_type,worker}]
>
> =PROGRESS REPORT==== 8-Oct-2009::11:56:19 ===
>          application: sasl
>           started_at: nonode at nohost
>
> =PROGRESS REPORT==== 8-Oct-2009::11:56:19 ===
>           supervisor: {local,crypto_sup}
>              started: [{pid,<0.46.0>},
>                        {name,crypto_server},
>                        {mfa,{crypto_server,start_link,[]}},
>                        {restart_type,permanent},
>                        {shutdown,2000},
>                        {child_type,worker}]
>
> =PROGRESS REPORT==== 8-Oct-2009::11:56:19 ===
>          application: crypto
>           started_at: nonode at nohost
> ** Found 0 name clashes in code paths
>
> =PROGRESS REPORT==== 8-Oct-2009::11:56:19 ===
>          application: webmachine
>           started_at: nonode at nohost
>
> =INFO REPORT==== 8-Oct-2009::11:56:19 ===
> set env variable cluster_name:"default"
>
> =INFO REPORT==== 8-Oct-2009::11:56:19 ===
> set env variable ring_state_dir:"priv/ringstate"
>
> =INFO REPORT==== 8-Oct-2009::11:56:19 ===
> set env variable ring_creation_size:16
>
> =INFO REPORT==== 8-Oct-2009::11:56:19 ===
> set env variable gossip_interval:60000
>
> =INFO REPORT==== 8-Oct-2009::11:56:19 ===
> set env variable doorbell_port:9000
>
> =INFO REPORT==== 8-Oct-2009::11:56:19 ===
> set env variable storage_backend:riak_ets_backend
>
> =INFO REPORT==== 8-Oct-2009::11:56:19 ===
> set env variable riak_cookie:riak_demo_cookie
>
> =INFO REPORT==== 8-Oct-2009::11:56:19 ===
> set env variable riak_heart_command:"(cd /Users/brian/OpenSource/ 
> database/riak; ./start-restart.sh /Users/brian/OpenSource/database/ 
> riak/config/riak-demo.erlenv)"
>
> =INFO REPORT==== 8-Oct-2009::11:56:19 ===
> set env variable riak_nodename:riakdemo
>
> =INFO REPORT==== 8-Oct-2009::11:56:19 ===
> set env variable riak_hostname:"127.0.0.1"
>
> =INFO REPORT==== 8-Oct-2009::11:56:19 ===
> set env variable riak_web_ip:"127.0.0.1"
>
> =INFO REPORT==== 8-Oct-2009::11:56:19 ===
> set env variable riak_web_port:8098
>
> =INFO REPORT==== 8-Oct-2009::11:56:19 ===
> set env variable jiak_name:"jiak"
>
> =INFO REPORT==== 8-Oct-2009::11:56:19 ===
> add_paths unset in "config/riak-demo.erlenv", setting to []
>
> =INFO REPORT==== 8-Oct-2009::11:56:19 ===
> start_apps unset in "config/riak-demo.erlenv", setting to []
>
> =PROGRESS REPORT==== 8-Oct-2009::11:56:19 ===
>           supervisor: {local,riak_sup}
>              started: [{pid,<0.56.0>},
>                        {name,riak_eventer},
>                        {mfa,{riak_eventer,start_link,[]}},
>                        {restart_type,permanent},
>                        {shutdown,5000},
>                        {child_type,worker}]
>
> =PROGRESS REPORT==== 8-Oct-2009::11:56:19 ===
>           supervisor: {local,riak_sup}
>              started: [{pid,<0.57.0>},
>                        {name,riak_vnode_master},
>                        {mfa,{riak_vnode_master,start_link,[]}},
>                        {restart_type,permanent},
>                        {shutdown,5000},
>                        {child_type,worker}]
>
> =PROGRESS REPORT==== 8-Oct-2009::11:56:19 ===
>           supervisor: {local,riak_sup}
>              started: [{pid,<0.58.0>},
>                        {name,riak_ring_manager},
>                        {mfa,{riak_ring_manager,start_link,[]}},
>                        {restart_type,permanent},
>                        {shutdown,5000},
>                        {child_type,worker}]
>
> =PROGRESS REPORT==== 8-Oct-2009::11:56:19 ===
>           supervisor: {local,kernel_safe_sup}
>              started: [{pid,<0.60.0>},
>                        {name,timer_server},
>                        {mfa,{timer,start_link,[]}},
>                        {restart_type,permanent},
>                        {shutdown,1000},
>                        {child_type,worker}]
>
> =PROGRESS REPORT==== 8-Oct-2009::11:56:19 ===
>           supervisor: {local,riak_sup}
>              started: [{pid,<0.59.0>},
>                        {name,riak_connect},
>                        {mfa,{riak_connect,start_link,[]}},
>                        {restart_type,permanent},
>                        {shutdown,5000},
>                        {child_type,worker}]
>
> =PROGRESS REPORT==== 8-Oct-2009::11:56:19 ===
>           supervisor: {local,riak_sup}
>              started: [{pid,<0.61.0>},
>                        {name,riak_local_logger},
>                        {mfa,{riak_local_logger,start_link,[]}},
>                        {restart_type,permanent},
>                        {shutdown,5000},
>                        {child_type,worker}]
> opening log file: "log/access.log.2009_10_08_15"
>
> =PROGRESS REPORT==== 8-Oct-2009::11:56:19 ===
>           supervisor: {local,webmachine_sup}
>              started: [{pid,<0.62.0>},
>                        {name,webmachine_logger},
>                        {mfa,{webmachine_logger,start_link,["log"]}},
>                        {restart_type,permanent},
>                        {shutdown,5000},
>                        {child_type,worker}]
>
> =PROGRESS REPORT==== 8-Oct-2009::11:56:19 ===
>           supervisor: {local,riak_sup}
>              started: [{pid,<0.63.0>},
>                        {name,webmachine_mochiweb},
>                        {mfa,
>                            {webmachine_mochiweb,start,
>                                [[{ip,"127.0.0.1"},
>                                  {port,8098},
>                                  {log_dir,"log"},
>                                  {dispatch,
>                                      [{["jiak",bucket],
>                                        jiak_resource,
>                                        [{key_type,container},
>                                         {jiak_name,"jiak"},
>                                         {riak_local,true},
>                                         {jiak_buckets, 
> [jiak_example]}]},
>                                       {["jiak",bucket,key],
>                                        jiak_resource,
>                                        [{key_type,item},
>                                         {jiak_name,"jiak"},
>                                         {riak_local,true},
>                                         {jiak_buckets, 
> [jiak_example]}]},
>                                       {["jiak",bucket,key,'*'],
>                                        jaywalker_resource,
>                                        [{jiak_name,"jiak"},
>                                         {riak_local,true},
>                                         {jiak_buckets, 
> [jiak_example]}]}]}]]}},
>                        {restart_type,permanent},
>                        {shutdown,5000},
>                        {child_type,worker}]
>
> =PROGRESS REPORT==== 8-Oct-2009::11:56:19 ===
>          application: riak
>           started_at: nonode at nohost



On Oct 8, 2009, at 11:45 AM, Dan Reverri wrote:

> Hi Brian
>
> You can try using debug-fresh.sh to start your riak node. This might
> show you the problem or point you in the right direction. Make sure
> you stop any currenty running nodes before starting  a new one.
>
>
> On Thursday, October 8, 2009, Brian Hammond <brian at brianhammond.com>  
> wrote:
>> Hello,
>> I'm having some problems getting Riak to work on Mac OS X.
>> I built erlang from otp_src_R13B02-1.tar.gz using just ./configure;  
>> make; sudo make install.
>> $ erl --versionErlang R13B02 (erts-5.7.3) [source] [smp:2:2] [rq:2]  
>> [async-threads:0] [kernel-poll:false]
>> hello thereEshell V5.7.3  (abort with ^G)1>
>>
>> (side note: whenever erl is invoked, "hello there" is printed;  
>> strange).
>>
>> I checked out Riak from the hg repository and ran make.
>>
>> I updated config/riak-demo.erlenv to point to the correct  
>> directory.  For me, that's /Users/brian/OpenSource/database/riak
>> {cluster_name, "default"}.{ring_state_dir, "priv/ringstate"}.%%  
>> note: make sure you configure your operating system limits for  
>> maximum%% open files (using ulimit/sysctl) when creating larger  
>> ring sizes. {ring_creation_size, 16}.{gossip_interval, 60000}. 
>> {doorbell_port, 9000}.{storage_backend, riak_ets_backend}.% 
>> {riak_dets_backend_root, "priv/store/dets"}.{riak_cookie,  
>> riak_demo_cookie}.{riak_heart_command, "(cd /Users/brian/OpenSource/ 
>> database/riak; ./start-restart.sh /Users/brian/OpenSource/database/ 
>> riak/config/riak-demo.erlenv)"}.{riak_nodename, riakdemo}. 
>> {riak_hostname, "127.0.0.1"}.{riak_web_ip, "127.0.0.1"}. 
>> {riak_web_port, 8098}.{jiak_name, "jiak"}.
>> Next I ran ./start-fresh config/riak-demo.erlenv and verified that  
>> it was running (ps).
>> 18691   ??  S      0:00.42 /usr/local/lib/erlang/erts-5.7.3/bin/ 
>> beam.smp -K true -- -root /usr/local/lib/erlang -progname erl -- - 
>> home /Users/brian -heart -noshell -noinput -connect_all false -pa  
>> deps/webmachine/ebin -pa ebin -name hello there riakdemo at hello  
>> there 127.0.0.1 -setcookie hello there riak_demo_cookie -run riak  
>> start config/riak-demo.erlenv
>> Next step:
>>  ./riak_demo.escript config/riak-demo.erlenv hello thereAttempting  
>> to connect to 'riakdemo at 127.0.0.1 <javascript:_e({}, 'cvml',  
>> '\x26#39;riakdemo at 127.0.0.1');>' with cookie  
>> riak_demo_cookie...Error: failed to connect to Riak cluster:  
>> {error,                                            
>> {could_not_reach_node,                                            'riakdemo at 127.0.0.1 
>>  <javascript:_e({}, 'cvml', '\x26#39;riakdemo at 127.0.0.1');>'}}
>> I also tried using curl:
>> curl -v -X PUT 127.0.0.1:8098/jiak/artist -H "Content-type:  
>> application/json" -d '{"schema": {"allowed_fields": ["albums",  
>> "members"], "write_mask": ["albums", "members"], "required_fields":  
>> [], "read_mask": ["albums", "members"]}}'
>> but this failed with the same reason:
>> * About to connect() to 127.0.0.1 port 8098 (#0)*   Trying  
>> 127.0.0.1... connected* Connected to 127.0.0.1 (127.0.0.1) port  
>> 8098 (#0)> PUT /jiak/artist HTTP/1.1> User-Agent: curl/7.16.3  
>> (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3>  
>> Host: 127.0.0.1:8098> Accept: */*> Content-type: application/json>  
>> Content-Length: 149> * Empty reply from server* Connection #0 to  
>> host 127.0.0.1 left intactcurl: (52) Empty reply from server*  
>> Closing connection #0
>>
>> Riak seems to be accepting connections however:
>> $ telnet 127.0.0.1 8098Trying 127.0.0.1...Connected to  
>> localhost.Escape character is '^]'.
>>
>>
>> Does anyone know what's going on here?
>>
>> Thanks,Brian
>>
>>
>>
>>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20091008/86b692fb/attachment-0002.html>


More information about the riak-users mailing list