I’ve installed bitwarden on a local host and recently it is just failing somehow.
When I try to access the web frontend, nginx fails with:
502 Bad Gateway
Checking Nginx logs, I see this route error:
2022/11/27 15:42:34 [error] 58#58: *297 connect() failed (113: No route to host) while connecting to upstream, client: 192.168.7.212, server: bitwarden.my.domain, request: "GET / HTTP/1.1", upstream: "http://172.22.0.2:5000/", host: "bitwarden.my.domain"
2022/11/27 15:42:41 [error] 56#56: *300 connect() failed (113: No route to host) while connecting to upstream, client: 192.168.7.3, server: bitwarden.my.domain, request: "GET / HTTP/2.0", upstream: "http://172.22.0.2:5000/", host: "bitwarden.my.domain"
2022/11/27 15:42:44 [error] 56#56: *300 connect() failed (113: No route to host) while connecting to upstream, client: 192.168.7.3, server: bitwarden.my.domain, request: "GET /favicon.ico HTTP/2.0", upstream: "http://172.22.0.2:5000/favicon.ico", host: "bitwarden.my.domain", referrer: "https://bitwarden.my.domain/"
When I check docker containers, I see they are all running.
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
55fa3867bd23 bitwarden/nginx:2022.10.0 "/entrypoint.sh" About an hour ago Up About an hour (healthy) 80/tcp, 0.0.0.0:80->8080/tcp, :::80->8080/tcp, 0.0.0.0:443->8443/tcp, :::443->8443/tcp bitwarden-nginx
3f404e0bb374 bitwarden/admin:2022.10.0 "/entrypoint.sh" About an hour ago Up About an hour (healthy) 5000/tcp bitwarden-admin
b44ebfcf7a1d bitwarden/icons:2022.10.0 "/entrypoint.sh" About an hour ago Up About an hour (healthy) 5000/tcp bitwarden-icons
fe2984cfc098 bitwarden/api:2022.10.0 "/entrypoint.sh" About an hour ago Up About an hour (healthy) 5000/tcp bitwarden-api
43b05ff38fc8 bitwarden/events:2022.10.0 "/entrypoint.sh" About an hour ago Up About an hour (healthy) 5000/tcp bitwarden-events
da5a5c24961b bitwarden/identity:2022.10.0 "/entrypoint.sh" About an hour ago Up About an hour (healthy) 5000/tcp bitwarden-identity
2851b5c3bb7a bitwarden/web:2022.10.0 "/entrypoint.sh" About an hour ago Up About an hour (healthy) bitwarden-web
dcd7294b8be7 bitwarden/sso:2022.10.0 "/entrypoint.sh" About an hour ago Up About an hour (healthy) 5000/tcp bitwarden-sso
1b1857280da0 bitwarden/mssql:2022.10.0 "/entrypoint.sh" About an hour ago Up About an hour (healthy) bitwarden-mssql
50eb3629219e bitwarden/notifications:2022.10.0 "/entrypoint.sh" About an hour ago Up About an hour (healthy) 5000/tcp bitwarden-notifications
79b5487ac99e bitwarden/attachments:2022.10.0 "/entrypoint.sh" About an hour ago Up About an hour (healthy) bitwarden-attachments
Usually, restarting Bitwarden resolves the issue, but only for a few minutes.
I’m not sure what’s going on.
Any idea?