Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

Adding a new bucket caused BucketNotFound error

1 reply [Last post]
  • Login or register to post comments
Tue, 07/03/2012 - 11:47
jpoloney
Offline
Joined: 07/03/2012
Groups: None

I'm using Couchbase 1.8.0 on Mac OS X along with the Ruby libraries to access it. I deleted the default bucket and created by own, with no password. I'm accessing the bucket with the following Ruby code:

url = "http://127.0.0.1:8091/pools/default"
Couchbase.new(url, :bucket_name => 'mybucket')

and I'm getting the following error:

Couchbase::Error::BucketNotFound (HTTP/1.1 404 Object Not Found
Server: Couchbase Server 1.8.0r_74_g85f643d-community

Does any one have any thoughts? I've tried rebooting both the server and the rails app (even though I shouldn't have to) and it's still not connecting. I'm not really sure what I'm doing wrong.

Thanks,

-- Joel

Top
  • Login or register to post comments
Tue, 07/03/2012 - 14:29
jpoloney
Offline
Joined: 07/03/2012
Groups: None

So, it looks like the documentation on the Couchbase website was wrong in terms of how to connect with the Ruby library. The correct syntax is below.

bucket = 'mybucket'
password = 'mypassword'
Couchbase.connect("http://localhost:8091/pools/default", :bucket => bucket, :username => bucket, :password => password)

Hope this helps!

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