Re: [grpc-io] Re: python quick start "hello world" example fails

2018-11-30 Thread ankitpatel . edu
Thanks Srini; it worked after this particular addition to  my proxy 
settings.
we can mark this thread as resolved now

On Monday, November 19, 2018 at 4:52:17 PM UTC-8, Srini Polavarapu wrote:
>
> Your connection issue is due to proxy configuration on your machine. As 
> you can see gRPC is connecting to a proxy for localhost.
> http_connect_handshaker.cc:300] Connecting to server localhost:50051 via 
> HTTP proxy ipv4:10.19.8.225:912
>
> Try setting http_proxy= or try no_proxy=localhost.
>
> On Monday, November 12, 2018 at 1:49:22 PM UTC-8, ankitpa...@gmail.com 
> wrote:
>
> Today i tried this example on Centos 7.5 machine and i had same issue. 
>
> On Friday, November 9, 2018 at 3:54:50 PM UTC-8, Lidi Zheng wrote:
>
> Hi Ankit,
>
> Thanks for providing the trace log. I will look into it and update if I 
> found anything.
>
> Lidi Zheng
>
> On Fri, Nov 9, 2018 at 3:04 PM  wrote:
>
> here is server log; i killed server at the end by cntrl+c
>
> I1109 15:02:26.154260194   13636 ev_epoll1_linux.cc:116] grpc epoll 
> fd: 3
> D1109 15:02:26.154434159   13636 ev_posix.cc:169]Using polling 
> engine: epoll1
> D1109 15:02:26.154530558   13636 dns_resolver.cc:338]Using native 
> dns resolver
> I1109 15:02:26.155007186   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.155213454   13636 completion_queue.cc:474]
> grpc_completion_queue_create_internal(completion_type=0, polling_type=0)
> I1109 15:02:26.155388910   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.155498555   13636 server.cc:994]  
> grpc_server_create((nil), (nil))
> I1109 15:02:26.155608844   13636 server.cc:979]  
> grpc_server_register_completion_queue(server=0x10423b0, cq=0x10e4590, 
> reserved=(nil))
> I1109 15:02:26.156318834   13636 server_chttp2.cc:34]
> grpc_server_add_insecure_http2_port(server=0x10423b0, addr=[::]:50051)
> I1109 15:02:26.156495695   13636 socket_utils_common_posix.cc:310] 
> TCP_USER_TIMEOUT not supported for this platform
> I1109 15:02:26.156648253   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.156761086   13636 completion_queue.cc:474]
> grpc_completion_queue_create_internal(completion_type=0, polling_type=1)
> I1109 15:02:26.156907935   13636 server.cc:979]  
> grpc_server_register_completion_queue(server=0x10423b0, cq=0x10b5210, 
> reserved=(nil))
> I1109 15:02:26.157128476   13636 server.cc:1089]
>  grpc_server_start(server=0x10423b0)
> I1109 15:02:26.157323173   13636 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10b5210, deadline=gpr_timespec { tv_sec: 
> 1541804546, tv_nsec: 157310009, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.158580160   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.158879985   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.159027389   13636 call_details.cc:31]
>  grpc_call_details_init(cd=0x7fdfe3e076d0)
> I1109 15:02:26.159205197   13636 metadata_array.cc:29]  
>  grpc_metadata_array_init(array=0x7fdfe3dd52f0)
> I1109 15:02:26.159393998   13636 server.cc:1417]
>  grpc_server_request_call(server=0x10423b0, call=0x7fdfe3dc85e0, 
> details=0x7fdfe3e076d0, initial_metadata=0x7fdfe3dd52f0, 
> cq_bound_to_call=0x10e4590, cq_for_notification=0x10e4590, 
> tag=0x7fdfe3dd52c0)
> I1109 15:02:26.159928640   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804546, tv_nsec: 359917975, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.360656578   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804546, tv_nsec: 560638312, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.561583802   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804546, tv_nsec: 761562116, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.763345769   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804546, tv_nsec: 963336198, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.965018149   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804547, tv_nsec: 165008451, clock_type: 1 }, reserved=(nil))
> I1109 15:02:27.165804716   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804547, tv_nsec: 365797710, clock_type: 1 }, reserved=(nil))
> I1109 15:02:27.367464272   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804547, tv_nsec: 567454529, clock_type: 1 }, reserved=(nil))
> I1109 15:02:27.569251508   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804547, 

Re: [grpc-io] Re: python quick start "hello world" example fails

2018-11-30 Thread ankit patel
Thanks Srini; it worked after this particular addition to  my proxy settings.
we can mark this thread as resolved now
On Mon, Nov 19, 2018 at 4:52 PM 'Srini Polavarapu' via grpc.io
 wrote:
>
> Your connection issue is due to proxy configuration on your machine. As you 
> can see gRPC is connecting to a proxy for localhost.
> http_connect_handshaker.cc:300] Connecting to server localhost:50051 via HTTP 
> proxy ipv4:10.19.8.225:912
>
> Try setting http_proxy= or try no_proxy=localhost.
>
> On Monday, November 12, 2018 at 1:49:22 PM UTC-8, ankitpa...@gmail.com wrote:
>>
>> Today i tried this example on Centos 7.5 machine and i had same issue.
>>
>> On Friday, November 9, 2018 at 3:54:50 PM UTC-8, Lidi Zheng wrote:
>>
>> Hi Ankit,
>>
>> Thanks for providing the trace log. I will look into it and update if I 
>> found anything.
>>
>> Lidi Zheng
>>
>> On Fri, Nov 9, 2018 at 3:04 PM  wrote:
>>
>> here is server log; i killed server at the end by cntrl+c
>>
>> I1109 15:02:26.154260194   13636 ev_epoll1_linux.cc:116] grpc epoll fd: 3
>> D1109 15:02:26.154434159   13636 ev_posix.cc:169]Using polling 
>> engine: epoll1
>> D1109 15:02:26.154530558   13636 dns_resolver.cc:338]Using native 
>> dns resolver
>> I1109 15:02:26.155007186   13636 init.cc:153]grpc_init(void)
>> I1109 15:02:26.155213454   13636 completion_queue.cc:474]
>> grpc_completion_queue_create_internal(completion_type=0, polling_type=0)
>> I1109 15:02:26.155388910   13636 init.cc:153]grpc_init(void)
>> I1109 15:02:26.155498555   13636 server.cc:994]  
>> grpc_server_create((nil), (nil))
>> I1109 15:02:26.155608844   13636 server.cc:979]  
>> grpc_server_register_completion_queue(server=0x10423b0, cq=0x10e4590, 
>> reserved=(nil))
>> I1109 15:02:26.156318834   13636 server_chttp2.cc:34]
>> grpc_server_add_insecure_http2_port(server=0x10423b0, addr=[::]:50051)
>> I1109 15:02:26.156495695   13636 socket_utils_common_posix.cc:310] 
>> TCP_USER_TIMEOUT not supported for this platform
>> I1109 15:02:26.156648253   13636 init.cc:153]grpc_init(void)
>> I1109 15:02:26.156761086   13636 completion_queue.cc:474]
>> grpc_completion_queue_create_internal(completion_type=0, polling_type=1)
>> I1109 15:02:26.156907935   13636 server.cc:979]  
>> grpc_server_register_completion_queue(server=0x10423b0, cq=0x10b5210, 
>> reserved=(nil))
>> I1109 15:02:26.157128476   13636 server.cc:1089] 
>> grpc_server_start(server=0x10423b0)
>> I1109 15:02:26.157323173   13636 completion_queue.cc:956]
>> grpc_completion_queue_next(cq=0x10b5210, deadline=gpr_timespec { tv_sec: 
>> 1541804546, tv_nsec: 157310009, clock_type: 1 }, reserved=(nil))
>> I1109 15:02:26.158580160   13636 init.cc:153]grpc_init(void)
>> I1109 15:02:26.158879985   13636 init.cc:153]grpc_init(void)
>> I1109 15:02:26.159027389   13636 call_details.cc:31] 
>> grpc_call_details_init(cd=0x7fdfe3e076d0)
>> I1109 15:02:26.159205197   13636 metadata_array.cc:29]   
>> grpc_metadata_array_init(array=0x7fdfe3dd52f0)
>> I1109 15:02:26.159393998   13636 server.cc:1417] 
>> grpc_server_request_call(server=0x10423b0, call=0x7fdfe3dc85e0, 
>> details=0x7fdfe3e076d0, initial_metadata=0x7fdfe3dd52f0, 
>> cq_bound_to_call=0x10e4590, cq_for_notification=0x10e4590, 
>> tag=0x7fdfe3dd52c0)
>> I1109 15:02:26.159928640   13641 completion_queue.cc:956]
>> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
>> 1541804546, tv_nsec: 359917975, clock_type: 1 }, reserved=(nil))
>> I1109 15:02:26.360656578   13641 completion_queue.cc:956]
>> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
>> 1541804546, tv_nsec: 560638312, clock_type: 1 }, reserved=(nil))
>> I1109 15:02:26.561583802   13641 completion_queue.cc:956]
>> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
>> 1541804546, tv_nsec: 761562116, clock_type: 1 }, reserved=(nil))
>> I1109 15:02:26.763345769   13641 completion_queue.cc:956]
>> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
>> 1541804546, tv_nsec: 963336198, clock_type: 1 }, reserved=(nil))
>> I1109 15:02:26.965018149   13641 completion_queue.cc:956]
>> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
>> 1541804547, tv_nsec: 165008451, clock_type: 1 }, reserved=(nil))
>> I1109 15:02:27.165804716   13641 completion_queue.cc:956]
>> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
>> 1541804547, tv_nsec: 365797710, clock_type: 1 }, reserved=(nil))
>> I1109 15:02:27.367464272   13641 completion_queue.cc:956]
>> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
>> 1541804547, tv_nsec: 567454529, clock_type: 1 }, reserved=(nil))
>> I1109 15:02:27.569251508   13641 completion_queue.cc:956]
>> grpc_completion_queue_next(cq=0x10e4590, 

Re: [grpc-io] Re: python quick start "hello world" example fails

2018-11-19 Thread 'Srini Polavarapu' via grpc.io
Your connection issue is due to proxy configuration on your machine. As you 
can see gRPC is connecting to a proxy for localhost.
http_connect_handshaker.cc:300] Connecting to server localhost:50051 via 
HTTP proxy ipv4:10.19.8.225:912

