Bitwarden Self-Hosted Installation 502 Bad Gateway Error

Hello,

I am trying to run a bitwarden self-hosted installation and I am running into this issue where I go to create an account but fail to create the account due to the error message below. Any help would be greatly appreciated.

An error has occurred. <html> <head><title>502 Bad Gateway</title></head> <body> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx</center> </body> </html>

Please let me know what commands to run such as logs to better help visualize the error and get to the solution faster.

After doing some diagnostics with the bitwarden-nginx docker container. I was able to reproduce this error message in the logs of nginx.

[error] 45#45: *3 connect() failed (113: No route to host) while connecting to upstream, client: [IP-Address], server: vault.rhino-tech.org, request: "POST /api/accounts/register HTTP/2.0", upstream: "http://172.27.0.8:5000/accounts/register", host: "vault.rhino-tech.org", referrer: "https://vault.rhino-tech.org/"

I’ve found a similar article in the community forums for this issue. I ran the below commands and unfortunately I am still unable to create an account.

./bitwarden.sh stop
docker image ls
docker image rm id-for-admin id-for-mssql
./bitwarden.sh updateself
./bitwarden.sh update

Hey there, if you don’t get answers here, you can also contact the support team directly at Get in Touch | Bitwarden