I have ubuntu server system 

#lsb_release -a
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.5 LTS
Release:        16.04
Codename:       xenial

#uname -a
Linux fmx215 4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 
UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

I am trying to run  python quick start example  step by step as explained  
on https://grpc.io/docs/quickstart/python.html  
<https://grpc.io/docs/quickstart/python.html>

greeter_server.py runs without any error and wait for greeter_client.py 

while running greeter_client.py it fails.

# python greeter_client.py 
Traceback (most recent call last):
  File "greeter_client.py", line 35, in <module>
    run()
  File "greeter_client.py", line 30, in run
    response = stub.SayHello(helloworld_pb2.HelloRequest(name='you'))
  File "/usr/local/lib/python2.7/dist-packages/grpc/_channel.py", line 533, 
in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/usr/local/lib/python2.7/dist-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 = "Socket closed"
        debug_error_string = 
"{"created":"@1541634693.250829735","description":"Error received from 
peer","file":"src/core/lib/surface/call.cc","file_line":1017,"grpc_message":"Socket
 
closed","grpc_status":14}"

https://stackoverflow.com/questions/53129263/run-grpc-python-example-must-use-sudo-command
  
<https://stackoverflow.com/questions/53129263/run-grpc-python-example-must-use-sudo-command>seem
 
to be same issue but adding "sudo" doesn't help me. I am already running 
this exercise as root

I have checked system using "netstat" and "lsof" and port 50051 is not used 
by any process.

can you help me in running this quick start example without any errors.

thank you
Ankit

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/41e25021-4de6-472f-8f9d-2d46c404b485%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to