Try setting http_proxy= or try no_proxy=localhost.

On Monday, November 12, 2018 at 1:49:22 PM UTC-8, ankitpa...@gmail.com 
wrote:
>
> Today i tried this example on Centos 7.5 machine and i had same issue. 
>
> On Friday, November 9, 2018 at 3:54:50 PM UTC-8, Lidi Zheng wrote:
>
> Hi Ankit,
>
> Thanks for providing the trace log. I will look into it and update if I 
> found anything.
>
> Lidi Zheng
>
> On Fri, Nov 9, 2018 at 3:04 PM  wrote:
>
> here is server log; i killed server at the end by cntrl+c
>
> I1109 15:02:26.154260194   13636 ev_epoll1_linux.cc:116] grpc epoll 
> fd: 3
> D1109 15:02:26.154434159   13636 ev_posix.cc:169]Using polling 
> engine: epoll1
> D1109 15:02:26.154530558   13636 dns_resolver.cc:338]Using native 
> dns resolver
> I1109 15:02:26.155007186   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.155213454   13636 completion_queue.cc:474]
> grpc_completion_queue_create_internal(completion_type=0, polling_type=0)
> I1109 15:02:26.155388910   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.155498555   13636 server.cc:994]  
> grpc_server_create((nil), (nil))
> I1109 15:02:26.155608844   13636 server.cc:979]  
> grpc_server_register_completion_queue(server=0x10423b0, cq=0x10e4590, 
> reserved=(nil))
> I1109 15:02:26.156318834   13636 server_chttp2.cc:34]
> grpc_server_add_insecure_http2_port(server=0x10423b0, addr=[::]:50051)
> I1109 15:02:26.156495695   13636 socket_utils_common_posix.cc:310] 
> TCP_USER_TIMEOUT not supported for this platform
> I1109 15:02:26.156648253   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.156761086   13636 completion_queue.cc:474]
> grpc_completion_queue_create_internal(completion_type=0, polling_type=1)
> I1109 15:02:26.156907935   13636 server.cc:979]  
> grpc_server_register_completion_queue(server=0x10423b0, cq=0x10b5210, 
> reserved=(nil))
> I1109 15:02:26.157128476   13636 server.cc:1089]
>  grpc_server_start(server=0x10423b0)
> I1109 15:02:26.157323173   13636 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10b5210, deadline=gpr_timespec { tv_sec: 
> 1541804546, tv_nsec: 157310009, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.158580160   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.158879985   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.159027389   13636 call_details.cc:31]
>  grpc_call_details_init(cd=0x7fdfe3e076d0)
> I1109 15:02:26.159205197   13636 metadata_array.cc:29]  
>  grpc_metadata_array_init(array=0x7fdfe3dd52f0)
> I1109 15:02:26.159393998   13636 server.cc:1417]
>  grpc_server_request_call(server=0x10423b0, call=0x7fdfe3dc85e0, 
> details=0x7fdfe3e076d0, initial_metadata=0x7fdfe3dd52f0, 
> cq_bound_to_call=0x10e4590, cq_for_notification=0x10e4590, 
> tag=0x7fdfe3dd52c0)
> I1109 15:02:26.159928640   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804546, tv_nsec: 359917975, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.360656578   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804546, tv_nsec: 560638312, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.561583802   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804546, tv_nsec: 761562116, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.763345769   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804546, tv_nsec: 963336198, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.965018149   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804547, tv_nsec: 165008451, clock_type: 1 }, reserved=(nil))
> I1109 15:02:27.165804716   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804547, tv_nsec: 365797710, clock_type: 1 }, reserved=(nil))
> I1109 15:02:27.367464272   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804547, tv_nsec: 567454529, clock_type: 1 }, reserved=(nil))
> I1109 15:02:27.569251508   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804547, tv_nsec: 769241829, clock_type: 1 }, reserved=(nil))
> I1109 15:02:27.771057300   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804547, tv_nsec: 

Re: [grpc-io] Re: python quick start "hello world" example fails

2018-11-12 Thread ankitpatel . edu
Today i tried this example on Centos 7.5 machine and i had same issue. 

