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

Exception while executing migrate.py #84

Open
poojakashyap121 opened this issue Feb 19, 2020 · 0 comments
Open

Exception while executing migrate.py #84

poojakashyap121 opened this issue Feb 19, 2020 · 0 comments

Comments

@poojakashyap121
Copy link

poojakashyap121 commented Feb 19, 2020

Description

I get the exception whenever I try executing migrate.py, exactly as given on [http://dev.grakn.ai/docs/examples/phone-calls-migration-python].

Environment

  1. OS (where Grakn server runs): Mac OS 10
  2. Grakn version (and platform): Grakn Core 1.6
  3. Grakn client: client-python
  4. Other environment details:

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. install Grakn and run the server
  2. Upload the schema on grakn
  3. run the code for migrate.py for JSON formatted dataset
    as given on [http://dev.grakn.ai/docs/examples/phone-calls-migration-python]

Expected Output

Python script to execute with no errors and exceptions.

Actual Output

Traceback (most recent call last):
File "/anaconda3/lib/python3.6/site-packages/grakn/client.py", line 63, in init
open_session_response = self._stub.open(RequestBuilder.open_session(keyspace, self.credentials))
File "/anaconda3/lib/python3.6/site-packages/grpc/_channel.py", line 533, in call
return _end_unary_response_blocking(state, call, False, None)
File "/anaconda3/lib/python3.6/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 = "Connect Failed"
debug_error_string = "{"created":"@1582107100.501949000","description":"Failed to create subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":2721,"referenced_errors":[{"created":"@1582107100.501946000","description":"Pick Cancelled","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":241,"referenced_errors":[{"created":"@1582107100.501915000","description":"Connect Failed","file":"src/core/ext/filters/client_channel/subchannel.cc","file_line":689,"grpc_status":14,"referenced_errors":[{"created":"@1582107100.501898000","description":"Failed to connect to remote host: OS Error","errno":61,"file":"src/core/lib/iomgr/tcp_client_posix.cc","file_line":205,"os_error":"Connection refused","syscall":"connect","target_address":"ipv4:127.0.0.1:48555"}]}]}]}"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "migrate.py", line 223, in
build_phone_call_graph(inputs=Inputs, data_path="../../datasets/phone-calls/", keyspace_name = "phone_calls")
File "migrate.py", line 113, in build_phone_call_graph
with client.session(keyspace=keyspace_name) as session: # 2
File "/anaconda3/lib/python3.6/site-packages/grakn/client.py", line 23, in session
return Session(self.uri, keyspace, self._channel, self.credentials)
File "/anaconda3/lib/python3.6/site-packages/grakn/client.py", line 66, in init
raise GraknError('Could not obtain sessionId for keyspace "{0}", stems from: {1}'.format(keyspace, e))
grakn.exception.GraknError.GraknError: Could not obtain sessionId for keyspace "phone_calls", stems from: <_Rendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "Connect Failed"
debug_error_string = "{"created":"@1582107100.501949000","description":"Failed to create subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":2721,"referenced_errors":[{"created":"@1582107100.501946000","description":"Pick Cancelled","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":241,"referenced_errors":[{"created":"@1582107100.501915000","description":"Connect Failed","file":"src/core/ext/filters/client_channel/subchannel.cc","file_line":689,"grpc_status":14,"referenced_errors":[{"created":"@1582107100.501898000","description":"Failed to connect to remote host: OS Error","errno":61,"file":"src/core/lib/iomgr/tcp_client_posix.cc","file_line":205,"os_error":"Connection refused","syscall":"connect","target_address":"ipv4:127.0.0.1:48555"}]}]}]}"
>

Additional information

I have installed Grakn manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants