• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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