On Friday, November 9, 2018 at 3:54:50 PM UTC-8, Lidi Zheng wrote:
>
> Hi Ankit,
>
> Thanks for providing the trace log. I will look into it and update if I 
> found anything.
>
> Lidi Zheng
>
> On Fri, Nov 9, 2018 at 3:04 PM > wrote:
>
> here is server log; i killed server at the end by cntrl+c
>
> I1109 15:02:26.154260194   13636 ev_epoll1_linux.cc:116] grpc epoll 
> fd: 3
> D1109 15:02:26.154434159   13636 ev_posix.cc:169]Using polling 
> engine: epoll1
> D1109 15:02:26.154530558   13636 dns_resolver.cc:338]Using native 
> dns resolver
> I1109 15:02:26.155007186   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.155213454   13636 completion_queue.cc:474]
> grpc_completion_queue_create_internal(completion_type=0, polling_type=0)
> I1109 15:02:26.155388910   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.155498555   13636 server.cc:994]  
> grpc_server_create((nil), (nil))
> I1109 15:02:26.155608844   13636 server.cc:979]  
> grpc_server_register_completion_queue(server=0x10423b0, cq=0x10e4590, 
> reserved=(nil))
> I1109 15:02:26.156318834   13636 server_chttp2.cc:34]
> grpc_server_add_insecure_http2_port(server=0x10423b0, addr=[::]:50051)
> I1109 15:02:26.156495695   13636 socket_utils_common_posix.cc:310] 
> TCP_USER_TIMEOUT not supported for this platform
> I1109 15:02:26.156648253   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.156761086   13636 completion_queue.cc:474]
> grpc_completion_queue_create_internal(completion_type=0, polling_type=1)
> I1109 15:02:26.156907935   13636 server.cc:979]  
> grpc_server_register_completion_queue(server=0x10423b0, cq=0x10b5210, 
> reserved=(nil))
> I1109 15:02:26.157128476   13636 server.cc:1089]
>  grpc_server_start(server=0x10423b0)
> I1109 15:02:26.157323173   13636 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10b5210, deadline=gpr_timespec { tv_sec: 
> 1541804546, tv_nsec: 157310009, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.158580160   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.158879985   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.159027389   13636 call_details.cc:31]
>  grpc_call_details_init(cd=0x7fdfe3e076d0)
> I1109 15:02:26.159205197   13636 metadata_array.cc:29]  
>  grpc_metadata_array_init(array=0x7fdfe3dd52f0)
> I1109 15:02:26.159393998   13636 server.cc:1417]
>  grpc_server_request_call(server=0x10423b0, call=0x7fdfe3dc85e0, 
> details=0x7fdfe3e076d0, initial_metadata=0x7fdfe3dd52f0, 
> cq_bound_to_call=0x10e4590, cq_for_notification=0x10e4590, 
> tag=0x7fdfe3dd52c0)
> I1109 15:02:26.159928640   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804546, tv_nsec: 359917975, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.360656578   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804546, tv_nsec: 560638312, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.561583802   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804546, tv_nsec: 761562116, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.763345769   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804546, tv_nsec: 963336198, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.965018149   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804547, tv_nsec: 165008451, clock_type: 1 }, reserved=(nil))
> I1109 15:02:27.165804716   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804547, tv_nsec: 365797710, clock_type: 1 }, reserved=(nil))
> I1109 15:02:27.367464272   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804547, tv_nsec: 567454529, clock_type: 1 }, reserved=(nil))
> I1109 15:02:27.569251508   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804547, tv_nsec: 769241829, clock_type: 1 }, reserved=(nil))
> I1109 15:02:27.771057300   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804547, tv_nsec: 971047705, clock_type: 1 }, reserved=(nil))
> I1109 15:02:27.971863679   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
> 1541804548, tv_nsec: 171853865, clock_type: 1 }, reserved=(nil))
> I1109 15:02:28.172670779   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, 

Re: [grpc-io] Re: python quick start "hello world" example fails

2018-11-09 Thread 'Lidi Zheng' via grpc.io
Hi Ankit,

Thanks for providing the trace log. I will look into it and update if I
found anything.

Lidi Zheng

On Fri, Nov 9, 2018 at 3:04 PM  wrote:

> here is server log; i killed server at the end by cntrl+c
>
> I1109 15:02:26.154260194   13636 ev_epoll1_linux.cc:116] grpc epoll
> fd: 3
> D1109 15:02:26.154434159   13636 ev_posix.cc:169]Using polling
> engine: epoll1
> D1109 15:02:26.154530558   13636 dns_resolver.cc:338]Using native
> dns resolver
> I1109 15:02:26.155007186   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.155213454   13636 completion_queue.cc:474]
> grpc_completion_queue_create_internal(completion_type=0, polling_type=0)
> I1109 15:02:26.155388910   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.155498555   13636 server.cc:994]
> grpc_server_create((nil), (nil))
> I1109 15:02:26.155608844   13636 server.cc:979]
> grpc_server_register_completion_queue(server=0x10423b0, cq=0x10e4590,
> reserved=(nil))
> I1109 15:02:26.156318834   13636 server_chttp2.cc:34]
> grpc_server_add_insecure_http2_port(server=0x10423b0, addr=[::]:50051)
> I1109 15:02:26.156495695   13636 socket_utils_common_posix.cc:310]
> TCP_USER_TIMEOUT not supported for this platform
> I1109 15:02:26.156648253   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.156761086   13636 completion_queue.cc:474]
> grpc_completion_queue_create_internal(completion_type=0, polling_type=1)
> I1109 15:02:26.156907935   13636 server.cc:979]
> grpc_server_register_completion_queue(server=0x10423b0, cq=0x10b5210,
> reserved=(nil))
> I1109 15:02:26.157128476   13636 server.cc:1089]
>  grpc_server_start(server=0x10423b0)
> I1109 15:02:26.157323173   13636 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10b5210, deadline=gpr_timespec { tv_sec:
> 1541804546, tv_nsec: 157310009, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.158580160   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.158879985   13636 init.cc:153]
> grpc_init(void)
> I1109 15:02:26.159027389   13636 call_details.cc:31]
>  grpc_call_details_init(cd=0x7fdfe3e076d0)
> I1109 15:02:26.159205197   13636 metadata_array.cc:29]
>  grpc_metadata_array_init(array=0x7fdfe3dd52f0)
> I1109 15:02:26.159393998   13636 server.cc:1417]
>  grpc_server_request_call(server=0x10423b0, call=0x7fdfe3dc85e0,
> details=0x7fdfe3e076d0, initial_metadata=0x7fdfe3dd52f0,
> cq_bound_to_call=0x10e4590, cq_for_notification=0x10e4590,
> tag=0x7fdfe3dd52c0)
> I1109 15:02:26.159928640   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec:
> 1541804546, tv_nsec: 359917975, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.360656578   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec:
> 1541804546, tv_nsec: 560638312, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.561583802   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec:
> 1541804546, tv_nsec: 761562116, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.763345769   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec:
> 1541804546, tv_nsec: 963336198, clock_type: 1 }, reserved=(nil))
> I1109 15:02:26.965018149   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec:
> 1541804547, tv_nsec: 165008451, clock_type: 1 }, reserved=(nil))
> I1109 15:02:27.165804716   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec:
> 1541804547, tv_nsec: 365797710, clock_type: 1 }, reserved=(nil))
> I1109 15:02:27.367464272   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec:
> 1541804547, tv_nsec: 567454529, clock_type: 1 }, reserved=(nil))
> I1109 15:02:27.569251508   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec:
> 1541804547, tv_nsec: 769241829, clock_type: 1 }, reserved=(nil))
> I1109 15:02:27.771057300   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec:
> 1541804547, tv_nsec: 971047705, clock_type: 1 }, reserved=(nil))
> I1109 15:02:27.971863679   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec:
> 1541804548, tv_nsec: 171853865, clock_type: 1 }, reserved=(nil))
> I1109 15:02:28.172670779   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec:
> 1541804548, tv_nsec: 372661066, clock_type: 1 }, reserved=(nil))
> I1109 15:02:28.374448318   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec:
> 1541804548, tv_nsec: 574438418, clock_type: 1 }, reserved=(nil))
> I1109 15:02:28.576239230   13641 completion_queue.cc:956]
> grpc_completion_queue_next(cq=0x10e4590, 

[grpc-io] Re: python quick start "hello world" example fails

2018-11-09 Thread ankitpatel . edu
here is server log; i killed server at the end by cntrl+c

I1109 15:02:26.154260194   13636 ev_epoll1_linux.cc:116] grpc epoll fd: 
3
D1109 15:02:26.154434159   13636 ev_posix.cc:169]Using polling 
engine: epoll1
D1109 15:02:26.154530558   13636 dns_resolver.cc:338]Using native 
dns resolver
I1109 15:02:26.155007186   13636 init.cc:153]grpc_init(void)
I1109 15:02:26.155213454   13636 completion_queue.cc:474]
grpc_completion_queue_create_internal(completion_type=0, polling_type=0)
I1109 15:02:26.155388910   13636 init.cc:153]grpc_init(void)
I1109 15:02:26.155498555   13636 server.cc:994]  
grpc_server_create((nil), (nil))
I1109 15:02:26.155608844   13636 server.cc:979]  
grpc_server_register_completion_queue(server=0x10423b0, cq=0x10e4590, 
reserved=(nil))
I1109 15:02:26.156318834   13636 server_chttp2.cc:34]
grpc_server_add_insecure_http2_port(server=0x10423b0, addr=[::]:50051)
I1109 15:02:26.156495695   13636 socket_utils_common_posix.cc:310] 
TCP_USER_TIMEOUT not supported for this platform
I1109 15:02:26.156648253   13636 init.cc:153]grpc_init(void)
I1109 15:02:26.156761086   13636 completion_queue.cc:474]
grpc_completion_queue_create_internal(completion_type=0, polling_type=1)
I1109 15:02:26.156907935   13636 server.cc:979]  
grpc_server_register_completion_queue(server=0x10423b0, cq=0x10b5210, 
reserved=(nil))
I1109 15:02:26.157128476   13636 server.cc:1089]
 grpc_server_start(server=0x10423b0)
