Skip to content

Docker suddenly stopped working #219

@Jesus82

Description

@Jesus82

Hi guys, my Docker stopped working and I cannot find out the way to make it work again.

I'm currently working in the feature/trips branch. Last 2 days I commited some files with no issue at all. Today I started the container, but when going to the browser I get a 502 Bad Gateway error. I checked out to previous commits to see if there was any issue about the changes I had commited, but it doesn't work as well.

Tried to reinstall with no issues:

docker-compose down -v --remove-orphans
docker system prune -f
docker volume rm $(docker volume ls -q)
docker-compose build php

and
make install
But still getting 502

My docker logs from rox_web_1 are:

2021/02/02 11:41:52 [error] 6#6: *1 connect() failed (113: Host is unreachable) while connecting to upstream, client: 172.21.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://172.21.0.5:9000", host: "localhost:8080"
172.21.0.1 - - [02/Feb/2021:11:41:52 +0000] "GET / HTTP/1.1" 502 158 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0" "-"
172.21.0.1 - - [02/Feb/2021:11:41:52 +0000] "GET /favicon.ico HTTP/1.1" 200 3638 "http://localhost:8080/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0" "-"
172.21.0.1 - - [02/Feb/2021:11:41:53 +0000] "GET /service-worker.js HTTP/1.1" 200 239295 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0" "-"
2021/02/02 12:06:11 [error] 6#6: *3 connect() failed (113: Host is unreachable) while connecting to upstream, client: 172.21.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://172.21.0.5:9000", host: "localhost:8080"
172.21.0.1 - - [02/Feb/2021:12:06:11 +0000] "GET / HTTP/1.1" 502 158 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0" "-"
172.21.0.1 - - [02/Feb/2021:12:06:12 +0000] "GET /service-worker.js HTTP/1.1" 200 239295 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0" "-"
2021/02/02 12:08:48 [error] 6#6: *5 connect() failed (113: Host is unreachable) while connecting to upstream, client: 172.21.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://172.21.0.5:9000", host: "localhost:8080"
172.21.0.1 - - [02/Feb/2021:12:08:48 +0000] "GET / HTTP/1.1" 502 158 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0" "-"
172.21.0.1 - - [02/Feb/2021:12:08:48 +0000] "GET /favicon.ico HTTP/1.1" 200 3638 "http://localhost:8080/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0" "-"
172.21.0.1 - - [02/Feb/2021:12:08:49 +0000] "GET /service-worker.js HTTP/1.1" 200 239295 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0" "-"
2021/02/02 12:14:56 [error] 6#6: *8 connect() failed (113: Host is unreachable) while connecting to upstream, client: 172.21.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://172.21.0.5:9000", host: "localhost:8080"
172.21.0.1 - - [02/Feb/2021:12:14:56 +0000] "GET / HTTP/1.1" 502 158 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0" "-"
172.21.0.1 - - [02/Feb/2021:12:14:56 +0000] "GET /favicon.ico HTTP/1.1" 200 3638 "http://localhost:8080/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0" "-"
172.21.0.1 - - [02/Feb/2021:12:14:57 +0000] "GET /service-worker.js HTTP/1.1" 200 239295 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0" "-"

Any hint will be appreciated. Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions