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
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to