I1109 15:02:26.157323173   13636 completion_queue.cc:956]
grpc_completion_queue_next(cq=0x10b5210, deadline=gpr_timespec { tv_sec: 
1541804546, tv_nsec: 157310009, clock_type: 1 }, reserved=(nil))
I1109 15:02:26.158580160   13636 init.cc:153]grpc_init(void)
I1109 15:02:26.158879985   13636 init.cc:153]grpc_init(void)
I1109 15:02:26.159027389   13636 call_details.cc:31]
 grpc_call_details_init(cd=0x7fdfe3e076d0)
I1109 15:02:26.159205197   13636 metadata_array.cc:29]  
 grpc_metadata_array_init(array=0x7fdfe3dd52f0)
I1109 15:02:26.159393998   13636 server.cc:1417]
 grpc_server_request_call(server=0x10423b0, call=0x7fdfe3dc85e0, 
details=0x7fdfe3e076d0, initial_metadata=0x7fdfe3dd52f0, 
cq_bound_to_call=0x10e4590, cq_for_notification=0x10e4590, 
tag=0x7fdfe3dd52c0)
I1109 15:02:26.159928640   13641 completion_queue.cc:956]
grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
1541804546, tv_nsec: 359917975, clock_type: 1 }, reserved=(nil))
I1109 15:02:26.360656578   13641 completion_queue.cc:956]
grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
1541804546, tv_nsec: 560638312, clock_type: 1 }, reserved=(nil))
I1109 15:02:26.561583802   13641 completion_queue.cc:956]
grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
1541804546, tv_nsec: 761562116, clock_type: 1 }, reserved=(nil))
I1109 15:02:26.763345769   13641 completion_queue.cc:956]
grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
1541804546, tv_nsec: 963336198, clock_type: 1 }, reserved=(nil))
I1109 15:02:26.965018149   13641 completion_queue.cc:956]
grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
1541804547, tv_nsec: 165008451, clock_type: 1 }, reserved=(nil))
I1109 15:02:27.165804716   13641 completion_queue.cc:956]
grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
1541804547, tv_nsec: 365797710, clock_type: 1 }, reserved=(nil))
I1109 15:02:27.367464272   13641 completion_queue.cc:956]
grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
1541804547, tv_nsec: 567454529, clock_type: 1 }, reserved=(nil))
I1109 15:02:27.569251508   13641 completion_queue.cc:956]
grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
1541804547, tv_nsec: 769241829, clock_type: 1 }, reserved=(nil))
I1109 15:02:27.771057300   13641 completion_queue.cc:956]
grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
1541804547, tv_nsec: 971047705, clock_type: 1 }, reserved=(nil))
I1109 15:02:27.971863679   13641 completion_queue.cc:956]
grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
1541804548, tv_nsec: 171853865, clock_type: 1 }, reserved=(nil))
I1109 15:02:28.172670779   13641 completion_queue.cc:956]
grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
1541804548, tv_nsec: 372661066, clock_type: 1 }, reserved=(nil))
I1109 15:02:28.374448318   13641 completion_queue.cc:956]
grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
1541804548, tv_nsec: 574438418, clock_type: 1 }, reserved=(nil))
I1109 15:02:28.576239230   13641 completion_queue.cc:956]
grpc_completion_queue_next(cq=0x10e4590, deadline=gpr_timespec { tv_sec: 
1541804548, tv_nsec: 776229414, clock_type: 1 }, 

[grpc-io] Re: python quick start "hello world" example fails

2018-11-09 Thread ankitpatel . edu
Hi Lidi

here is the log from client side

I1109 14:55:12.420854517   13623 ev_epoll1_linux.cc:116] grpc epoll fd: 
3
D1109 14:55:12.420880472   13623 ev_posix.cc:169]Using polling 
engine: epoll1
D1109 14:55:12.421021052   13623 dns_resolver.cc:338]Using native 
dns resolver
I1109 14:55:12.421063056   13623 init.cc:153]grpc_init(void)
I1109 14:55:12.421084744   13623 channel_create.cc:93]  
 grpc_insecure_channel_create(target=localhost:50051, args=0x7f7ea7310f20, 
reserved=(nil))
I1109 14:55:12.421114130   13623 completion_queue.cc:474]
grpc_completion_queue_create_internal(completion_type=0, polling_type=0)
I1109 14:55:12.421117020   13623 completion_queue.cc:474]
grpc_completion_queue_create_internal(completion_type=0, polling_type=0)
I1109 14:55:12.421185398   13623 completion_queue.cc:474]
grpc_completion_queue_create_internal(completion_type=0, polling_type=0)
I1109 14:55:12.421216138   13623 metadata_array.cc:29]  
 grpc_metadata_array_init(array=0x7f7ea7957bc8)
I1109 14:55:12.421219223   13623 metadata_array.cc:29]  
 grpc_metadata_array_init(array=0x7f7ea72c30c0)
