Applicable to:
- Plesk for Linux
Symptoms
-
Plesk is inaccessible with one of the following errors:
DB query failed: SQLSTATE[HY000] [2002] Resource temporarily unavailable
Type Plesk\Exception\Database
Message DB query failed: SQLSTATE[HY000] [2002] Resource temporarily unavailable
File Mysql.php
Line 60Server Error
502 Bad Gateway
Web server received an invalid response while acting as a gateway or proxy server. -
These errors are logged to
/var/log/sw-cp-server/sw-engine.log
:[pool plesk] server reached max_children setting (26), consider raising it
Cause
The Plesk panel reached its pm.max_children
limit.
Resolution
Increase the limit.
-
Log in via SSH
-
Increase the
pm.max_children
value in/etc/sw-engine/pool.d/plesk.conf
:# sed -i.bkp 's/max_children.*/max_children\ =\ 50/' /etc/sw-engine/pool.d/plesk.conf
Note: The command above increases the limit to 50. Increase it further if the error continues.
-
Restart
sw-engine
in order to apply the changes:# service sw-engine restart
Comments
0 comments
Please sign in to leave a comment.