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

gRPC-server won't start with two services #372

Closed
magento-engcom-team opened this issue Oct 8, 2020 · 3 comments
Closed

gRPC-server won't start with two services #372

magento-engcom-team opened this issue Oct 8, 2020 · 3 comments

Comments

@magento-engcom-team
Copy link

Description:
gRPC server won't start with few services

Steps to reproduce:

  1. install magento with storefront
  2. install all required extension to run grpc-server, see app/code/Magento/Grpc/README.md or https://github.com/duhon/magento-docker/blob/a8196a5cae08fd830f659553613315e57d781956/README.md if you use DebBox
  3. In readme files the following CLI command is used:
bin/magento storefront:grpc:init \\Magento\\CatalogStorefrontApi\\Api\\CatalogProxyServer
{code}

Stop grpc-server and run the command with 2 parameters:

{code}
bin/magento storefront:grpc:init \\Magento\\CatalogStorefrontApi\\Api\\CatalogProxyServer  \\Magento\\CatalogStorefrontApi\\Proto\\VariantServiceInterface
{code}
 
(/) Expected:
gRPC server started successfully without errors
{code}
root@app:/var/www/magento2ce# ./vendor/bin/grpc-server 
DEBU<0000] [metrics]: disabled                          
DEBU[0000] [rpc]: started                               
DEBU[0000] [grpc]: started    
{code}

(x) Actual
gRPC server stops after start 
{code}
root@app:/var/www/magento2ce# ./vendor/bin/grpc-server 
DEBU[0000] [metrics]: disabled                          
DEBU[0000] [rpc]: started                               
DEBU[0000] [grpc]: started                              
ERRO[0000] [grpc]: [grpc]: unable to connect to worker: invalid data found in the buffer (possible echo): signal: killed 
DEBU[0000] [rpc>: stopped  

(!) Notes:
try to run with Magento\CatalogStorefrontApi\Api\VariantServiceProxyServer. Probably the issue is with this service.

@magento-engcom-team
Copy link
Author

The issue was exported from the internal JIRA. The link to the original JIRA issue: https://jira.corp.magento.com/browse/SFAPP-99

@m2-assistant
Copy link

m2-assistant bot commented Oct 8, 2020

Hi @magento-engcom-team. Thank you for your report.
To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


@magento-engcom-team magento-engcom-team changed the title gRPC gRPC-server won't start with Oct 8, 2020
@magento-engcom-team magento-engcom-team changed the title gRPC-server won't start with gRPC-server won't start with two services Oct 8, 2020
@RuslanKostiv1
Copy link
Contributor

checked this with new variants service and looks we can use 2 and more services:

bin/magento storefront:grpc:init \\Magento\\CatalogStorefrontApi\\Api\\CatalogProxyServer \\Magento\\CatalogStorefrontApi\\Api\\VariantServiceProxyServer

see #357

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

2 participants