GRPC NOT STARTED

119 views
Skip to first unread message

Priyam Arya

unread,
Jun 21, 2023, 8:34:34 AM6/21/23
to grpc.io
Hi team,

I am using grpc in the Springboot service. When I am starting the service in my local grpc server is up and listening on the given port. 

But when I am starting the same service with the docker machine on the server. Service is not listening on grpc port. No error logs are coming from grpc when we are starting our service in docker.

Can someone pls help with the above issue? 

Thanks and regards
Priyam

Eugene Ostroukhov

unread,
Jun 21, 2023, 1:57:36 PM6/21/23
to grpc.io
Are you publishing the ports as expected by the Docker? See https://docs.docker.com/network/

Please provide more information, e.g. your Dockerfile.

Priyam Arya

unread,
Jun 21, 2023, 2:15:52 PM6/21/23
to Eugene Ostroukhov, grpc.io
Hi Eugene,
server.port=5402
grpc.server.port=8008
Running my service with 
sudo docker run -d -p 5402:5402 -p 8007:8007



--
You received this message because you are subscribed to a topic in the Google Groups "grpc.io" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/grpc-io/sgpCBtH4a7o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/e7779483-2f93-4a78-b522-8a47c3bf74d6n%40googlegroups.com.

The information contained in this e-mail and any attachments to this message are intended for the exclusive use of the intended recipient and may contain proprietary, confidential or legally privileged information. If you are not the intended recipient, please note that you are not authorised to disseminate, distribute or copy this e-mail or any parts of it or act upon/rely on the contents of this e-mail in any manner. Please notify the sender immediately by e-mail and destroy all copies of this e-mail and any attachments.

Eugene Ostroukhov

unread,
Jun 21, 2023, 2:34:26 PM6/21/23
to Priyam Arya, grpc.io
https://docs.docker.com/engine/reference/commandline/exec/

I think there's some issue with your Docker setup. Try running interactive shell in the container and find any logs.

Priyam Arya

unread,
Jun 21, 2023, 2:56:16 PM6/21/23
to Eugene Ostroukhov, grpc.io
Hi Eugene

Grpc server is not getting started. 
When I start the service locally I see some logs like [main] [] INFO  net.devh.boot.grpc.server.serverfactory.GrpcServerLifecycle - gRPC Server started, listening on address: *, port: 8008
But I didn't see the same log when I am starting my service on the docker machine on the server.

There might be some issue in Docker setup. But I think that will not stop the grpc server start.

Eugene Ostroukhov

unread,
Jun 21, 2023, 3:20:16 PM6/21/23
to Priyam Arya, grpc.io
The first thing I usually try when I get those mysterious issues in Docker containers is run the bash in the container and run your application from bash. You probably have something like a missing dependency or a wrong path to executable.

Priyam Arya

unread,
Jun 21, 2023, 3:31:12 PM6/21/23
to Eugene Ostroukhov, grpc.io
Thanks for the help. I will definitely try this. 🙂
Reply all
Reply to author
Forward
0 new messages