Couchbase Questions: Ruby SDK

Have a Question? Get it answered by our community

mmarini's picture
Asked 11 months 1 week ago
Latest activity 11 months 1 week 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 11 months 1 week ago
Latest activity 11 months 1 week 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...

chin's picture
Asked 11 months 2 weeks ago
Latest activity 11 months 2 weeks ago

Unable to install couchbase gem on Windows

Hi, I'm trying to install the couchbase gem (https://github.com/couchbase/couchbase-ruby-client) on Windows Server 2012 with Ruby 2.0.0 but not having much luck. I keep getting the following error:

...
joeosburn's picture
Asked 11 months 2 weeks ago
Latest activity 11 months 2 weeks ago

How to ensure views get updated while running tests

I'm using couchbase-model with Ruby 1.9.3, and I'm running tests within RSpec.

I've created a User model, and I have a method called "authorize" that I want to use to validate logins, with an email and password. I also have a view called "by_email", which returns a key of the email...

oredi's picture
Asked 1 year 2 months ago
Latest activity 11 months 2 weeks ago

Ruby Couchbase & Couchbase Model working with Cucumber/ DatabaseCleaner

May I know if anyone has tried working on Cucumber/DatabaseCleaner and Rails/Couchbase.
I was able to run Cucumber with Rails/Couchbase but I wish to know if anyone knows how to use it with DatabaseCleaner to clean up the DB after running the scenarios. I understand that DatabaseCleaner...

javier4517's picture
Asked 1 year 2 months ago
Latest activity 1 year 2 months ago

Sample about how to retrieve Multiple Keys using the C client

Hello

We have been testing the C example in the couchbase documentation and so far so good.

We would like to be able to retrieve more than one Key in one call to lcb_get(...)

I was unable to find any example for the C client so we have wrote something which is working but I...

stijlfigurant's picture
Asked 1 year 5 months ago
Latest activity 1 year 5 months ago

Beer Sample + Rails + Remote database servers

Hey Guys,
When running rails server, I keep getting a

couchbase.rb:58:in `initialize': Connection failed: Connection refused (error=0x18) (Couchbase::Error::Connect)

with the...

abhish_gl's picture
Asked 1 year 5 months ago
Latest activity 1 year 5 months ago

getting Couchbase::Error::Timeout

I am trying to write a small ruby program to connect to couchbase server and create a document. I am able to connect to couchbase server but when I try to do a get/set/touch I get a timeout error - (Couchbase::Error::Timeout)
sample:
--------------------------------------
...

piotrb's picture
Asked 1 year 6 months ago
Latest activity 1 year 6 months ago

Views + Tests ??

Hey Guys,

We're trying out CouchBase 2.0 and we're trying to write a few tests against views, it seems that its very difficult to keep the views consistant between runs, views end up either not having the data thats being tested or still having data from the previous test in them.

...

rick_g's picture
Asked 1 year 9 months ago
Latest activity 1 year 9 months ago

Ruby couchbase-1.2.0.z.beta2 fails to install with libcouchbase-2.0.0beta2

Hi,
I installed the server and the c client (via brew), but the gem won't install. Is there anything I am missing? Thanks!
This is the error I am getting:

gem install couchbase --pre
...

Pages