haishinio / haishin

A website to transcribe japanese language livestreams and then translate them into english
2 stars 0 forks source link

Production server will occasionally 502 after getting latest frontend/backend images #15

Closed tomouchuu closed 1 year ago

tomouchuu commented 1 year ago

As title!

watchtower    | time="2023-05-08T21:17:45Z" level=info msg="Found new ghcr.io/tomouchuu/haishin-backend:main image (b16e1bef5465)"
watchtower    | time="2023-05-08T21:17:59Z" level=info msg="Found new ghcr.io/tomouchuu/haishin-frontend:main image (8cd3db19b40a)"
watchtower    | time="2023-05-08T21:17:59Z" level=info msg="Stopping /haishin-fe (d3547f06a6a3) with SIGTERM"
haishin-fe exited with code 0
watchtower    | time="2023-05-08T21:18:00Z" level=info msg="Stopping /haishin-be (e91fe8a29e9c) with SIGTERM"
haishin-be exited with code 137
watchtower    | time="2023-05-08T21:18:10Z" level=info msg="Creating /haishin-be"
watchtower    | time="2023-05-08T21:18:11Z" level=info msg="Creating /haishin-fe"
watchtower    | time="2023-05-08T21:18:12Z" level=info msg="Session done" Failed=0 Scanned=2 Updated=2 notify=no
watchtower    | time="2023-05-08T21:18:12Z" level=info msg="Waiting for the notification goroutine to finish" notify=no
watchtower exited with code 0
haishin-be    | Websocket Server listening on port 8080
haishin-fe    | Listening on port 3000 url: http://d3547f06a6a3:3000
webserver     | 2023/05/08 21:18:16 [error] 20#20: *9 connect() failed (111: Connection refused) while connecting to upstream, client: X, server: Y, request: "GET / HTTP/2.0", upstream: "http://Z:3000/", host: "Y"
webserver     | X - - [08/May/2023:21:18:16 +0000] "GET / HTTP/2.0" 502 150 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 16_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) EdgiOS/112.0.1722.64 Version/16.0 Mobile/15E148 Safari/604.1" "-"
tomouchuu commented 1 year ago

Maybe webserver needs a restart too when new haishin images are found?

tomouchuu commented 1 year ago

Seems fixed!