Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
1
Description
Tried to use a gcouchbase bucket in several different ways with RBAC and always get an immediate timeout error, which seems to be a false error since it happens so quickly and does not even attempt to connect to the bucket. Sample code below:
from couchbase.cluster import Cluster, PasswordAuthenticator
|
from gcouchbase.bucket import Bucket
|
|
cluster = Cluster('couchbase://192.168.61.101', bucket_class=Bucket)
|
cluster.authenticate(PasswordAuthenticator('Administrator', 'password'))
|
bucket = cluster.open_bucket('travel-sample')
|
The error is:
Traceback (most recent call last):
|
File "gcb_test.py", line 6, in <module>
|
bucket = cluster.open_bucket('travel-sample')
|
File "/Library/Python/2.7/site-packages/couchbase/cluster.py", line 100, in open_bucket
|
rv = self.bucket_class(str(connstr), **kwargs)
|
File "/Library/Python/2.7/site-packages/gcouchbase/bucket.py", line 88, in __init__
|
super(Bucket, self).__init__(IOPS(), *args, **kwargs)
|
File "/Library/Python/2.7/site-packages/couchbase/async/bucket.py", line 152, in __init__
|
super(AsyncBucket, self).__init__(*args, **kwargs)
|
File "/Library/Python/2.7/site-packages/couchbase/bucket.py", line 252, in __init__
|
self._do_ctor_connect()
|
File "/Library/Python/2.7/site-packages/gcouchbase/bucket.py", line 97, in _do_ctor_connect
|
self._evconn.get()
|
File "src/gevent/event.py", line 268, in gevent._event.AsyncResult.get
|
File "src/gevent/event.py", line 296, in gevent._event.AsyncResult.get
|
File "src/gevent/event.py", line 286, in gevent._event.AsyncResult.get
|
File "src/gevent/event.py", line 266, in gevent._event.AsyncResult._raise_exception
|
File "<string>", line 3, in reraise
|
couchbase.exceptions._TimeoutError_0x17 (generated, catch TimeoutError): <RC=0x17[Client-Side timeout exceeded for operation. Inspect network conditions or increase the timeout], Error getting initial connection to cluster>
|
Using txcouchbase to the same cluster with the same username and password works just fine:
from txcouchbase.bucket import Bucket
|
bucket = Bucket('couchbase://192.168.61.101/travel-sample', username='Administrator', password='password')
|