Adding a new bucket caused BucketNotFound error
Tue, 07/03/2012 - 11:47
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
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.
Hope this helps!