apache and MySQL went down cant restart help

2 posts / 0 new
Last post
#1 Fri, 01/19/2018 - 02:52
oxonweb

apache and MySQL went down cant restart help

Hi all if some one could give advice it would be great.

running on Dedi server CPUIntel(R) Core(TM) i5-3570S CPU @ 3.10GHz Number :4Cache :6144 KBSpeed :3424 MHz RAM2 x 8192 MB CentOS Linux 7.4.1708

Basically all was fine last night but i had no space left on root folder so cleaned old files like old kernels and .giz files. In order to auto update a couple of files as normal.

now i see that the Apche and MySQL db is down and wont restart.

the errors i get are

# apachectl configtest
(2)No such file or directory: AH02291: Cannot access directory '/etc/httpd/logs/' for main error log
(2)No such file or directory: AH02291: Cannot access directory '/var/log/virtualmin/' for error log of vhost defined at /etc/httpd/conf/httpd.conf:771
(2)No such file or directory: AH02291: Cannot access directory '/var/log/virtualmin/' for error log of vhost defined at /etc/httpd/conf/httpd.conf:692
(2)No such file or directory: AH02291: Cannot access directory '/var/log/virtualmin/' for error log of vhost defined at /etc/httpd/conf/httpd.conf:599
(2)No such file or directory: AH02291: Cannot access directory '/var/log/virtualmin/' for error log of vhost defined at /etc/httpd/conf/httpd.conf:507
(2)No such file or directory: AH02291: Cannot access directory '/var/log/virtualmin/' for error log of vhost defined at /etc/httpd/conf/httpd.conf:432
(2)No such file or directory: AH02291: Cannot access directory '/var/log/virtualmin/' for error log of vhost defined at /etc/httpd/conf/httpd.conf:361
(2)No such file or directory: AH02291: Cannot access directory '/etc/httpd/logs/' for error log of vhost defined at /etc/httpd/conf.d/ssl.conf:56
AH00014: Configuration check failed

the file     '/etc/httpd/logs/'  is there so very odd??

also the Mysql is showing errors.

Failed to start database :
Redirecting to /bin/systemctl start mariadb.service
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.

and MySQL is not running on your system - database list could not be retrieved.

The full MySQL error message was : DBI connect failed : Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

hope that helps

I do still have webmin and SSH login if helps

thanks

Fri, 01/19/2018 - 16:40
Joe
Joe's picture

The Apache error is clear: /var/log/virtualmin has been deleted. Apache is configured to log to that directory. It can't, because it doesn't exist. Create that directory again.

I don't know about MariaDB. We need to see more logs. This just tells us it didn't start (which you've already told us). What's the output of journalctl -xe immediately after trying to restart mariadb? There's also /var/log/mariadb/mariadb.log which likely contains more clues about why it isn't starting.

Running out of disk space can, in rare circumstances, corrupt the database files, and may require some work on the database using the REPAIR TABLE command, or other stuff (though I'm not an expert on this, as it's so rare that I haven't seen table corruption in something like a decade). But, I'm guessing it's something simple like the old hung process is still running on the port so a new process can't start up.

--

Check out the forum guidelines!

Topic locked