Hi Ankit,

After the greeter_server.py started, have you observed the port 50051 been 
bound in your system? Also, have you use any sort of VPN or local proxy 
that may redirect the traffic? One more check, is there a loopback entry 
for 'localhost' in your /etc/hosts?

Lidi

On Wednesday, November 7, 2018 at 4:26:48 PM UTC-8, [email protected] 
wrote:
>
> 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 [email protected].
To post to this group, send email to [email protected].
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/9fa2e310-43dd-4106-add6-fdad7cebffdb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to