I1109 14:55:12.421222059   13623 call.cc:1883]  
 grpc_call_start_batch(call=0xf55bb0, ops=0xeeab10, nops=6, 
tag=0x7f7ea7310ef0, reserved=(nil))
I1109 14:55:12.421226029   13623 call.cc:1488]   ops[0]: 
SEND_INITIAL_METADATA(nil)
I1109 14:55:12.421228617   13623 call.cc:1488]   ops[1]: 
SEND_MESSAGE ptr=0xd88d20
I1109 14:55:12.421230879   13623 call.cc:1488]   ops[2]: 
SEND_CLOSE_FROM_CLIENT
I1109 14:55:12.421233318   13623 call.cc:1488]   ops[3]: 
RECV_INITIAL_METADATA ptr=0x7f7ea7957bc8
I1109 14:55:12.421235738   13623 call.cc:1488]   ops[4]: 
RECV_MESSAGE ptr=0x7f7ea72a1820
I1109 14:55:12.421239091   13623 call.cc:1488]   ops[5]: 
RECV_STATUS_ON_CLIENT metadata=0x7f7ea72c30c0 status=0x7f7ea72c30d8 
details=0x7f7ea72c30e0
I1109 14:55:12.421251240   13623 call.cc:598]
OP[client-channel:0xf56540]:  SEND_INITIAL_METADATA{key=3a 70 61 74 68 
':path' value=2f 68 65 6c 6c 6f 77 6f 72 6c 64 2e 47 72 65 65 74 65 72 2f 
53 61 79 48 65 6c 6c 6f '/helloworld.Greeter/SayHello'} 
SEND_MESSAGE:flags=0x:len=5 SEND_TRAILING_METADATA{} 
RECV_INITIAL_METADATA RECV_MESSAGE RECV_TRAILING_METADATA
D1109 14:55:12.421255825   13623 dns_resolver.cc:279]Start 
resolving.
I1109 14:55:12.421271461   13623 completion_queue.cc:956]
grpc_completion_queue_next(cq=0xd8e220, deadline=gpr_timespec { tv_sec: 
1541804112, tv_nsec: 621269667, clock_type: 1 }, reserved=(nil))
I1109 14:55:12.423570682   13625 connectivity_state.cc:92]   CONWATCH: 
0x7f7e98002ce8 pick_first: get IDLE
I1109 14:55:12.423604043   13625 connectivity_state.cc:116]  CONWATCH: 
0x7f7e98002ce8 pick_first: from IDLE [cur=IDLE] notify=0x7f7e98002388
I1109 14:55:12.423618199   13625 connectivity_state.cc:164]  SET: 0xf27bc8 
client_channel: IDLE --> IDLE [resolver_result] error=(nil) "No Error"
I1109 14:55:12.423629677   13625 connectivity_state.cc:92]   CONWATCH: 
0x7f7e98003c18 subchannel: get IDLE
I1109 14:55:12.423638866   13625 connectivity_state.cc:116]  CONWATCH: 
0x7f7e98003c18 subchannel: from IDLE [cur=IDLE] notify=0x7f7e98003308
I1109 14:55:12.423649626   13625 connectivity_state.cc:164]  SET: 
0x7f7e98003c18 subchannel: IDLE --> CONNECTING [connecting] error=(nil) "No 
Error"
I1109 14:55:12.423658089   13625 connectivity_state.cc:190]  NOTIFY: 
0x7f7e98003c18 subchannel: 0x7f7e98003308
I1109 14:55:12.423736694   13625 socket_utils_common_posix.cc:310] 
TCP_USER_TIMEOUT not supported for this platform
I1109 14:55:12.423819670   13625 connectivity_state.cc:164]  SET: 
0x7f7e98002ce8 pick_first: IDLE --> CONNECTING [connecting_changed] 
error=(nil) "No Error"
I1109 14:55:12.423830816   13625 connectivity_state.cc:190]  NOTIFY: 
0x7f7e98002ce8 pick_first: 0x7f7e98002388
I1109 14:55:12.423840274   13625 connectivity_state.cc:116]  CONWATCH: 
0x7f7e98003c18 subchannel: from CONNECTING [cur=CONNECTING] 
notify=0x7f7e98003308
I1109 14:55:12.423851528   13625 connectivity_state.cc:164]  SET: 0xf27bc8 
client_channel: IDLE --> CONNECTING [lb_changed] error=(nil) "No Error"
I1109 14:55:12.423895462   13625 connectivity_state.cc:116]  CONWATCH: 
0x7f7e98002ce8 pick_first: from CONNECTING [cur=CONNECTING] 
notify=0x7f7e98002948
I1109 14:55:12.424229996   13623 http_connect_handshaker.cc:300] Connecting 
to server localhost:50051 via HTTP proxy ipv4:10.19.8.225:912
I1109 14:55:12.425315940   13623 chttp2_transport.cc:850]W:0xf5a630 
CLIENT state IDLE -> WRITING [TRANSPORT_FLOW_CONTROL]
I1109 14:55:12.425345412   13623 chttp2_transport.cc:850]W:0xf5a630 
CLIENT state WRITING -> WRITING+MORE [INITIAL_WRITE]
I1109 14:55:12.425390982   13623 subchannel.cc:656]  New connected 
subchannel at 0xeea6b0 for subchannel 0x7f7e98003b40
I1109 14:55:12.425407600   13623 chttp2_transport.cc:1864]  
 

[grpc-io] Re: python quick start "hello world" example fails

2018-11-09 Thread lidiz via grpc.io
Hi Ankit,

To define variables in separate line, you need to export them to the whole 
environment like this:

$ export GRPC_VERBOSITY=DEBUG
$ 
export GRPC_TRACE=api,channel,call_error,connectivity_state,http,server_channel

Then you can run the examples:

$ python greeter_client.py
$ python greeter_server.py

The debug logs will go out through standard error output, which will print 
on your terminal.

Lidi Zheng

