Couchbase Questions: Ruby SDK

Have a Question? Get it answered by our community

buger's picture
Asked 3 days 2 hours ago
Latest activity 23 hours 44 min ago

Error after updating libcouchbase from 2.2 to 2.3

After updating design_docs query shows error:

Couchbase::Error::Invalid: failed to schedule document request (key="/pools/default/buckets/
buger's picture
Asked 1 week 3 days ago
Latest activity 1 week 3 days ago

Segfault when trying to use :observe option

The only change in code is added :observe => {:persisted => 1} to set operation.

Here is what happens:
Bug happen when using eventmachine engine. Do not see...

buger's picture
Asked 1 month 2 weeks ago
Latest activity 1 week 1 day ago

Error while using ruby sdk with EventMachine

I'm getting this error when trying to start your goliath example:

couchbase-ruby-client/examples/chat-goliath-grape# ruby app.rb -sv 
[26428:INFO] 2014-03-04 15:59:43 :: Starting server on
aso's picture
Asked 1 month 3 weeks ago
Latest activity 1 month 3 weeks ago

How to access development view using Ruby SDK?

I created development view in the beer-sample bucket with the name 'by_location'. I can see it in couchbase console when I select Views->beer-sample->Development Views. It is in _design/dev_beer. In the code I am trying to access it:

client ="...

drami's picture
Asked 2 months 10 hours ago
Latest activity 1 month 4 weeks ago

Couchbase gem v=1.3.5 fail

My environment:

Windows 7 64bits
Ruby 1.9.3
Rails 3.2

Create new app:

rails new couchbase_example -O

Add to Gemfile:

gem 'couchbase'
gem 'couchbase-model'


bundle install

The gem are...

aso's picture
Asked 2 months 3 days ago
Latest activity 2 months 8 hours ago

unable to install couchbase gem v. 1.3.5 on windows 7

Environment - Windows 7 Professional (64), Ruby 1.9.3 p.484

gem install couchbase

Fetching: yaji-0.3.5-x86-mingw32.gem (100%)
Successfully installed yaji-0.3.5-x86-mingw32
Fetching: connection_pool-1.2.0.gem (100%)
Successfully installed connection_pool-1.2.0...

frankgarcia's picture
Asked 3 months 2 days ago
Latest activity 2 months 1 week ago

Dealing with document metadata

How can I retrieve a document metadata? With Bucket#get I can only get its value

Is there any function in the SDK that can convert a document CAS number into the REV string value and the other way around?

So far my poor man solution is having a view with all document ids as key,...

sbeyer's picture
Asked 5 months 2 weeks ago
Latest activity 2 months 1 week ago

Segmentation fault using couchbase-model


my ruby interpreter crashes with a segmentation fault running a script written in ruby that accesses CouchBase server. The problem seems to come from couchbase-model, but I am pretty new to Ruby and to CouchBase, so I am not even sure about that. Pretty odd, the problem does not...

mmarini's picture
Asked 7 months 3 weeks ago
Latest activity 7 months 3 weeks ago

Segfault using Ruby2

I couldn't find anyone else having this issue, but I'm having trouble getting started with Couchbase using Ruby2. I'm getting a segmentation fault trying to access a document in the beer-sample bucket.

I'm using:
Ruby 2.0.0-p247 (using irb)
libcouchbase 2.1.1 (from homebrew)...

adam.habari's picture
Asked 7 months 3 weeks ago
Latest activity 7 months 3 weeks ago

Segfault using ruby SDK


Wasn't sure where to ask about this. I wasn't able to find anything about it on google will appreciate your help.

I am using the ruby SDK

couchbase -v1.3.2

I have a cluster with two nodes.
I am able to connect to bucket but when...