Would I get this error if I tried to enable search on a bucket that has yet to be created?
On Nov 9, 2012, at 10:21 AM, Sean Cribbs wrote: > Martin, > > How is your Riak::Client object configured? That looks like one of two > possibilities: first, the request failed 3 times in a row; second, one > of the backends is raising an exception that seems network related but > isn't one of the standard network errors (i.e it's a RuntimeError, but > it should be a SystemError with econnrefused errno!). > > On Fri, Nov 9, 2012 at 7:12 AM, Martin Streicher > <martin.streic...@gmail.com> wrote: >> >> I get a connection refused error when I try to enable search from my code. >> >> /var/www/zutron/shared/bundle/ruby/1.9.1/gems/riak-client-1.0.5/lib/riak/client.rb:450:in >> `rescue in recover_from': Connection refused - connect(2) (RuntimeError) >> from >> /var/www/zutron/shared/bundle/ruby/1.9.1/gems/riak-client-1.0.5/lib/riak/client.rb:422:in >> `recover_from' >> from >> /var/www/zutron/shared/bundle/ruby/1.9.1/gems/riak-client-1.0.5/lib/riak/client.rb:284:in >> `http' >> from >> /var/www/zutron/shared/bundle/ruby/1.9.1/gems/riak-client-1.0.5/lib/riak/client.rb:129:in >> `backend' >> from >> /var/www/zutron/shared/bundle/ruby/1.9.1/gems/riak-client-1.0.5/lib/riak/client.rb:246:in >> `get_bucket_props' >> from >> /var/www/zutron/shared/bundle/ruby/1.9.1/gems/riak-client-1.0.5/lib/riak/bucket.rb:77:in >> `props' >> from >> /var/www/zutron/shared/bundle/ruby/1.9.1/gems/riak-client-1.0.5/lib/riak/bucket.rb:68:in >> `props=' >> from >> /var/www/zutron/releases/20121108191450/lib/classes/riak_search.rb:6:in >> `enable_search' >> >> enable_search is: >> >> def self.enable_search(bucket_name, client = Riak::Client.new) >> bucket = client.bucket bucket_name >> bucket.props = {search: true} >> end >> >> Any ideas why it's failing? Search is enabled on the machine. >> >> >> >> >> _______________________________________________ >> riak-users mailing list >> riak-users@lists.basho.com >> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > > > > -- > Sean Cribbs <s...@basho.com> > 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