dinghy-http-proxy icon indicating copy to clipboard operation
dinghy-http-proxy copied to clipboard

driver failed programming external connectivity on endpoint proxy

Open kumarabhirup opened this issue 6 years ago • 8 comments
trafficstars

I ran this on mac:

docker run -d --restart=always \
> -v /var/run/docker.sock:/tmp/docker.sock:ro \
> -v ~/.dinghy/certs:/etc/nginx/certs \
> -p 80:80 -p 443:443 -p 19322:19322/udp \
> -e DNS_IP=127.0.0.1 -e CONTAINER_NAME=http-proxy \
> --name proxy \
> codekitchen/dinghy-http-proxy

But I end up with this error everytime:

f925d92d06f417bf89da2541d13f2a3b31f3aa8b52126c7cb3b781fdc73a0e3a
docker: Error response from daemon: driver failed programming external connectivity on endpoint proxy (558d85d62cc87ec2cc076251afa12fecc815b44477df8b13bc435912d9f69b2c): Error starting userland proxy: Bind for 0.0.0.0:443: unexpected error (Failure EADDRINUSE).

Would appreciate help. 👍

kumarabhirup avatar Nov 22 '18 20:11 kumarabhirup

Failure EADDRINUSE sounds like another container is already listening on 443. Try shutting down that other container first, if you are using Dinghy then it could just be the built-in dinghy-http-proxy instance.

codekitchen avatar Nov 22 '18 22:11 codekitchen

I get something like this: docker: Error response from daemon: driver failed programming external connectivity on endpoint http-proxy (8be6f6a7a3f480bed66b354620a8cc9824b8606857866124d0a78efab9231145): Error starting userland proxy:.

AndreiD avatar Jun 01 '19 13:06 AndreiD

@AndreiD I came here after having issues with NightFall as I see that you were in my same boat. Did you manage to solve this error ? I've tried shutting down all the containers but still getting that error

Solexplorer avatar Jun 02 '19 12:06 Solexplorer

no I haven't.... the next thing I wanted to try is get another docker version, since I'm suspecting the current one, that you install with apt-get has problems. but didn't had time to do it. if you find a fix, please do write :bowing_man:

AndreiD avatar Jun 02 '19 12:06 AndreiD

@AndreiD Did npm run setup-all work fine with yu or did it throw any error ? Maybe we should open an issue here because even using the setup in this GitHub does not start it

Btw, I do not have anything running on port 0 and 422, this thing is becoming even more strange.

P.S I installed docker version 18.6.1 and still not working for me

Solexplorer avatar Jun 02 '19 13:06 Solexplorer

@AndreiD I run the following code and it shows the container working: docker run -d --restart=always -v /var/run/docker.sock:/tmp/docker.sock:ro -v ~/.dinghy/certs:/etc/nginx/certs -e CONTAINER_NAME=http-proxy --name http-proxy codekitchen/dinghy-http-proxy

CONTAINER ID        IMAGE                           COMMAND                  CREATED             STATUS              PORTS               NAMES
da8083262360        codekitchen/dinghy-http-proxy   "/app/docker-entrypo…"   35 seconds ago      Up 33 seconds       80/tcp, 19322/tcp   http-proxy

Solexplorer avatar Jun 02 '19 13:06 Solexplorer

so you managed in the end to see the angular UI ?

AndreiD avatar Jun 02 '19 14:06 AndreiD

@AndreiD Did you solve the issue at the end ? We are trying to find a way to get it through here: https://github.com/EYBlockchain/nightfall/issues/16

Btw, I still have issues with docker-proxy

Solexplorer avatar Jun 03 '19 21:06 Solexplorer