You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/09/27 12:31:31 UTC

[GitHub] [apisix] whioue opened a new issue #5147: request help: How to use grpcs

whioue opened a new issue #5147:
URL: https://github.com/apache/apisix/issues/5147


   ### Issue description
   
   How to use grpcs?
   
   I try to add scheme as grpcs in the upstream and use the grpc provided by api7/grpc_server_example, configure nodes: {"127.0.0.1": 50052},
   
   The request is as follows:
   
   grpcurl -insecure -import-path ./proto -proto helloworld.proto -d '{"name":"apisix"}' 127.0.0.1:9443 helloworld.Greeter.SayHello
   
   Errors are reported as follows:
   
   Failed to dial target host "127.0.0.1:9443": context deadline exceeded
   
   When I use scheme as grpc upstream and configure nodes: {"127.0.0.1": 50051}, I can succeed and get the results
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): version 2.8
   - OS (cmd: `uname -a`): centos7
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
   - luarocks version, if the issue is about installation (cmd: `luarocks --version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander closed issue #5147: request help: How to use grpcs

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #5147:
URL: https://github.com/apache/apisix/issues/5147


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] whioue edited a comment on issue #5147: request help: How to use grpcs

Posted by GitBox <gi...@apache.org>.
whioue edited a comment on issue #5147:
URL: https://github.com/apache/apisix/issues/5147#issuecomment-928892480


   > @whioue Please provide more details about:
   > 
   > 1. The route you created;
   > 2. You have to prepare an TLS keypair and configure them as an APISIX SSL object if you want to access the 9443 port.
   
   the route value is :
   ![image](https://user-images.githubusercontent.com/47098518/135033804-00253c27-91aa-4ff0-8177-0f21fd2fe1d7.png)
   the upstream is:
   ![image](https://user-images.githubusercontent.com/47098518/135034220-93d889de-1778-4c7b-8fc8-085c483c1381.png)
   I have configured SSL, certificate and key is same as grpc_ server_ example.
   
   I tried to call 50052 port with the command, I also got a failure response. 50051 is OK. What's the reason?
   ![image](https://user-images.githubusercontent.com/47098518/135061880-e12a29bc-fa0c-427a-a6c3-18293f79cdc2.png)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #5147: request help: How to use grpcs

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #5147:
URL: https://github.com/apache/apisix/issues/5147#issuecomment-929094476


   It seems that the problems occurred during the TCP handshaking with `192.168.32.149:50052`? Are you sure it's reachable?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] whioue commented on issue #5147: request help: How to use grpcs

Posted by GitBox <gi...@apache.org>.
whioue commented on issue #5147:
URL: https://github.com/apache/apisix/issues/5147#issuecomment-928892480


   > @whioue Please provide more details about:
   > 
   > 1. The route you created;
   > 2. You have to prepare an TLS keypair and configure them as an APISIX SSL object if you want to access the 9443 port.
   
   the route value is :
   ![image](https://user-images.githubusercontent.com/47098518/135033804-00253c27-91aa-4ff0-8177-0f21fd2fe1d7.png)
   the upstream is:
   ![image](https://user-images.githubusercontent.com/47098518/135034220-93d889de-1778-4c7b-8fc8-085c483c1381.png)
   I have configured SSL, certificate and key is same as grpc_ server_ example.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #5147: request help: How to use grpcs

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #5147:
URL: https://github.com/apache/apisix/issues/5147#issuecomment-928529718


   @whioue Please provide more details about:
   
   1. The route you created;
   2. You have to prepare an TLS keypair and configure them as an APISIX SSL object if you want to access the 9443 port.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #5147: request help: How to use grpcs

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #5147:
URL: https://github.com/apache/apisix/issues/5147#issuecomment-939284044


   Closed as lack of response. Feel free to reopen it if need.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tzssangglass commented on issue #5147: request help: How to use grpcs

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #5147:
URL: https://github.com/apache/apisix/issues/5147#issuecomment-929183747


   and error logs about 50052 is un reachable?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] whioue commented on issue #5147: request help: How to use grpcs

Posted by GitBox <gi...@apache.org>.
whioue commented on issue #5147:
URL: https://github.com/apache/apisix/issues/5147#issuecomment-928892480






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] whioue commented on issue #5147: request help: How to use grpcs

Posted by GitBox <gi...@apache.org>.
whioue commented on issue #5147:
URL: https://github.com/apache/apisix/issues/5147#issuecomment-929099645


   > 似乎问题发生在与`192.168.32.149:50052`? 你确定可以访问吗?
   
   我只是通过go run main.go启动了api7/grpc_server_example,我看到50051和50052都处于监听状态,50051是可以成功访问的,为什么50052不可以呢?
   ![image](https://user-images.githubusercontent.com/47098518/135078050-1dde7e68-39d6-4022-9ac6-a3287c2f1ae4.png)
   ![image](https://user-images.githubusercontent.com/47098518/135078025-54d9387d-4145-467d-9332-7ff762a5bf2f.png)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] whioue edited a comment on issue #5147: request help: How to use grpcs

Posted by GitBox <gi...@apache.org>.
whioue edited a comment on issue #5147:
URL: https://github.com/apache/apisix/issues/5147#issuecomment-928892480


   > @whioue Please provide more details about:
   > 
   > 1. The route you created;
   > 2. You have to prepare an TLS keypair and configure them as an APISIX SSL object if you want to access the 9443 port.
   
   the route value is :
   ![image](https://user-images.githubusercontent.com/47098518/135033804-00253c27-91aa-4ff0-8177-0f21fd2fe1d7.png)
   the upstream is:
   ![image](https://user-images.githubusercontent.com/47098518/135034220-93d889de-1778-4c7b-8fc8-085c483c1381.png)
   I have configured SSL, certificate and key is same as grpc_ server_ example.
   
   I tried to call 50052 port with the command, I also got a failure response. 50051 is OK. What's the reason?
   ![image](https://user-images.githubusercontent.com/47098518/135061880-e12a29bc-fa0c-427a-a6c3-18293f79cdc2.png)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #5147: request help: How to use grpcs

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #5147:
URL: https://github.com/apache/apisix/issues/5147#issuecomment-928529718






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tzssangglass commented on issue #5147: request help: How to use grpcs

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #5147:
URL: https://github.com/apache/apisix/issues/5147#issuecomment-929183747


   and error logs about 50052 is un reachable?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org