Re: Riak Ruby client cannot connect to server

2014-10-15 Thread Cui Liqiang
That’s very helpful.  Thanks a lot!  

--  
Cui Liqiang


On Tuesday, October 14, 2014 at 9:57 PM, Sean Cribbs wrote:

> You are connecting the binary client to the HTTP port. Use port 8087 instead.
>  
> On Tue, Oct 14, 2014 at 8:50 AM, Cui Liqiang  (mailto:cui.liqi...@gmail.com)> wrote:
> > Hi,
> >  
> > I just started to learn Riak, but encounter a problem.
> >  
> > I have installed Riak on my mac os using the official mac distribution.
> > After starting the Riak server, I can interact with it via http interface
> > properly.
> > Then I tried using Ruby client, and problem came. Below is the code I
> > extract from Riak Ruby client github page:
> >  
> > require 'riak'
> >  
> > client = Riak::Client.new(pb_port: 8098)
> > bucket = client.bucket('rooms')
> >  
> > # Get an object from the bucket
> > object = bucket.get_or_new("index.html") # a Riak::RObject
> >  
> > # Change the object's data and save
> > object.raw_data = "Hello, world!"
> > object.content_type = "text/html"
> > object.store
> >  
> >  
> >  
> > When I run this program, it just hung there. After a little bit debugging, I
> > found it hung in file lib/riak/client/beefcake/protocol.rb:44, which said:
> >  
> > header = socket.read 5
> >  
> >  
> > My Ruby version is 2.1.1, Riak version is 2.0.1, Ruby client version is
> > 2.1.0
> >  
> > Any ideas about this?
> >  
> > --
> > Cui Liqiang
> >  
> > ___
> > riak-users mailing list
> > riak-users@lists.basho.com (mailto:riak-users@lists.basho.com)
> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> >  
>  
>  
>  
>  
> --  
> Sean Cribbs mailto:s...@basho.com)>
> Sr. Software Engineer
> Basho Technologies, Inc.
> http://basho.com/
>  
>  


___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Not able to store data in original riak bucket

2014-10-15 Thread ayush mishra
Hi Luke,

Sorry I misunderstood what you were saying.

You can reproduce this by following below steps:

* Install Riak 1.4
* put some data into this environment.
* then upgrade to 2.0.1 and you would be able to see the search hook being
added to buckets.


You can reproduce this by following above steps.

Today I deployed code on Codeship   and got same
issue. I can't setup my temporary fix on codeship.

Could you please suggest any permanent fix for the same?


Regards,
Ayush



On Wed, Oct 15, 2014 at 1:29 AM, Luke Bakken  wrote:

> I haven't reproduced it yet, but I'll let you know when I do :-)
> Thanks for providing all this information.
> --
> Luke Bakken
> Engineer / CSE
> lbak...@basho.com
>
>
> On Tue, Oct 14, 2014 at 10:10 AM, ayush mishra
>  wrote:
> > Ohhh This is the reason. Thanks Luke for finding root cause. I will take
> > care of this in future. Since I am new to Riak, so I am not aware of
> this.
> >
> > Regards,
> > Ayush
> >
> > On Tue, Oct 14, 2014 at 10:23 PM, Luke Bakken  wrote:
> >>
> >> Hi Ayush,
> >>
> >> Just so I'm clear and can reproduce this:
> >>
> >> * You were using Riak 1.4 and had Riak Search enabled.
> >> * You put some data into this environment.
> >> * You then upgraded to 2.0.1 and saw the search hook being added to
> >> buckets.
> >>
> >> Thanks!
> >>
> >> --
> >> Luke Bakken
> >> Engineer / CSE
> >> lbak...@basho.com
> >>
> >>
> >> On Tue, Oct 14, 2014 at 9:45 AM, ayush mishra <
> ayushmishra2...@gmail.com>
> >> wrote:
> >> > Hi Luke,
> >> >
> >> > You are right. This is just a workaround not a fix. I had some urgency
> >> > in my
> >> > project. That's why I followed this approach. I updated it from
> previous
> >> > version to 2.0.1.
> >> >
> >> > Regards,
> >> > Ayush
> >> >
> >> >
> >> > On Tue, Oct 14, 2014 at 8:05 PM, Luke Bakken 
> wrote:
> >> >>
> >> >> Hi Ayush,
> >> >>
> >> >> By making that change, you are enabling Riak Search 1.0, which I
> >> >> assume you don't want to do. This is a "workaround" but not a fix.
> >> >>
> >> >> * Did you upgrade from a previous version of Riak to 2.0.1?
> >> >>
> >> >> * What client library and version of that library are you using?
> >> >>
> >> >> * Can you run this command and send me the output? tar czf
> >> >> /tmp/riak-config-$(hostname).tgz /var/lib/riak/generated.configs
> >> >>
> >> >> Thanks!
> >> >>
> >> >> --
> >> >> Luke Bakken
> >> >> Engineer / CSE
> >> >> lbak...@basho.com
> >> >>
> >> >>
> >> >> On Tue, Oct 14, 2014 at 12:52 AM, ayush mishra
> >> >>  wrote:
> >> >> >
> >> >> >
> >> >> >
> http://www.dzone.com/links/r/solution_for_riak_500_internal_server_error.html
> >
> >
>
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com