• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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