Error while executing couchbase with play


#1

Hi,

   I am using couchbase server with play framework , i am getting the error as

ConfigurationException: Configuration for bucket "default" was not found in server list ([http://127.0.0.1:8091/pools]).

Can anyone help me to solve this error,

Thank you in advance


#2

Does your cluster have a bucket “default” in it? Also, note that if you’re using a 5.x or later cluster, you may have to create a user named “default” to work with the authentication changes in 5.x. See the docs for details.


#3

Yes there is default bucket in it

I am getting error as below


#4

In application.config of play framework ,i have given like

buckets = [{
host=“127.0.0.1”
port=“8091”
base=“pools”
bucket=“default”
user=“Admin”
pass=“Admin@123”
timeout=“0”
}]

what is base=pools here


#5

Which version of the server are you using? Based on what I see, I’m guessing play framework is not using the modern RBAC authenticator, so you’ll probably need to create a user named “default” with a password to match the bucket.

The reason you see the error this way is that starting with Couchbase Server 5.0, in order to walk the REST interface to find the buckets, the right authentication header needs to be there.

Hopefully this helps!