Couchbase Questions: Ruby SDK

Have a Question? Get it answered by our community

buger's picture
Asked 1 week 1 day ago
Latest activity 5 days 21 hours ago

Error after updating libcouchbase from 2.2 to 2.3

After updating design_docs query shows error:

Couchbase.connect("http://localhost:8091/").design_docs
Couchbase::Error::Invalid: failed to schedule document request (key="/pools/default/buckets/
...
buger's picture
Asked 2 weeks 1 day ago
Latest activity 2 weeks 22 hours 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: https://gist.github.com/buger/01239d8ffe22b0f3ffca
Bug happen when using eventmachine engine. Do not see...

buger's picture
Asked 1 month 2 weeks ago
Latest activity 1 week 6 days 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 0.0.0.0:
...
aso's picture
Asked 2 months 2 days ago
Latest activity 2 months 2 days 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 = Couchbase.new("...

drami's picture
Asked 2 months 5 days ago
Latest activity 2 months 3 days ago

Couchbase gem v=1.3.5 fail

My environment:

Windows 7 64bits
Ruby 1.9.3
Rails 3.2

Steps:
Create new app:

rails new couchbase_example -O

Add to Gemfile:

gem 'couchbase'
gem 'couchbase-model'

run:

bundle install

The gem are...

aso's picture
Asked 2 months 1 week ago
Latest activity 2 months 5 days 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 1 week ago
Latest activity 2 months 2 weeks 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 2 weeks ago

Segmentation fault using couchbase-model

Hello,

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 8 months 6 hours ago
Latest activity 7 months 4 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 8 months 1 day ago
Latest activity 7 months 4 weeks ago

Segfault using ruby SDK

Hi,

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
libcouchbase.so.2.0.9

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

Pages