502 Bad Gateway error is shown after login to Plesk

https://support.plesk.com/hc/en-us/articles/213903705-502-Bad-Gateway-error-is-shown-after-login-to-Plesk-11-x-Connection-reset-by-peer