• 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.

Resolved Plesk won't start mariadb

Sysop

Basic Pleskian
We had a problem on our server and all the free space got used up, which caused mariadb to stop.

After freeing up the space and trying to access the Plesk Panel we are presented with:
Code:
DB query failed: SQLSTATE[HY000] [2002] No such file or directory
Trying to restart the mariadb process ends in a "Gateway Timeout"

Trying from the command-line:
Code:
$ systemctl enable mariadb
$ systemctl start mariadb
... hangs and does nothing ...
Checking with journal -xe:
Code:
systemd[1]: Got notification message from PID 12472, but reception only permitted for main PID which is currently not known
Attempting to repair:
Code:
$ plesk repair db -y
DB query failed: SQLSTATE[HY000] [2002] Connection refused
Trying to go one step further:
Code:
$ plesk repair installation
DB query failed: SQLSTATE[HY000] [2002] No such file or directory

We're dead in the water it seems, what now? Thanks
 
What kind of error messages in /var/log/mariadb/mariadb.log ?
 
I ended up killing the "mysql" process and restarting the service after that. For whatever reason the root user for the db was lost somehow. I had to re-create the user and did the repair installation again. It seems to be working fine now.

I would say that maybe the support document regarding this error could be updated with more information as to why it happens and how to resolve the problem perhaps, thanks.
 
Back
Top