While accessing Plesk, the following
"502 Bad Gateway" error is seen.
/var/log/sw-cp-server/error_log contains the following error message:
recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 184.108.40.206, server: , request: "POST <some url>
The root cause of this issue has not been identified.
As a possible workaround, increase the buffer size inside the file
/etc/sw-cp-server/config as follows:
root@hostname:~# grep buffer /etc/sw-cp-server/config fastcgi_buffers 16 16k; fastcgi_buffer_size 32k;
root@hostname:~# grep buffer /etc/sw-cp-server/config fastcgi_buffers 32 32k; fastcgi_buffer_size 64k;
After editing the file, restart the below services:
root@hostname:~# /etc/init.d/sw-cp-server restart root@hostname:~# /etc/init.d/sw-engine restart
Note: If this solution does not help, please contact Odin Technical Support.