{error, timeout}

stewart mackenzie setori88 at gmail.com
Fri Oct 9 03:36:16 EDT 2009


Oh dear I realize I was connecting to the client!

Where as I should have been connection to riakdemo at 127.0.0.1
instead by calling riak:local_client(). i was getting an instance of the
client.

Then when I try connecting to the server.... (which is running)

$ ./riak_demo.escript  config/riak-demo.erlenv
Attempting to connect to 'riakdemo at 127.0.0.1' with cookie
riak_demo_cookie...
Connected successfully
Looking for pre-existing object at {<<"riak_demo">>, <<"demo">>}...
  Pre-existing object found, modifying
Storing object with new value...
  Written successfully
Fetching object at {<<"riak_demo">>, <<"demo">>}...
  Fetched successfully
  Object contained correct value
SUCCESS

(riaktest at 127.0.0.1)3> {ok, C} = riak:client_connect('riakdemo at 127.0.0.1').
** exception error: no match of right hand side value
                    {error,{could_not_reach_node,'riakdemo at 127.0.0.1'}}
(riaktest at 127.0.0.1)4> {ok, C} = riak:client_connect('127.0.0.1').
** exception error: no match of right hand side value
                    {error,{could_not_reach_node,'127.0.0.1'}}
(riaktest at 127.0.0.1)5>

rgds
Stewart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20091009/73866d4f/attachment-0002.html>


More information about the riak-users mailing list