Symptoms:
After restarting CSF, websites for some users will display 502 error.
Cause:
CSF restart will edit iptables and remove all docker rules. So Docker needs to be restarted afterwards as well, and we use the csfpost-docker.sh to do so. But after docker restart, internal ip's for some users on plan might change and no longer match those in /etc/hosts
which causes Nginx proxy to fail with 502 error.
Workaround:
Run command:
opencli server-recreate_hosts --after-docker
Solution: