Hi, I am currently using buckets with passwords in my production environments, however I see that 5.0 has removed the “bucket password”, does this means that I cannot use rolling upgrade?
I believe you can still use an online upgrade. Pre 5.x buckets are upgraded in to the RBAC system, meaning that a legacy bucket username is created on upgrade. Your application should continue to authenticate to the old bucket using just the bucket name and password.
Any new buckets created after the 5.0 upgrade will need explicit usernames creating (which can match the bucket name if you wish) via the Security tab.
Bucket passwords are no longer available (at leas for new buckets). You need to create a user (Security tab on UI), and specify a password for that user when you connect.
Note you need an SDK which is compatible with Couchbase Server 5.0 - see SDK Compatibility in the Release Notes
When I’m running my application its giving below exception.
Caused by: com.couchbase.client.java.error.InvalidPasswordException: null
at com.couchbase.client.java.cluster.DefaultAsyncClusterManager$3.call(DefaultAsyncClusterManager.java:111)
at com.couchbase.client.java.cluster.DefaultAsyncClusterManager$3.call(DefaultAsyncClusterManager.java:106)
at rx.internal.util.ActionSubscriber.onNext(ActionSubscriber.java:39)
at rx.internal.operators.OperatorDoOnEach$1.onNext(OperatorDoOnEach.java:81)
at rx.internal.operators.OnSubscribeRedo$2$1.onNext(OnSubscribeRedo.java:244)
at rx.internal.operators.OperatorMerge$MergeSubscriber.emitScalar(OperatorMerge.java:399)
at rx.internal.operators.OperatorMerge$MergeSubscriber.tryEmit(OperatorMerge.java:357)
at rx.internal.operators.OperatorMerge$InnerSubscriber.onNext(OperatorMerge.java:852)
at rx.internal.producers.SingleProducer.request(SingleProducer.java:65)
at rx.Subscriber.setProducer(Subscriber.java:211)
at rx.subjects.AsyncSubject.onCompleted(AsyncSubject.java:106)
The method authenticate(String, String) is undefined for the type Cluster
I am trying to authenticate in cluster.
I am not able to connect.
Please assist.