Couchbase Bucket authentication error in Spring boot
Couchbase Server: Enterprise Edition 6.0.2 build 2413
I am getting the following error while running a spring boot application that makes use of couchbase database.
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataRepositoryServiceImpl': Unsatisfied dependency expressed through field 'couchbaseTemplate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.data.couchbase.SpringBootCouchbaseDataConfiguration': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.autoconfigure.data.couchbase.SpringBootCouchbaseDataConfiguration$$EnhancerBySpringCGLIB$$2dc56f6d]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springBootCouchbaseConfigurer' defined in class path resource [org/springframework/boot/autoconfigure/data/couchbase/CouchbaseConfigurerAdapterConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.couchbase.config.CouchbaseConfigurer]: Factory method 'springBootCouchbaseConfigurer' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'couchbaseClient' defined in class path resource [org/springframework/boot/autoconfigure/couchbase/CouchbaseConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.couchbase.client.java.Bucket]: Factory method 'couchbaseClient' threw exception; nested exception is com.couchbase.client.java.error.InvalidPasswordException: Passwords for bucket "xsightlocal" do not match.
Resolution:
From Couchbase Server 5.0, role-based access controls were introduced. You must now create a user with a name that matches the bucket name and use that user’s password when opening the bucket. The user must have a role with access rights to the bucket.
No comments:
Post a Comment