Bucket password in Couchbase


I am creating a demo project for reative programming with springboot and Couchbase. I have set the below properties in application.properties file:

spring.couchbase.bootstrap-hosts=localhost spring.couchbase.bucket.name=vanquish spring.couchbase.bucket.password= spring.data.couchbase.repositories.type=auto

As I don't have any bucket level password while creating it. Still, service is not able to start because of below exception:

Caused by: com.couchbase.client.java.error.InvalidPasswordException: Passwords for bucket "vanquish" do not match. at com.couchbase.client.java.CouchbaseAsyncCluster$OpenBucketErrorHandler.call(CouchbaseAsyncCluster.java:651) ~[java-client-2.5.9.jar:na] at com.couchbase.client.java.CouchbaseAsyncCluster$OpenBucketErrorHandler.call(CouchbaseAsyncCluster.java:634) ~[java-client-2.5.9.jar:na] at rx.internal.operators.OperatorOnErrorResumeNextViaFunction$4.onError(OperatorOnErrorResumeNextViaFunction.java:140) ~[rxjava-1.3.8.jar:1.3.8] at rx.internal.operators.OnSubscribeMap$MapSubscriber.onError(OnSubscribeMap.java:88) ~[rxjava-1.3.8.jar:1.3.8] at rx.observers.Subscribers$5.onError(Subscribers.java:230) ~[rxjava-1.3.8.jar:1.3.8] at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.checkTerminated(OperatorObserveOn.java:273) ~[rxjava-1.3.8.jar:1.3.8] at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.call(OperatorObserveOn.java:216) ~[rxjava-1.3.8.jar:1.3.8] at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55) ~[rxjava-1.3.8.jar:1.3.8]

I tried searching all properties but not able to find any relevant property to set username and password or setting the password in couchbase for the bucket.


Assuming that you're using a couchBase version 5.x:

According to the <a href="https://developer.couchbase.com/documentation/server/current/security/security-bucket-protection.html" rel="nofollow">couchBase documentation</a>:


To access cluster-resources, Couchbase Server users — administrators and applications — must specify a username and password.


Steps to follow:

<ol><li>Open your couchBase admin console: http://<couchBase-host>:8091/ui/index.html#!/overview</li> <li>Click on 'Security'</li> <li>click on 'Add user'</li> </ol>

In the 'Add user' form add these parameters:

<strong>User Name:</strong> This <strong><em>must</em></strong> be the bucket name, in your case vanquish.

<strong>Password:</strong> Set the password that you want, this <strong><em>must</em></strong> be the value set in spring.couchbase.bucket.password.

<strong>Roles:</strong> Go to Roles -> Bucket Roles -> Bucket Admin and select your bucket, in your case vanquish.

Click on 'Save'.

After doing this and set the password in spring.couchbase.bucket.password it should work.


  • Iterate file name with counter
  • Use Javascript / JQuery to dynamically create multiple HTML buttons with different click event handl
  • Use custom color to highlight searched text in webview
  • border highlighting loop with jquery
  • WorkflowScript.with in Jenkins
  • .NET 4.0 framework on same server as .NET 1.1
  • R ggplot on-the-fly calculation by grouping variable
  • shell数组(四)
  • 常见协议和标准
  • Google privacy page html invalid
  • Deleting form from django formset
  • Using prepared statement in Groovy
  • how to give my list view width to full screen width and how to make it auto scroll
  • Confused on how to find c and k for big O notation if f(x) = x^2+2x+1
  • Remove unneeded Woocommerce image meta
  • add catalog product in wishlist programmatically in magento
  • Unknown number of sublists with AngularJS
  • Code Map Missing in Visual Studio 15 - Preview 4
  • r - fill columns in data frame
  • Create a Windows driver to access network storage
  • How can I save Array of Class Objects in to a Plist(Iphone Development)
  • Comparing a large set of images by content
  • Authorization Policies/Gates for Laravel 5.3 web app consuming own API w/ Passport
  • Two instances of blur.js possible?
  • date changes on export kendoGrid
  • SyntaxError: expected expression, got '.'
  • Slick: How can I combine a SQL LIKE statement with a SQL IN statement
  • Modifying native query cannot have named parameter bindings?
  • Why do you need 2 Javascript files for cross-platform Cordova plugin?
  • PHPMailer return to AJAX
  • How do I add a mouse over tooltip to an Image using .DrawImage()
  • `$http:badreq Bad Request Configuration` - from angular post method, what is wrong here?
  • Google App Engine Datastore: Dealing with eventual consistency
  • Debug `Unexpected end of JSON input Error` on content script
  • Bad automatic Triangulation with Mayavi for coloring a surface known only by its corner
  • ssh remote server login script
  • How to call different template for different category archive page in woocommerce
  • Call Microservice from another Microservice within Docker
  • Using Service Component Runtime
  • How to handle a codeigniter PDF generator