久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Couchbase 存儲桶身份驗(yàn)證錯誤

Couchbase Bucket authentication error(Couchbase 存儲桶身份驗(yàn)證錯誤)
本文介紹了Couchbase 存儲桶身份驗(yàn)證錯誤的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

使用 Couchbase 5.0 及其 Java 客戶端 2.0.3,出現(xiàn)以下錯誤.

Using Couchbase 5.0 and its Java client 2.0.3, I have the following error.

只需按照以下說明打開存儲桶:

Just following these instructions to open a bucket:

https://developer.couchbase.com/documentation/server/current/sdk/java/managing-connections.html

如上所述,使用基本的本地配置,只需兩行代碼:

As explained, with a basic local configuration, it's just a matter of two lines of code:

Cluster cluster = CouchbaseCluster.create();
Bucket bucket = cluster.openBucket("hero");

這應(yīng)該會打開 localhost 集群(實(shí)際上是這樣),然后打開一個名為hero"的存儲桶,它實(shí)際上存在于我的 Couchbase 服務(wù)器中.

That should open the localhost cluster (it actually does) and afterwards open a bucket called "hero", which actually exists in my Couchbase server.

但是,我不斷收到以下錯誤:

Nevertheless, I keep getting the following error:

2017-11-08 00:40:25.546 ERROR 1077 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is com.couchbase.client.java.error.InvalidPasswordException: Passwords for bucket "hero" do not match.] with root cause

com.couchbase.client.java.error.InvalidPasswordException: Passwords for bucket "hero" do not match.
    at com.couchbase.client.java.CouchbaseAsyncCluster$1.call(CouchbaseAsyncCluster.java:156) ~[java-client-2.0.3.jar:2.0.3]
    at com.couchbase.client.java.CouchbaseAsyncCluster$1.call(CouchbaseAsyncCluster.java:146) ~[java-client-2.0.3.jar:2.0.3]
    at rx.internal.operators.OperatorOnErrorResumeNextViaFunction$1.onError(OperatorOnErrorResumeNextViaFunction.java:77) ~[rxjava-1.0.4.jar:1.0.4]
    at rx.internal.operators.OperatorMap$1.onError(OperatorMap.java:49) ~[rxjava-1.0.4.jar:1.0.4]
    at rx.internal.operators.NotificationLite.accept(NotificationLite.java:147) ~[rxjava-1.0.4.jar:1.0.4]
    at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.pollQueue(OperatorObserveOn.java:177) ~[rxjava-1.0.4.jar:1.0.4]
    at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.access$000(OperatorObserveOn.java:65) ~[rxjava-1.0.4.jar:1.0.4]
    at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber$2.call(OperatorObserveOn.java:153) ~[rxjava-1.0.4.jar:1.0.4]
    at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:47) ~[rxjava-1.0.4.jar:1.0.4]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_151]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_151]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[na:1.8.0_151]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[na:1.8.0_151]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_151]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_151]
    at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]

不知何故,它正在詢問存儲桶的密碼.但是Couchbase的bucket級別沒有密碼配置.

Somehow it's asking a password for the bucket. But there is no configuration of password at bucket levels in Couchbase.

有人知道嗎?

推薦答案

在 Couchbase Server 5.0 中,引入了基于角色的訪問控制.您現(xiàn)在必須創(chuàng)建一個名稱與存儲桶名稱匹配的用戶,并在打開存儲桶時使用該用戶的密碼.用戶必須具有對存儲桶具有訪問權(quán)限的角色.

In 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.

Cluster cluster = CouchbaseCluster.create();
Bucket bucket = cluster.openBucket("hero", "password");

有關(guān)更多信息,請參閱此 Couchbase 論壇帖子:V5.0 - 新的基于角色的身份驗(yàn)證 - 存儲桶密碼等

See this Couchbase forum post for more information: V5.0 - NEW Role-Based Authentication - Bucket Passwords, etc

SDK 用戶

  • 繼續(xù)使用您當(dāng)前的 SDK 版本訪問存在用戶、具有適當(dāng)權(quán)限且與該存儲桶同名的存儲桶.
  • 升級到最新的 SDK 版本以訪問現(xiàn)在可用的更新的身份驗(yàn)證和用戶管理功能.

這篇關(guān)于Couchbase 存儲桶身份驗(yàn)證錯誤的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Why would you choose Android API over Google APIs in the SDK on Eclipse?(為什么在 Eclipse 的 SDK 中選擇 Android API 而不是 Google API?)
admob 6.2.1 nullpointer exception(admob 6.2.1 空指針異常)
How to setup SDK in IntelliJ IDEA?(如何在 IntelliJ IDEA 中設(shè)置 SDK?)
My phone cannot be detected in eclipse to test run(eclipse 無法檢測到我的手機(jī)進(jìn)行試運(yùn)行)
platform-toolsaapt.exe directory missing in android SDK(android SDK 中缺少 platform-toolsaapt.exe 目錄)
error importing com.google.android.gms.*;(導(dǎo)入 com.google.android.gms.* 時出錯;)
主站蜘蛛池模板: 国产aⅴ精品 | 久久久久久国产 | 天天想天天干 | 97色在线视频 | 亚洲精品电影网在线观看 | 97久久精品午夜一区二区 | 中文一区 | 69av片| 免费在线观看一区二区 | 国产精品夜夜夜一区二区三区尤 | 亚洲精品一区二区三区中文字幕 | 日韩www| av官网在线| 91精品国产综合久久福利软件 | 九七午夜剧场福利写真 | 国产 欧美 日韩 一区 | 91视频网址| 91免费版在线 | 精品亚洲一区二区三区四区五区高 | 久久黄网 | 久久99久久99精品免视看婷婷 | 亚洲美女视频 | 91亚洲欧美| 精精国产xxxx视频在线播放 | 91天堂网| 亚洲精品视频在线播放 | 亚洲精品乱码久久久久久9色 | 国产精品视频在线观看 | 亚洲一区二区av | 国产9999精品 | 91久久国产 | 日韩中文字幕一区 | 欧美日韩国产一区二区 | 九色 在线| 亚洲精品一区二区三区蜜桃久 | 成人久草| 欧美黄色大片在线观看 | 欧美在线日韩 | 国产精品污www一区二区三区 | 台湾a级理论片在线观看 | 久久精品亚洲 |