Clean install leads to communication error
chscholl opened this issue · 3 comments
chscholl commented
Problem
The python client cannot communicate with the database after a clean install following the tutorial on osx.
Reproducing the error
- Follow the official tutorial https://aquiladb.xyz/docs/get-started
- Execute the following code
from aquiladb import AquilaClient as acl
# create DB instance
db = acl('localhost', 50051)
# convert a sample document
# convertDocument
sample = db.convertDocument([0.1,0.2,0.3,0.4], {"hello": "world"})
# add document to AquilaDB
db.addDocuments([sample])
This leads to the following error message:
Traceback (most recent call last):
File "test_aquiladb.py", line 12, in <module>
db.addDocuments([sample])
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/aquiladb/AquilaDB.py", line 22, in addDocuments
response = self.stub.addDocuments(vecdb_pb2.addDocRequest(documents=documents_in))
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/grpc/_channel.py", line 565, in __call__
return _end_unary_response_blocking(state, call, False, None)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/grpc/_channel.py", line 467, in _end_unary_response_blocking
raise _Rendezvous(state, None, None, deadline)
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses"
debug_error_string = "{"created":"@1576143957.461971000","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3818,"referenced_errors":[{"created":"@1576143957.461968000","description":"failed to connect to all addresses","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":395,"grpc_status":14}]}"
System information
- System Version: macOS 10.14.6 (18G87)
- Kernel Version: Darwin 18.7.0
- Python 3.7.2
- docker image latest
freakeinstein commented
This is gRPC connection error. StatusCode.UNAVAILABLE does indicate that the AquilaDB python client can’t reach AquilaDB server (docker container). Can you make sure that the docker container is running? Also the port 50051 is accessible within your system?
freakeinstein commented
Here’s how to deploy the docker image as a container: https://github.com/a-mma/AquilaDB/blob/develop/README.md#usage
freakeinstein commented
No activity, closing. Please reopen if the issue persists.