Missing /var/run/mariadb after reboot
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and Plesk
  1. Ryan Zwankhuizen
  2. Saturday, 20 July 2019
  3.  Subscribe via email
Hi,

Something strange I found recently.
Running Plesk Onyx 17.8.11 with Cloudlinux 7.6 on CentOS7

The server restarts but MariaDB/Mysql does not start.
The issue is that /var/run/mariadb folder does not exist after the reboot.

To solve temporarily, create the mariadb folder inside /var/run and change permissions to mysql:mysql

Then systemctl start mariadb and systemctl start mysqld

All good.
But missing again after a reboot.
Rate this post:
  1. 20.07.2019 21:07:15
  2. # 1
Sergey Khristich Accepted Answer
Posts: 59
Joined: 20.05.2019
0
Votes
Undo
Hello Ryan!
Please check if you have entries about the need to create this directory in /usr/lib/tmpfiles.d/mysql.conf
for example:
egrep -r /var/run /usr/lib/tmpfiles.d | grep mysql
/usr/lib/tmpfiles.d/mysql.conf:d /var/run/mysqld 0755 mysql mysql -


mariadb:
egrep -r /var/run /usr/lib/tmpfiles.d | grep mariadb


if not, try adding a line:
d /var/run/mariadb 0755 mysql mysql -


If can you open a support ticket https://cloudlinux.zendesk.com/hc/en-us/requests/new so we can take a closer look at your system? You can post the ticket number here and we'll link this thread to it.

Thank you.
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.