riak-users Digest, Vol 3, Issue 8

stewart mackenzie setori88 at gmail.com
Fri Oct 9 22:12:07 EDT 2009


Okay that solved it thanks so much for your assistance!
btw I would love a pdf of that nosql conference!

Kind regards
Stewart

On Sat, Oct 10, 2009 at 12:00 AM, <riak-users-request at lists.basho.com>wrote:

> Send riak-users mailing list submissions to
>        riak-users at lists.basho.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> or, via email, send a message with subject or body 'help' to
>        riak-users-request at lists.basho.com
>
> You can reach the person managing the list at
>        riak-users-owner at lists.basho.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of riak-users digest..."
>
>
> Today's Topics:
>
>   1. {error, timeout} (stewart mackenzie)
>   2. Re: {error, timeout} (Bryan Fink)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 9 Oct 2009 15:36:16 +0800
> From: stewart mackenzie <setori88 at gmail.com>
> To: riak-users at lists.basho.com
> Subject: {error, timeout}
> Message-ID:
>        <af642e350910090036v333db141n1d52ef65d3ba3ed5 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Fri, 9 Oct 2009 08:30:12 -0400
> From: Bryan Fink <bryan at basho.com>
> To: riak-users at lists.basho.com
> Subject: Re: {error, timeout}
> Message-ID:
>        <473d01840910090530o2a205dadsbc9d8f5722493040 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Fri, Oct 9, 2009 at 3:36 AM, stewart mackenzie <setori88 at gmail.com>
> wrote:
> > 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>
>
> Hi, Stewart.  The most likely cause for the could_not_reach_node error
> here is a mismatch of cookies between your riak node and your client
> node.  Try this:
>
> 1> erlang:set_cookie('riakdemo at 127.0.0.1', riak_demo_cookie).
> 2> {ok, C} = riak:client_connect('riakdemo at 127.0.0.1').
>
> -Bryan
>
>
>
> ------------------------------
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
> End of riak-users Digest, Vol 3, Issue 8
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20091010/7ad771cc/attachment-0002.html>


More information about the riak-users mailing list