On Friday, November 9, 2018 at 1:40:23 PM UTC-8, ankitpa...@gmail.com wrote:
>
> Hi Lidi 
>
> how do i get debug logs? what location they are saved at? 
> I have done following and  i dont see any extra information on stdout
>
> #server side terminal
> root@fmx216:~/gRPC/grpc/examples/python/helloworld# GRPC_VERBOSITY=DEBUG 
> root@fmx216:~/gRPC/grpc/examples/python/helloworld# 
> GRPC_TRACE=api,channel,call_error,connectivity_state,http,server_channel 
> root@fmx216:~/gRPC/grpc/examples/python/helloworld# python 
> greeter_server.py
>
> #client side terminal
> root@fmx216:~/gRPC/grpc/examples/python/helloworld# GRPC_VERBOSITY=DEBUG
> root@fmx216:~/gRPC/grpc/examples/python/helloworld# 
> GRPC_TRACE=api,channel,call_error,connectivity_state,http,server_channel
> root@fmx216:~/gRPC/grpc/examples/python/helloworld# python 
> greeter_client.py
> Traceback (most recent call last):
>   File "greeter_client.py", line 35, in 
> 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":"@1541799229.437917379","description":"Error received from 
> peer","file":"src/core/lib/surface/call.cc","file_line":1017,"grpc_message":"Socket
>  
> closed","grpc_status":14}"
> >
> root@fmx216:~/gRPC/grpc/examples/python/helloworld# 
>
> thanks
> Ankit
>
> On Friday, November 9, 2018 at 11:52:45 AM UTC-8, li...@google.com wrote:
>>
>> Hi Ankit,
>>
>> There is one more thing I would like to try. Can you provide the detailed 
>> tracing log for the example server and client?
>> The trace and debug logs can be turned on by setting environment 
>> variables.
>>
>> $ GRPC_VERBOSITY=DEBUG 
>> GRPC_TRACE=api,channel,call_error,connectivity_state,http,server_channel 
>> python greeter_server.py
>> $ GRPC_VERBOSITY=DEBUG 
>> GRPC_TRACE=api,channel,call_error,connectivity_state,http,server_channel 
>> python greeter_client.py
>>
>> Thank you for helping us solve this issue.
>>
>> Lidi Zheng
>>
>> On Friday, November 9, 2018 at 10:00:33 AM UTC-8, ankitpa...@gmail.com 
>> wrote:
>>>
>>> Hi Lidi 
>>>
>>> $ python -m SimpleHTTPServer 8000
>>> $ curl http://localhost:8000  *Works.*
>>>
>>>
>>> $ nc -6 -l 1234  # in one terminal
>>> $ echo 'Hello' | nc localhost 1234 # in another terminal
>>> # The 'Hello' should appear in the first terminal  *Works.*
>>>
>>>
>>> # Check your gRPC Python version
>>> $ pip show grpcio
>>>
>>> ---
>>> Metadata-Version: 2.1
>>> Name: grpcio
>>> Version: 1.16.0
>>> Summary: HTTP/2-based RPC framework
>>> Home-page: https://grpc.io
>>> Author: The gRPC Authors
>>> Author-email: grp...@googlegroups.com
>>> Installer: pip
>>> License: Apache License 2.0
>>> Location: /usr/local/lib/python2.7/dist-packages
>>> Requires: six, enum34, futures
>>> Classifiers:
>>>   Development Status :: 5 - Production/Stable
>>>   Programming Language :: Python
>>>   Programming Language :: Python :: 2
>>>   Programming Language :: Python :: 2.7
>>>   Programming Language :: Python :: 3
>>>   Programming Language :: Python :: 3.4
>>>   Programming Language :: Python :: 3.5
>>>   Programming Language :: Python :: 3.6
>>>   License :: OSI Approved :: Apache Software License
>>>
>>> i am still not able to make it work :(
>>>
>>> thanks
>>> Ankit
>>>
>>>
>>> On Thursday, November 8, 2018 at 2:50:56 PM UTC-8, li...@google.com 
>>> wrote:

 Hi Ankit,

 Sorry to hear that none of the fixes work for you. If the server is 
 started and able to bind tcp port, there is a great chance that this might 
 due to some local network setting.

 To detect whether there is a local network issue or gRPC Python issue, 
 can you try to start other applications that bind a port and try to 
 communicate with it?

 For example, you can try:

 $ python -m SimpleHTTPServer 8000
 $ curl http://localhost:8000
 # Or visit this address in browser, it should show up a valid HTML web 
 page

 or

 $ nc -6 -l 1234  # in one 

[grpc-io] Re: python quick start "hello world" example fails

2018-11-09 Thread ankitpatel . edu
Hi Lidi 

how do i get debug logs? what location they are saved at? 
I have done following and  i dont see any extra information on stdout

#server side terminal
root@fmx216:~/gRPC/grpc/examples/python/helloworld# GRPC_VERBOSITY=DEBUG 
root@fmx216:~/gRPC/grpc/examples/python/helloworld# 
GRPC_TRACE=api,channel,call_error,connectivity_state,http,server_channel 
root@fmx216:~/gRPC/grpc/examples/python/helloworld# python greeter_server.py

#client side terminal
root@fmx216:~/gRPC/grpc/examples/python/helloworld# GRPC_VERBOSITY=DEBUG
root@fmx216:~/gRPC/grpc/examples/python/helloworld# 
GRPC_TRACE=api,channel,call_error,connectivity_state,http,server_channel
root@fmx216:~/gRPC/grpc/examples/python/helloworld# python greeter_client.py
Traceback (most recent call last):
  File "greeter_client.py", line 35, in 
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":"@1541799229.437917379","description":"Error received from 
peer","file":"src/core/lib/surface/call.cc","file_line":1017,"grpc_message":"Socket
 
closed","grpc_status":14}"
>
root@fmx216:~/gRPC/grpc/examples/python/helloworld# 

thanks
Ankit

On Friday, November 9, 2018 at 11:52:45 AM UTC-8, li...@google.com wrote:
>
> Hi Ankit,
>
> There is one more thing I would like to try. Can you provide the detailed 
> tracing log for the example server and client?
> The trace and debug logs can be turned on by setting environment variables.
>
> $ GRPC_VERBOSITY=DEBUG 
> GRPC_TRACE=api,channel,call_error,connectivity_state,http,server_channel 
> python greeter_server.py
> $ GRPC_VERBOSITY=DEBUG 
> GRPC_TRACE=api,channel,call_error,connectivity_state,http,server_channel 
> python greeter_client.py
>
> Thank you for helping us solve this issue.
>
> Lidi Zheng
>
> On Friday, November 9, 2018 at 10:00:33 AM UTC-8, ankitpa...@gmail.com 
> wrote:
>>
>> Hi Lidi 
>>
>> $ python -m SimpleHTTPServer 8000
>> $ curl http://localhost:8000  *Works.*
>>
>>
>> $ nc -6 -l 1234  # in one terminal
>> $ echo 'Hello' | nc localhost 1234 # in another terminal
>> # The 'Hello' should appear in the first terminal  *Works.*
>>
>>
>> # Check your gRPC Python version
>> $ pip show grpcio
>>
>> ---
>> Metadata-Version: 2.1
>> Name: grpcio
>> Version: 1.16.0
>> Summary: HTTP/2-based RPC framework
>> Home-page: https://grpc.io
>> Author: The gRPC Authors
>> Author-email: grp...@googlegroups.com
>> Installer: pip
>> License: Apache License 2.0
>> Location: /usr/local/lib/python2.7/dist-packages
>> Requires: six, enum34, futures
>> Classifiers:
>>   Development Status :: 5 - Production/Stable
>>   Programming Language :: Python
>>   Programming Language :: Python :: 2
>>   Programming Language :: Python :: 2.7
>>   Programming Language :: Python :: 3
>>   Programming Language :: Python :: 3.4
>>   Programming Language :: Python :: 3.5
>>   Programming Language :: Python :: 3.6
>>   License :: OSI Approved :: Apache Software License
>>
>> i am still not able to make it work :(
>>
>> thanks
>> Ankit
>>
>>
>> On Thursday, November 8, 2018 at 2:50:56 PM UTC-8, li...@google.com 
>> wrote:
>>>
>>> Hi Ankit,
>>>
>>> Sorry to hear that none of the fixes work for you. If the server is 
>>> started and able to bind tcp port, there is a great chance that this might 
>>> due to some local network setting.
>>>
>>> To detect whether there is a local network issue or gRPC Python issue, 
>>> can you try to start other applications that bind a port and try to 
>>> communicate with it?
>>>
>>> For example, you can try:
>>>
>>> $ python -m SimpleHTTPServer 8000
>>> $ curl http://localhost:8000
>>> # Or visit this address in browser, it should show up a valid HTML web 
>>> page
>>>
>>> or
>>>
>>> $ nc -6 -l 1234  # in one terminal
>>> $ echo 'Hello' | nc localhost 1234 # in another terminal
>>> # The 'Hello' should appear in the first terminal
>>>
>>> If one of those work, then there might be some issue with gRPC Python. 
>>> If so, can you provide your gRPC Python version as well?
>>> # Check your gRPC Python version
>>> $ pip show grpcio
>>>
>>> Bests,
>>> Lidi
>>>
>>>
>>> On Thursday, November 8, 2018 at 9:18:32 AM UTC-8, ankitpa...@gmail.com 
>>> wrote:

 Hi Lidi 

 greeterserver.py is running on a terminal from other terminal i can see 
 that port 50051 is bound to python
 # lsof -i :50051
 COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
 

[grpc-io] Re: python quick start "hello world" example fails

2018-11-09 Thread lidiz via grpc.io
Hi Ankit,

There is one more thing I would like to try. Can you provide the detailed 
tracing log for the example server and client?
The trace and debug logs can be turned on by setting environment variables.

$ GRPC_VERBOSITY=DEBUG 
GRPC_TRACE=api,channel,call_error,connectivity_state,http,server_channel 
python greeter_server.py
$ GRPC_VERBOSITY=DEBUG 
GRPC_TRACE=api,channel,call_error,connectivity_state,http,server_channel 
python greeter_client.py

Thank you for helping us solve this issue.

Lidi Zheng

On Friday, November 9, 2018 at 10:00:33 AM UTC-8, ankitpa...@gmail.com 
wrote:
>
> Hi Lidi 
>
> $ python -m SimpleHTTPServer 8000
> $ curl http://localhost:8000  *Works.*
>
>
> $ nc -6 -l 1234  # in one terminal
> $ echo 'Hello' | nc localhost 1234 # in another terminal
> # The 'Hello' should appear in the first terminal  *Works.*
>
>
> # Check your gRPC Python version
> $ pip show grpcio
>
> ---
> Metadata-Version: 2.1
> Name: grpcio
> Version: 1.16.0
> Summary: HTTP/2-based RPC framework
> Home-page: https://grpc.io
> Author: The gRPC Authors
> Author-email: grp...@googlegroups.com 
> Installer: pip
> License: Apache License 2.0
> Location: /usr/local/lib/python2.7/dist-packages
> Requires: six, enum34, futures
> Classifiers:
>   Development Status :: 5 - Production/Stable
>   Programming Language :: Python
>   Programming Language :: Python :: 2
>   Programming Language :: Python :: 2.7
>   Programming Language :: Python :: 3
>   Programming Language :: Python :: 3.4
>   Programming Language :: Python :: 3.5
>   Programming Language :: Python :: 3.6
>   License :: OSI Approved :: Apache Software License
>
> i am still not able to make it work :(
>
> thanks
> Ankit
>
>
> On Thursday, November 8, 2018 at 2:50:56 PM UTC-8, li...@google.com wrote:
>>
>> Hi Ankit,
>>
>> Sorry to hear that none of the fixes work for you. If the server is 
>> started and able to bind tcp port, there is a great chance that this might 
>> due to some local network setting.
>>
>> To detect whether there is a local network issue or gRPC Python issue, 
>> can you try to start other applications that bind a port and try to 
>> communicate with it?
>>
>> For example, you can try:
>>
>> $ python -m SimpleHTTPServer 8000
>> $ curl http://localhost:8000
>> # Or visit this address in browser, it should show up a valid HTML web 
>> page
>>
>> or
>>
>> $ nc -6 -l 1234  # in one terminal
>> $ echo 'Hello' | nc localhost 1234 # in another terminal
>> # The 'Hello' should appear in the first terminal
>>
>> If one of those work, then there might be some issue with gRPC Python. If 
>> so, can you provide your gRPC Python version as well?
>> # Check your gRPC Python version
>> $ pip show grpcio
>>
>> Bests,
>> Lidi
>>
>>
>> On Thursday, November 8, 2018 at 9:18:32 AM UTC-8, ankitpa...@gmail.com 
>> wrote:
>>>
>>> Hi Lidi 
>>>
>>> greeterserver.py is running on a terminal from other terminal i can see 
>>> that port 50051 is bound to python
>>> # lsof -i :50051
>>> COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
>>> python  18126 root6u  IPv6  32226  0t0  TCP *:50051 (LISTEN)
>>> root@fmx215:~/gRPC/grpc/examples/python/helloworld# 
>>>
>>> I am behind corporate proxy; but i think they are working fine since I 
>>> am able to reach ernal internet as well as reach to nodes on internal 
>>> network
>>> i am not sure if corporate proxy would alter or redirect any traffic 
>>> here.
>>>
>>>
>>> following is my /etc/hosts file 
>>> 127.0.0.1   localhost
>>> 127.0.1.1   fmx215.xx.xxx.com fmx215
>>>
>>> # The following lines are desirable for IPv6 capable hosts
>>> ::1 localhost ip6-localhost ip6-loopback
>>> ff02::1 ip6-allnodes
>>> ff02::2 ip6-allrouters
>>>
>>> I am still unable to get this example working. please let me know what 
>>> else i can check or do to make it working
>>>
>>> thanks
>>> Ankit 
>>> On Wednesday, November 7, 2018 at 4:40:59 PM UTC-8, li...@google.com 
>>> wrote:

 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, 
 ankitpa...@gmail.com 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  
> 
>
> 

[grpc-io] Re: python quick start "hello world" example fails

2018-11-09 Thread lidiz via grpc.io
Hi Ankit,

I span up a Ubuntu 16.04 machine to investigate this issue. I used the 
default Python2.7, and installed `pip` through `get-pip.py`. And I 
Installed `grpcio` through `pip`.

Here are the version infos of my machine:
$ uname -a
Linux lidiz-dev-ubuntu-16-04 4.15.0-1023-gcp #24~16.04.1-Ubuntu SMP Wed Oct 
10 20:39:59 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ pip show grpcio
Name: grpcio
Version: 1.16.0
Summary: HTTP/2-based RPC framework
Home-page: https://grpc.io
Author: The gRPC Authors
Author-email: grpc-io@googlegroups.com
License: Apache License 2.0
Location: /home/lidiz/.local/lib/python2.7/site-packages
Requires: six, enum34, futures
Required-by: grpcio-tools

The command I run to get example to work:
# Installation
$ curl https://bootstrap.pypa.io/get-pip.py | sudo python
$ python -m pip install grpcio grpcio-tools googleapis-common-protos --user 
# Install gRPC and dependencies for the example

# First Terminal
lidiz@lidiz-dev-ubuntu-16-04:~/src/grpc/examples/python/helloworld$ python 
greeter_server.py

# Second Terminal
lidiz@lidiz-dev-ubuntu-16-04:~/src/grpc/examples/python/helloworld$ python 
greeter_client.py
Greeter client received: Hello, you!

It works on my machine, I guess there is a difference in the settings. I 
will continue to investigate this.

Lidi Zheng

On Friday, November 9, 2018 at 10:00:33 AM UTC-8, ankitpa...@gmail.com 
wrote:
>
> Hi Lidi 
>
> $ python -m SimpleHTTPServer 8000
> $ curl http://localhost:8000  *Works.*
>
>
> $ nc -6 -l 1234  # in one terminal
> $ echo 'Hello' | nc localhost 1234 # in another terminal
> # The 'Hello' should appear in the first terminal  *Works.*
>
>
> # Check your gRPC Python version
> $ pip show grpcio
>
> ---
> Metadata-Version: 2.1
> Name: grpcio
> Version: 1.16.0
> Summary: HTTP/2-based RPC framework
> Home-page: https://grpc.io
> Author: The gRPC Authors
> Author-email: grp...@googlegroups.com 
> Installer: pip
> License: Apache License 2.0
> Location: /usr/local/lib/python2.7/dist-packages
> Requires: six, enum34, futures
> Classifiers:
>   Development Status :: 5 - Production/Stable
>   Programming Language :: Python
>   Programming Language :: Python :: 2
>   Programming Language :: Python :: 2.7
>   Programming Language :: Python :: 3
>   Programming Language :: Python :: 3.4
>   Programming Language :: Python :: 3.5
>   Programming Language :: Python :: 3.6
>   License :: OSI Approved :: Apache Software License
>
> i am still not able to make it work :(
>
> thanks
> Ankit
>
>
> On Thursday, November 8, 2018 at 2:50:56 PM UTC-8, li...@google.com wrote:
>>
>> Hi Ankit,
>>
>> Sorry to hear that none of the fixes work for you. If the server is 
>> started and able to bind tcp port, there is a great chance that this might 
>> due to some local network setting.
>>
>> To detect whether there is a local network issue or gRPC Python issue, 
>> can you try to start other applications that bind a port and try to 
>> communicate with it?
>>
>> For example, you can try:
>>
>> $ python -m SimpleHTTPServer 8000
>> $ curl http://localhost:8000
>> # Or visit this address in browser, it should show up a valid HTML web 
>> page
>>
>> or
>>
>> $ nc -6 -l 1234  # in one terminal
>> $ echo 'Hello' | nc localhost 1234 # in another terminal
>> # The 'Hello' should appear in the first terminal
>>
>> If one of those work, then there might be some issue with gRPC Python. If 
>> so, can you provide your gRPC Python version as well?
>> # Check your gRPC Python version
>> $ pip show grpcio
>>
>> Bests,
>> Lidi
>>
>>
>> On Thursday, November 8, 2018 at 9:18:32 AM UTC-8, ankitpa...@gmail.com 
>> wrote:
>>>
>>> Hi Lidi 
>>>
>>> greeterserver.py is running on a terminal from other terminal i can see 
>>> that port 50051 is bound to python
>>> # lsof -i :50051
>>> COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
>>> python  18126 root6u  IPv6  32226  0t0  TCP *:50051 (LISTEN)
>>> root@fmx215:~/gRPC/grpc/examples/python/helloworld# 
>>>
>>> I am behind corporate proxy; but i think they are working fine since I 
>>> am able to reach ernal internet as well as reach to nodes on internal 
>>> network
>>> i am not sure if corporate proxy would alter or redirect any traffic 
>>> here.
>>>
>>>
>>> following is my /etc/hosts file 
>>> 127.0.0.1   localhost
>>> 127.0.1.1   fmx215.xx.xxx.com fmx215
>>>
>>> # The following lines are desirable for IPv6 capable hosts
>>> ::1 localhost ip6-localhost ip6-loopback
>>> ff02::1 ip6-allnodes
>>> ff02::2 ip6-allrouters
>>>
>>> I am still unable to get this example working. please let me know what 
>>> else i can check or do to make it working
>>>
>>> thanks
>>> Ankit 
>>> On Wednesday, November 7, 2018 at 4:40:59 PM UTC-8, li...@google.com 
>>> wrote:

 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 

[grpc-io] Re: python quick start "hello world" example fails

2018-11-09 Thread ankitpatel . edu
Hi Lidi 

$ python -m SimpleHTTPServer 8000
$ curl http://localhost:8000  *Works.*


$ nc -6 -l 1234  # in one terminal
$ echo 'Hello' | nc localhost 1234 # in another terminal
# The 'Hello' should appear in the first terminal  *Works.*


# Check your gRPC Python version
$ pip show grpcio

---
Metadata-Version: 2.1
Name: grpcio
Version: 1.16.0
Summary: HTTP/2-based RPC framework
Home-page: https://grpc.io
Author: The gRPC Authors
Author-email: grpc-io@googlegroups.com
Installer: pip
License: Apache License 2.0
Location: /usr/local/lib/python2.7/dist-packages
Requires: six, enum34, futures
Classifiers:
  Development Status :: 5 - Production/Stable
  Programming Language :: Python
  Programming Language :: Python :: 2
  Programming Language :: Python :: 2.7
  Programming Language :: Python :: 3
  Programming Language :: Python :: 3.4
  Programming Language :: Python :: 3.5
  Programming Language :: Python :: 3.6
  License :: OSI Approved :: Apache Software License

i am still not able to make it work :(

thanks
Ankit


On Thursday, November 8, 2018 at 2:50:56 PM UTC-8, li...@google.com wrote:
>
> Hi Ankit,
>
> Sorry to hear that none of the fixes work for you. If the server is 
> started and able to bind tcp port, there is a great chance that this might 
> due to some local network setting.
>
> To detect whether there is a local network issue or gRPC Python issue, can 
> you try to start other applications that bind a port and try to communicate 
> with it?
>
> For example, you can try:
>
> $ python -m SimpleHTTPServer 8000
> $ curl http://localhost:8000
> # Or visit this address in browser, it should show up a valid HTML web page
>
> or
>
> $ nc -6 -l 1234  # in one terminal
> $ echo 'Hello' | nc localhost 1234 # in another terminal
> # The 'Hello' should appear in the first terminal
>
> If one of those work, then there might be some issue with gRPC Python. If 
> so, can you provide your gRPC Python version as well?
> # Check your gRPC Python version
> $ pip show grpcio
>
> Bests,
> Lidi
>
>
> On Thursday, November 8, 2018 at 9:18:32 AM UTC-8, ankitpa...@gmail.com 
> wrote:
>>
>> Hi Lidi 
>>
>> greeterserver.py is running on a terminal from other terminal i can see 
>> that port 50051 is bound to python
>> # lsof -i :50051
>> COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
>> python  18126 root6u  IPv6  32226  0t0  TCP *:50051 (LISTEN)
>> root@fmx215:~/gRPC/grpc/examples/python/helloworld# 
>>
>> I am behind corporate proxy; but i think they are working fine since I am 
>> able to reach ernal internet as well as reach to nodes on internal network
>> i am not sure if corporate proxy would alter or redirect any traffic here.
>>
>>
>> following is my /etc/hosts file 
>> 127.0.0.1   localhost
>> 127.0.1.1   fmx215.xx.xxx.com fmx215
>>
>> # The following lines are desirable for IPv6 capable hosts
>> ::1 localhost ip6-localhost ip6-loopback
>> ff02::1 ip6-allnodes
>> ff02::2 ip6-allrouters
>>
>> I am still unable to get this example working. please let me know what 
>> else i can check or do to make it working
>>
>> thanks
>> Ankit 
>> On Wednesday, November 7, 2018 at 4:40:59 PM UTC-8, li...@google.com 
>> wrote:
>>>
>>> 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, ankitpa...@gmail.com 
>>> 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  
 

 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 
 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 

[grpc-io] Re: python quick start "hello world" example fails

2018-11-08 Thread lidiz via grpc.io
Hi Ankit,

Sorry to hear that none of the fixes work for you. If the server is started 
and able to bind tcp port, there is a great chance that this might due to 
some local network setting.

To detect whether there is a local network issue or gRPC Python issue, can 
you try to start other applications that bind a port and try to communicate 
with it?

For example, you can try:

$ python -m SimpleHTTPServer 8000
$ curl http://localhost:8000
# Or visit this address in browser, it should show up a valid HTML web page

or

$ nc -6 -l 1234  # in one terminal
$ echo 'Hello' | nc localhost 1234 # in another terminal
# The 'Hello' should appear in the first terminal

If one of those work, then there might be some issue with gRPC Python. If 
so, can you provide your gRPC Python version as well?
# Check your gRPC Python version
$ pip show grpcio

Bests,
Lidi


On Thursday, November 8, 2018 at 9:18:32 AM UTC-8, ankitpa...@gmail.com 
wrote:
>
> Hi Lidi 
>
> greeterserver.py is running on a terminal from other terminal i can see 
> that port 50051 is bound to python
> # lsof -i :50051
> COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
> python  18126 root6u  IPv6  32226  0t0  TCP *:50051 (LISTEN)
> root@fmx215:~/gRPC/grpc/examples/python/helloworld# 
>
> I am behind corporate proxy; but i think they are working fine since I am 
> able to reach ernal internet as well as reach to nodes on internal network
> i am not sure if corporate proxy would alter or redirect any traffic here.
>
>
> following is my /etc/hosts file 
> 127.0.0.1   localhost
> 127.0.1.1   fmx215.xx.xxx.com fmx215
>
> # The following lines are desirable for IPv6 capable hosts
> ::1 localhost ip6-localhost ip6-loopback
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
>
> I am still unable to get this example working. please let me know what 
> else i can check or do to make it working
>
> thanks
> Ankit 
> On Wednesday, November 7, 2018 at 4:40:59 PM UTC-8, li...@google.com 
> wrote:
>>
>> 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, ankitpa...@gmail.com 
>> 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  
>>> 
>>>
>>> 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 
>>> 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
>>>   
>>> 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 

[grpc-io] Re: python quick start "hello world" example fails

2018-11-08 Thread ankitpatel . edu
Hi Lidi 

greeterserver.py is running on a terminal from other terminal i can see 
that port 50051 is bound to python
# lsof -i :50051
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
python  18126 root6u  IPv6  32226  0t0  TCP *:50051 (LISTEN)
root@fmx215:~/gRPC/grpc/examples/python/helloworld# 

I am behind corporate proxy; but i think they are working fine since I am 
able to reach ernal internet as well as reach to nodes on internal network
i am not sure if corporate proxy would alter or redirect any traffic here.


following is my /etc/hosts file 
127.0.0.1   localhost
127.0.1.1   fmx215.xx.xxx.com fmx215

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

I am still unable to get this example working. please let me know what else 
i can check or do to make it working

thanks
Ankit 
On Wednesday, November 7, 2018 at 4:40:59 PM UTC-8, li...@google.com wrote:
>
> 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, ankitpa...@gmail.com 
> 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  
>> 
>>
>> 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 
>> 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
>>   
>> 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/37a01567-ec04-4900-8aed-f3650e4885a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[grpc-io] Re: python quick start "hello world" example fails

2018-11-07 Thread lidiz via grpc.io
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, ankitpa...@gmail.com 
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  
> 
>
> 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 
> 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
>   
> 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/9fa2e310-43dd-4106-add6-fdad7cebffdb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.