-
Notifications
You must be signed in to change notification settings - Fork 21
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: Unavailable response when gRPC server run in Docker #295
Comments
|
Worth noting, I am testing on macOS |
After a bit of diagnostics on a linux host I've found the following: Run the imagedocker run -it --rm --net=host gcr.io/cloud-devrel-public-resources/storage-testbench:v0.15.0 Start grpccurl http://localhost:9000/start_grpc?port=9001 List bound ports:$ sudo netstat -ntplv | grep '900'
tcp 0 0 0.0.0.0:9000 0.0.0.0:* LISTEN 4008468/python3
tcp6 0 0 ::1:9001 :::* LISTEN 4008484/python3
tcp6 0 0 127.0.0.1:9001 :::* LISTEN 4008484/python3 The grpc server being started by gunicorn is only listening on |
Maybe we should just replace storage-testbench/testbench/grpc_server.py Line 697 in a521716
With the wildcard address |
My code (written in Go, which just creates a Bucket via gRPC) succeeds when the
storage_testbench
server is run directly in avirtualenv
, but fails when the server is running inside of a Docker container. The error readsrpc error: code = Unavailable desc = connection closed before server preface received
.The container was started with the following command:
docker run --name storage_testbench --rm -d -p 9000:9000 -p 8888:8888 gcr.io/cloud-devrel-public-resources/storage-testbench
The gRPC server was started with the following command:
curl -s "http://localhost:9000/start_grpc?port=8888"
The text was updated successfully, but these errors were encountered: