Create all-domains-show-nginx-502-error.md

This commit is contained in:
Stefan Pejcic 2024-08-26 11:15:37 +02:00 committed by GitHub
parent e860882778
commit 7db970f4f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
```