Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

Ruby client connection refused using node_list

5 replies [Last post]
  • Login or register to post comments
Mon, 07/30/2012 - 15:03
alvesdm
Offline
Joined: 07/30/2012
Groups: None

I have set up couchbase on 2 servers(192.168.56.4 & 192.168.56.5) both in the same bucket(default). I'm able to connect to each individually, but not when passing the node_list arg as shown below:

It connnects when I do so:

client = Couchbase.connect("http://192.168.56.4:8091/pools/default")

OR

client = Couchbase.connect("http://192.168.56.5:8091/pools/default")

but I get a refuse connection error when I try:

c = Couchbase.connect( :pool => "default", :port => 8091, :node_list => ['http://192.168.56.4', 'http://192.168.56.5'])

OR

c = Couchbase.connect( :pool => "default", :port => 8091, :node_list => ['192.168.56.4', '192.168.56.5'])

OR

c = Couchbase.connect( :pool => "default", :node_list => ['http://192.168.56.4:8091', 'http://192.168.56.5:8091'])

AND with other combinations that I have tried...

I was taking a look on the client source code and couldn't find anything related to this node_list arg. Is it still supported(since we can still find this option on the documentation)?

So, any ideas on what am I doing wrong?

BTW, just in case anyone asks, they seem to be working properly when it comes to replicate the data between themselves.

Thanks.

Top
  • Login or register to post comments
Mon, 07/30/2012 - 19:01
scalabl3
Offline
Joined: 07/18/2012
Groups:

This looks like it's formed right. Maybe the syntax got changed. I will confirm with avsej and try it out myself...

Just to be complete, which gem version are you using? i.e. did you gem install couchbase? or gem install couchbase --pre?

Thanks!

__________________

@scalabl3
Technical Evangelist
Couchbase Inc.
 

Top
  • Login or register to post comments
Mon, 07/30/2012 - 19:10
alvesdm
Offline
Joined: 07/30/2012
Groups: None

Hi, i'm using 1.1.2.
I did "gem install couchbase" it was like 2 weeks ago.
I noticed there is a new version (1.1.3) released 3 days ago, but as for the release/commit notes I don't think it is there now, right?

Thanks and please do keep me posted.

best regards.

Top
  • Login or register to post comments
Mon, 07/30/2012 - 19:54
scalabl3
Offline
Joined: 07/18/2012
Groups:

Looks like a bug! It's definitely fixed in later developer preview versions (I confirmed it works with 1.2.0dp6), but it was not working for me for couchbase gems 1.1.2 & 1.1.3. I was getting similar error: Connection failed: Connection refused (error=0x17) (Couchbase::Error::Connect).

I'll notify avsej, thanks for reporting this!!

__________________

@scalabl3
Technical Evangelist
Couchbase Inc.
 

Top
  • Login or register to post comments
Mon, 07/30/2012 - 23:05
avsej
avsej's picture
Offline
Joined: 06/15/2011
Groups: None

hi guys. node_list feature isn't accessible in couchbase 1.1.x branch http://rubydoc.info/gems/couchbase/Couchbase/Bucket#initialize-instance_...

and as documentation for preview version says http://rubydoc.info/github/couchbase/couchbase-ruby-client/Couchbase/Buc... node_list option accepts array of hosts with optional ports

__________________

Find me on FreeNode IRC in #libcouchbase channel

Top
  • Login or register to post comments
Tue, 07/31/2012 - 04:24
alvesdm
Offline
Joined: 07/30/2012
Groups: None

Brilliant!!
after installing the preview version it worked like a charm.

Thank you guys!

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker