502 Bad Gateway error is shown after login to Plesk 11.x: Connection reset by peer

Created:

2016-11-16 12:40:45 UTC

Modified:

2017-04-27 21:11:51 UTC

5

Was this article helpful?


Have more questions?

Submit a request

502 Bad Gateway error is shown after login to Plesk 11.x: Connection reset by peer

Applicable to:

  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux

Symptoms

While accessing Plesk, 502 Bad Gateway error is shown.

/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: 123.123.123.123, server: , request: "POST  <some url>

Cause

The root cause of this issue has not been identified.

Resolution

As a possible workaround, increase the buffer size inside the file /etc/sw-cp-server/config as follows:

Before:

# grep buffer  /etc/sw-cp-server/config
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;

After:

# grep buffer  /etc/sw-cp-server/config
fastcgi_buffers 32 32k;
fastcgi_buffer_size 64k;

After editing the file, restart the below services:

# /etc/init.d/sw-cp-server restart

# /etc/init.d/sw-engine restart

Note: If this solution does not help, please perform an upgrade to Plesk 12.5 or Onyx first.

Have more questions? Submit a request
Please sign in to leave a comment.