Skip to content

Instantly share code, notes, and snippets.

@kierangraham
Created July 12, 2012 11:57
Show Gist options
  • Save kierangraham/3097706 to your computer and use it in GitHub Desktop.
Save kierangraham/3097706 to your computer and use it in GitHub Desktop.
Couchbase Ruby Client Errors
irb(main):021:0* Article.ensure_design_document!
Couchbase::Error::Protocol: Number of buckets must be a power of two > 0 and <= MAX_BUCKETS (error=0x15)
from /app/vendor/bundle/ruby/1.9.1/gems/couchbase-1.2.0.dp5/lib/couchbase.rb:51:in `initialize'
from /app/vendor/bundle/ruby/1.9.1/gems/couchbase-1.2.0.dp5/lib/couchbase.rb:51:in `new'
from /app/vendor/bundle/ruby/1.9.1/gems/couchbase-1.2.0.dp5/lib/couchbase.rb:51:in `connect'
from /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.0/lib/new_relic/agent/method_tracer.rb:491:in `block in connect_with_trace_Couchbase_connect'
from /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.0/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
from /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.0/lib/new_relic/agent/method_tracer.rb:486:in `connect_with_trace_Couchbase_connect'
from /app/vendor/bundle/ruby/1.9.1/gems/couchbase-1.2.0.dp5/lib/couchbase.rb:82:in `bucket'
from /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.0/lib/new_relic/agent/method_tracer.rb:491:in `block in bucket_with_trace_Couchbase_bucket'
from /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.0/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
from /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.0/lib/new_relic/agent/method_tracer.rb:486:in `bucket_with_trace_Couchbase_bucket'
from /app/vendor/bundle/ruby/1.9.1/bundler/gems/ruby-couchbase-model-b52f33e7b93d/lib/couchbase/model.rb:532:in `bucket'
from /app/vendor/bundle/ruby/1.9.1/bundler/gems/ruby-couchbase-model-b52f33e7b93d/lib/couchbase/model.rb:210:in `ensure_design_document!'
from (irb):21
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/console.rb:47:in `start'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/console.rb:8:in `start'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
irb(main):022:0> Couch.client.set("thing", {:one => "1", :two => "2", :three => "3"})
Couchbase::Error::Protocol: Number of buckets must be a power of two > 0 and <= MAX_BUCKETS (error=0x15)
from /app/vendor/bundle/ruby/1.9.1/gems/couchbase-1.2.0.dp5/lib/couchbase.rb:51:in `initialize'
from /app/vendor/bundle/ruby/1.9.1/gems/couchbase-1.2.0.dp5/lib/couchbase.rb:51:in `new'
from /app/vendor/bundle/ruby/1.9.1/gems/couchbase-1.2.0.dp5/lib/couchbase.rb:51:in `connect'
from /app/app/models/couch.rb:20:in `client'
from (irb):22
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/console.rb:47:in `start'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/console.rb:8:in `start'
from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
irb(main):023:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment