From 7db970f4f0ae286353e6d97b8ea2a9bc7d7403d9 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Mon, 26 Aug 2024 11:15:37 +0200 Subject: [PATCH] Create all-domains-show-nginx-502-error.md --- .../all-domains-show-nginx-502-error.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 documentation/docs/articles/domains/all-domains-show-nginx-502-error.md diff --git a/documentation/docs/articles/domains/all-domains-show-nginx-502-error.md b/documentation/docs/articles/domains/all-domains-show-nginx-502-error.md new file mode 100644 index 00000000..31f2f27c --- /dev/null +++ b/documentation/docs/articles/domains/all-domains-show-nginx-502-error.md @@ -0,0 +1,20 @@ +# All Domains show Nginx 502 error + +This happens when a third party user/service restarted docker and the floatingip service failed to reload the `/etc/hosts` file with new docker private IP addresses. + +To resolve this issue, run: + +```bash +opecncli server-recreate_hosts +``` + +Then restart Nginx service: + +- soft restart (reload without downtime): + ```bash + docker exec nginx bash -c "nginx -t && nginx -s reload" + ``` +- hard restart (stop and start again): + ```bash + docker restart nginx + ```