Error on helloworld example
See original GitHub issueHi!
I just try to run the hello world example to try this project but I’m facing a upstream connect error or disconnect/reset before headers error when I try to fetch http://localhost:8081/ in my browser.
The code of my helloworld project is identical to those you give in the README.md (I ended up copying/plasting files). The compilation of the protoc-gen-grpc-web and the generation with protoc are well done too.
The only issue happens when I try to run the envoy image with this command: docker run -d -p 8080:8080 --network=host helloworld/envoy. I have:
- this warning from Docker:
WARNING: Published ports are discarded when using host network mode - this error in my browser:
Http response at 400 or 500 level.
So I tried without the host network (like this: docker run -d -p 8080:8080 helloworld/envoy) and it’s a bit better: no more Docker warning and a 200 on the http://localhost:8080/helloworld.Greeter/SayHello but I have this error now: upstream connect error or disconnect/reset before headers.
Also, when I watch the /clusters it seems that the greeter_service::[::]:0::cx_connect_fail is incremented on each try. So it seems to be a connection problem.
Does someone have an idea? Thanks a lot! 😃
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:7

Top Related StackOverflow Question
Thanks @stanley-cheung for your quick answer! Indeed, I’m using MacOs. Your advice was really helpful, thanks!
In order to make it work, I created a docker compose file. I think it could be a good idea to include it in the helloworld guide in order to reduce the friction during the onboarding of new users. What do you think?
Here is the changes that I have made:
docker-compose.yaml
Note that link is a legacy feature so I rather chose a network. Can you confirm that it will work on other OS (Linux, Windows, etc.)?
server.Dockerfile
envoy.yaml:
Tell me if you are interested by these changes, I could make a PR. 😃
issue #436 helped me if anyone in the future isn’t using
docker-compose.yaml