Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean install leads to communication error #41

Closed
chscholl opened this issue Dec 12, 2019 · 3 comments
Closed

Clean install leads to communication error #41

chscholl opened this issue Dec 12, 2019 · 3 comments

Comments

@chscholl
Copy link

Problem

The python client cannot communicate with the database after a clean install following the tutorial on osx.

Reproducing the error

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
Copy link
Member

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
Copy link
Member

Here’s how to deploy the docker image as a container: https://github.com/a-mma/AquilaDB/blob/develop/README.md#usage

@freakeinstein
Copy link
Member

No activity, closing. Please reopen if the issue persists.

freakeinstein pushed a commit that referenced this issue Feb 17, 2024
feat: created multi stage docker build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants