Article ID: 118757, created on Nov 19, 2013, last review on Nov 21, 2015

  • Applies to:
  • Plesk Automation 11.1
  • Plesk Automation 11.5
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux


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:, 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.

Search Words

Unable to login

error 502 nginx

Mail server no longer working

ERROR: Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory (Abstract.php:144)

bad gateway

bad 502

plesk 502


Erreur 502 Bad gateway plesk

bad gateway 502 plesk

I cannot create webspace under subscription

I cannat login files page

Plesk login errors


502 bad gateway

502 Bad Gateway

ERROR: Allowed memory size of X bytes exhausted (tried to allocate Y bytes)"

Failed upgrade

recv() failed (104: Connection reset by peer)

502 badgateway


bad gateway nginx after migration

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f e0aff7830fa22f92062ee4db78133079 aea4cd7bfd353ad7a1341a257ad4724a c1ecc6010feff26cb42d1d14a7881dd6 33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF