• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Plesk 11.5 - 502 bad gateway

Any Plesk people here who can get this checked out?
I'd rather not open a support ticket and go through a painful 5-day wait, re-explaining the problem 5 times, but perhaps I should anyway :D
 
Quick fix from support this time, nice! Its working fine now.


1)Take backup of "/etc/sw-cp-server/config"
2)Increase the following buffer sizes in the file "/etc/sw-cp-server/config".

a) fastcgibuffers 32 32k;
b) fastcgibuffer_size 64k;

After editing the file, restart the below services:

/etc/init.d/sw-cp-server restart
/etc/init.d/sw-engine restart
 
I try to restart apache, psa and ngix, but not work.
After reboot entire server, works.

I am having this same issue. I will be responding with more detail later, but in the meantime, the way to quickly fix it is to restart the PHP-FPM service "service php-fpm restart"
 
I saw it after I posted your reply. I actually just tried it. Will wait and see. Thank you.
 
Same Problem on key activation since plesk cp running on nginx:

*1 upstream timed out (110: Connection timed out) while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: , request: "GET /server/key_update.php?key_type=plesk HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock", host: "xxxxx.xxxxxxxx.xx:8443", referrer: "https://xxxxx.xxxxxxxx.xx:8443/server/key_info.php"
 
Quick fix from support this time, nice! Its working fine now.


1)Take backup of "/etc/sw-cp-server/config"
2)Increase the following buffer sizes in the file "/etc/sw-cp-server/config".

a) fastcgibuffers 32 32k;
b) fastcgibuffer_size 64k;

After editing the file, restart the below services:

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


Update -- changing these values has helped, but it does not fix the issue. An important item to note is that I have about 30 domains on my server, each using php-fpm. When the errors start occurring, it only happens for one of the domains (and the same domain every time). Even though the other domains continue to work, i still have to restart PHP-FPM in order to fix the domain that has the error. It's almost as if PHP-FPM is not properly dropping old processes (keepalive?) and they eventually fill up the total amount of allowed pHP-FPM processes for that single domain. Any ideas?
 
Have you seen this issue after installation of MU#8?

Hi Igor -- Everythiing was looking good for a few days, but the error just happened again. 502 - Bad Gateway - NGINX --
Again, this only happens with a SINGLE domain. The rest continue to work. Are there any logs you think I can check to start to identify the issue?
 
A quick note -- i looked in the php-fpm logs and noticed the following: "server reached max_children setting (5), consider raising it"
So i went into the /etc/php-fpm.d/ folder and opened the specific domain .conf file.
The max_children variable was set to 5. I changed this value to 25.

An interesting item to note is that the generic www.conf file has the "max_children" value set to 50. Should this number be the same across all domains? Perhaps 5 is way too low for high traffic sites..
 
Still no luck for me.

Same here. I have the same issue. Tried rebooting the server, this worked and I could run 1 export from phpmyadmin, but then the same error again. I can't keep rebooting the server. Is there any other way to fix this?
php-fpm is an unrecognised service on my server. And the values config in sw-cp-server were already the values described in the post above...

Any other solutions?
 
Hello,

Still same problem here after MU 14. Do I have to do anything else after MU14 to fix the problem?

I restart sw-cp-server and sw-engine but it does not work...

This is the error in /var/log/sw-cp-server/error_log


2013/09/17 18:08:54 [error] 31400#0: *80 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 188.77.xxx.xxx, server: , request: "POST /domains/databases/phpMyAdmin/export.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "XXX.net:8443", referrer: "https://XXX.net:8443/domains/databases/phpMyAdmin/tbl_export.php?db=XXX_DESARROLLO&table=products_groups&token=727b672a47b40f720ed0bbf3b6cb59b5&single_table=true"

Regards
 
Last edited:
Previvously i manually edited sw-cp-server/config file and resolved the problem, but now after update i had it back.
 
Just do

Code:
# service psa restart
Stopping sw-engine-fpm:                                    [  OK  ]
Starting sw-engine-fpm:                                    [  OK  ]


This might fix it for you (it did for me).
 
Back
Top