Vadims06 / topolograph-docker

This is dockerized version of topolograph
42 stars 5 forks source link

Changing ENV variables breaks webserver #7

Closed gorbyhail closed 2 months ago

gorbyhail commented 2 months ago

Hey, we're trying to deploy topolograph within portainer. Initial pull and build works fine, but as soon as the flask container is restarted (for instance to change env variables) the webserver stops responding to anything:

2024/06/20 15:42:08 [error] 35#35: *1 connect() failed (113: No route to host) while connecting to upstream, client: 192.168.92.135, server: _, request: "GET /how-to HTTP/1.1", upstream: "http://172.19.0.2:5000/how-to", host: "portainer.curveit.com:8080", referrer: "http://portainer.curveit.com:8080/"
192.168.92.135 - - [20/Jun/2024:15:42:08 +0000] "GET /how-to HTTP/1.1" 502 559 "http://portainer.curveit.com:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
2024/06/20 15:42:11 [error] 35#35: *1 connect() failed (113: No route to host) while connecting to upstream, client: 192.168.92.135, server: _, request: "GET /favicon.ico HTTP/1.1", upstream: "http://172.19.0.2:5000/favicon.ico", host: "portainer.curveit.com:8080", referrer: "http://portainer.curveit.com:8080/how-to"
192.168.92.135 - - [20/Jun/2024:15:42:11 +0000] "GET /favicon.ico HTTP/1.1" 502 559 "http://portainer.curveit.com:8080/how-to" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
2024/06/20 15:42:23 [error] 35#35: *1 connect() failed (113: No route to host) while connecting to upstream, client: 192.168.92.135, server: _, request: "GET /how-to HTTP/1.1", upstream: "http://172.19.0.2:5000/how-to", host: "portainer.curveit.com:8080", referrer: "http://portainer.curveit.com:8080/"
192.168.92.135 - - [20/Jun/2024:15:42:23 +0000] "GET /how-to HTTP/1.1" 502 559 "http://portainer.curveit.com:8080/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
2024/06/20 15:42:26 [error] 35#35: *1 connect() failed (113: No route to host) while connecting to upstream, client: 192.168.92.135, server: _, request: "GET /favicon.ico HTTP/1.1", upstream: "http://172.19.0.2:5000/favicon.ico", host: "portainer.curveit.com:8080", referrer: "http://portainer.curveit.com:8080/how-to"
192.168.92.135 - - [20/Jun/2024:15:42:26 +0000] "GET /favicon.ico HTTP/1.1" 502 559 "http://portainer.curveit.com:8080/how-to" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"

After restarting the webserver container, it's stuck in a loop of this:

/docker-entrypoint.sh: Configuration complete; ready for start up
2024/06/20 15:44:58 [emerg] 1#1: host not found in upstream "flask:5000" in /etc/nginx/conf.d/app.conf:2
nginx: [emerg] host not found in upstream "flask:5000" in /etc/nginx/conf.d/app.conf:2

Let me know if you require any further info, apologies if anything obvious is missing, my experience with docker/portainer isn't great.

gorbyhail commented 2 months ago

Sorry, all good!! Portainer wasn't putting flask back onto both frontend and backend networks after recreating.