Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
2.2.6
-
Server -> 5.0.0-3947
libcouchbase -> 2.7.7
couchbase -> 2.2.6
Description
- Have above versions of server, libcouchbase, couchbase
- Have the server up and running
- Open python prompt
- Run below steps
- from couchbase.bucket import Bucket
- b = Bucket("couchbases://192.168.33.10/data-bucket?ssl=no_verify", password='password')
-
- b_manager = b.bucket_manager()
-
- b_manager.n1ql_index_create_primary(ignore_exists=True)
Result : It is throwing an error
"
File "/usr/local/lib/python2.7/site-packages/couchbase/bucketmanager.py", line 428, in n1ql_index_create_primary
'', defer=defer, primary=True, ignore_exists=ignore_exists)
File "/usr/local/lib/python2.7/site-packages/couchbase/bucketmanager.py", line 412, in n1ql_index_create
return IxmgmtRequest(self._cb, 'create', info, **options).execute()
File "/usr/local/lib/python2.7/site-packages/couchbase/_ixmgmt.py", line 160, in execute
return [x for x in self]
File "/usr/local/lib/python2.7/site-packages/couchbase/ixmgmt.py", line 147, in __iter_
raw_rows = self.__raw.fetch(self._mres)
couchbase.exceptions.LCB_0x2C (generated, catch: CouchbaseNetworkError, CouchbaseTransientError): <RC=0x2C[The remote host refused the connection. Is the service up?], HTTP Request failed. Examine 'objextra' for full result, Results=1, C Source=(src/http.c,140), OBJ=ViewResult<rc=0x2C[The remote host refused the connection. Is the service up?], value=None, http_status=0>>
"
Note : It works fine if I use couchbase
b = Bucket("couchbase://192.168.33.10/data-bucket", password='password')