• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

MySQL query failed: MySQL server has gone away

A

AdrianB

Guest
When I log-in to Plesk Control Panel and try to access the server section I get the following error:

ERROR: PleskMainDBException
MySQL query failed: Lost connection to MySQL server during query

Additionally, an exception has occurred while trying to report this error: PleskMainDBException
MySQL query failed: MySQL server has gone away

0: /opt/psa/admin/plib/common_func.php3:250
db_query(string 'SELECT `id`, `ord`, `uri`, `parent_id`, `enabled`, `type`, `title`, `description` FROM `DashboardPresetConfig` WHERE `preset_id`="1" ORDER BY `ord` DESC')
1: /opt/psa/admin/plib/dashboard/DashboardPreset.php:160
DashboardPreset->fetchConfig()
2: /opt/psa/admin/plib/dashboard/DashboardPreset.php:296
DashboardPreset->getConfig()
3: /opt/psa/admin/plib/dashboard/DashboardPreset.php:103
DashboardPreset->getElementByURI(string '/plesk/dashboard/#shortcuts')
4: /opt/psa/admin/plib/dashboard/Dashboard.php:152
Dashboard::getShortcutParent(object of type DashboardPreset, object of type plesk__server)
5: /opt/psa/admin/plib/class.Form.php:244
Form->assign()
6: /opt/psa/admin/plib/class.ServerForm.php:172
ServerForm->assign(object of type ComponentsChecker)
7: /opt/psa/admin/htdocs/server/server.php3:115

This first happened after the first server restart in 145 days, then, overnight it seemed to have resolved by itself. But today the error appeared again. If I do a mysqlcheck on the psa database I get: mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) when selecting the database

I've checked, the socket exists. The other databases work with no problem.
 
Back
Top