Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Incomplete
-
3.2.0, 3.0.8
-
None
-
1
Description
Build: 7.0.2 build 6541
Python SDK version: 3.2.0
- Enable N2N encryption on a cluster with strict mode
- download client certificate and try to load data to cluster
import logging
|
import sys
|
|
import couchbase
|
from couchbase.cluster import Cluster, ClusterOptions
|
from couchbase_core.cluster import PasswordAuthenticator
|
|
logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
|
couchbase.enable_logging()
|
|
cluster = Cluster("couchbases://172.23.104.146",ClusterOptions(PasswordAuthenticator("Administrator","password",cert_path="/Users/vikaschaudhary/workspace/perf/perfrunner/root.crt")))
|
cb=cluster.bucket("bucket-1")
|
cb_coll=cb.default_collection()
|
result=cb_coll.upsert("111",{"hello"})
|
print(result)
|
error
INFO:couchbase:Initializing Couchbase logging. lcb_version=('3.2.0', 197120)
|
Traceback (most recent call last):
|
File "/Users/vikaschaudhary/workspace/perf/perfrunner/cb_sdk.py", line 11, in <module>
|
cluster = Cluster("couchbases://172.23.104.146",ClusterOptions(PasswordAuthenticator("Administrator","password",cert_path="/Users/vikaschaudhary/workspace/perf/perfrunner/root.crt")))
|
File "/Users/vikaschaudhary/workspace/perf/perfrunner/env/lib/python3.6/site-packages/couchbase/cluster.py", line 478, in __init__
|
_conntype=_LCB.LCB_TYPE_CLUSTER, **self._clusteropts)
|
File "/Users/vikaschaudhary/workspace/perf/perfrunner/env/lib/python3.6/site-packages/couchbase_core/client.py", line 142, in __init__
|
super(Client, self).__init__(*args, **kwargs)
|
couchbase.exceptions.DlopenFailedException: <RC=0x3F9[LCB_ERR_DLOPEN_FAILED (1017)], Couldn't create instance. Either bad credentials/hosts/bucket names were passed, or there was an internal error in creating the object, C Source=(src/bucket.c,1116)>Process finished with exit code 1
|
Performance testing for N2N encryption is blocked as we are not able to load data
Hi Vikas Chaudhary - I am able to connect to the cluster without any issues. This looks to be something you are running into locally on your machine.
Can you reinstall the couchbase Python SDK and provide the output of the installation process with added verbosity (see command below)?
Also, after the Python client has been installed, can you provide the output of the following? Below is what I am seeing locally.
My output is below, I would expect to see something similar.
@rpath/libcouchbase.2.dylib (compatibility version 9.0.0, current version 9.0.1)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.100.5)
/usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
/usr/local/opt/openssl@1.1/lib/libcrypto.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 905.6.0)