Couchbase DB 서버 트로프 couchbase gem에 연결하고 싶습니다.Ruby : Couchbase에 연결
require 'couchbase'
c = Couchbase.connect('http://<server>:<port>/pools/default/buckets/auth')
오류가 발생합니다 :
*** Couchbase::Error::BucketNotFound Exception: bootstrap error, The bucket requested does not exist
다음 코드는 (couchbase python package)와 함께 작동 : 내가 연결 문자열 couchbase://<server>/auth
을 사용하여 루비에서 연결하는 방법을
from couchbase.bucket import Bucket
c = Bucket('couchbase://<server>/auth')
?
그러나 Bucket ('couchbase : ///auth')'- 루비에서 동일한 서버에 연결할 때'Couchbase.connect (http : // : /pools/default/buckets/auth)' 'Couchbase :: Error :: Auth : bootstrap error, Authentication failed. '오류가 발생했습니다. 잘못된 사용자 이름/암호 조합을 제공했을 수 있습니다. ' 두 라이브러리 모두 동일한 웹 관리 포트 - 8091을 사용했습니다. –