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 is giving a connection refuse on upstream #15934

Closed
pjgg opened this issue Mar 22, 2021 · 5 comments
Closed

Grpc is giving a connection refuse on upstream #15934

pjgg opened this issue Mar 22, 2021 · 5 comments
Labels
area/grpc gRPC kind/bug Something isn't working

Comments

@pjgg
Copy link
Contributor

pjgg commented Mar 22, 2021

Describe the bug

On main branch we are getting the following error (GRPC):

Resulted in: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/0:0:0:0:0:0:0:1:9000
Resulted in: io.grpc.StatusRuntimeException: UNAVAILABLE: io exception

Reproducer: Quarkus-quickstarts/grpc-plain-text-quickstart or beefy-scenarios pointing to main branch 999-SNAPSHOT

Works on 1.12.2

@pjgg pjgg added the kind/bug Something isn't working label Mar 22, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Mar 22, 2021

/cc @cescoffier, @michalszynkiewicz

@quarkus-bot quarkus-bot bot added the area/grpc gRPC label Mar 22, 2021
@stuartwdouglas
Copy link
Member

Quickstarts fix is here: quarkusio/quarkus-quickstarts#820

Basically we changed the test port from 9000 to 9001 so it does not conflict with a running app.

@pjgg
Copy link
Contributor Author

pjgg commented Mar 23, 2021

Do you think that make sense create a new property called: quarkus.grpc.clients.<service_name>.test-port with a default value of 9001, something like quarkus.http.test-port ? @stuartwdouglas

@stuartwdouglas
Copy link
Member

The issue is the client, generally apps won't be connecting back to themselves, so I don't think it makes sense to change the client to default to 9001 in test mode.

@pjgg
Copy link
Contributor Author

pjgg commented Mar 24, 2021

Thank you!,

So on test mode, the Grpc server port has been changed to 9001 so If we are running some test against our local environment we should add %test.quarkus.grpc.clients.<service_name>.port=9001 to our application.properties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/grpc gRPC kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants