• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

Issue Slow + 504 Gateway Time-out

cposol

New Pleskian
Hello,
We have the same problem since approx. 1 week. (Plesk Onyx 17.5.3)
Login is slow, each Plesk page loading is slow (in minutes...) and nginx 504 Gateway Time-out occurs...
 
Check if you have many web server and PHP processes running that consume a lot of cpu power. E.g.

# ps aux | grep php-fpm
or
# ps aux | grep httpd
or
# ps aux | grep apache2

Also check what the database is doing. Login with
# plesk db
then run
> show processlist;

Do you see many processes with a lot of load?
 
Hello Peter,

Sometimes, just after a PLESK server restart
service sw-engine restart && service sw-cp-server restart

I get:

ERROR: Plesk\Exception\Database: DB query failed: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction, query was: DELETE FROM `SessionContexts` WHERE (`sessionId` IN (SELECT `sessions`.`sess_id` FROM `sessions` WHERE (`modified` + `lifetime` < 1613469075)))

Additionally, an exception has occurred while trying to report this error: Zend_Exception
No entry is registered for key &#039;translate&#039; (Mysql.php:53)

Search for related Knowledge Base articles

Thanks you for your reply
 
ps aux | grep php-fpm

root 21936 0.0 0.0 7792 852 pts/0 S+ 10:58 0:00 grep php-fpm

mysql> show processlist;
+-------+-------+-----------+------+---------+------+-----------+------------------------------------------------------------------------------------------------------+
| Id | User | Host | db | Command | Time | State | Info |
+-------+-------+-----------+------+---------+------+-----------+------------------------------------------------------------------------------------------------------+
| 38747 | admin | localhost | psa | Query | 614 | query end | INSERT INTO `sessions` (`sess_id`, `type`, `login`, `ip_address`, `login_time`, `modified`, `lifetim |
| 38748 | admin | localhost | psa | Query | 444 | query end | INSERT INTO `sessions` (`sess_id`, `type`, `login`, `ip_address`, `login_time`, `modified`, `lifetim |
| 38756 | admin | localhost | psa | Query | 434 | query end | INSERT INTO `sessions` (`sess_id`, `type`, `login`, `ip_address`, `login_time`, `modified`, `lifetim |
| 38763 | admin | localhost | psa | Query | 0 | NULL | show processlist |
+-------+-------+-----------+------+---------+------+-----------+------------------------------------------------------------------------------------------------------+
4 rows in set (0.00 sec)

It seems related with sessions (?)
 
Back
Top