I using FreePBX 13.0.197.22
I’m only using 27% disk space
Before I reboot the server I run fwconsole stop.
The server reboot with the following error
Exception: SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (111)::SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (111) in file /var/www/html/admin/libraries/utility.functions.php on line 204
Stack trace:
- Exception->() /var/www/html/admin/libraries/utility.functions.php:204
- die_freepbx() /var/www/html/admin/libraries/BMO/Database.class.php:134
- PDOException->() /var/www/html/admin/libraries/BMO/Database.class.php:131
- PDO->__construct() /var/www/html/admin/libraries/BMO/Database.class.php:131
- FreePBX\Database->__construct() /var/www/html/admin/libraries/BMO/FreePBX.class.php:72
- FreePBX->__construct() /var/www/html/admin/bootstrap.php:145
- require_once() /etc/freepbx.conf:9
- include_once() /var/lib/asterisk/bin/fwconsole:12
I tried service mysqld start
MySQL Daemon failed to start.
Starting mysqld: [FAILED]
Content of my Mysql.log
190207 23:35:01 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
190207 23:35:22 InnoDB: Initializing buffer pool, size = 8.0M
190207 23:35:22 InnoDB: Completed initialization of buffer pool
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
190207 23:35:23 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files…
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer…
190207 23:35:30 InnoDB: Started; log sequence number 0 8772053
190207 23:35:34 [Note] Event Scheduler: Loaded 0 events
190207 23:35:34 [Note] /usr/libexec/mysqld: ready for connections.
Version: ‘5.1.73’ socket: ‘/var/lib/mysql/mysql.sock’ port: 3306 Source distribution
190504 7:27:25 [ERROR] /usr/libexec/mysqld: Got error 134 from storage engine
190504 7:27:25 [ERROR] /usr/libexec/mysqld: Sort aborted
200504 20:38:50 [Note] /usr/libexec/mysqld: Normal shutdown
200504 20:38:50 [Note] Event Scheduler: Purging the queue. 0 events
200504 20:38:50 InnoDB: Starting shutdown…
200504 20:39:21 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
200504 20:39:21 InnoDB: Initializing buffer pool, size = 8.0M
200504 20:39:21 InnoDB: Completed initialization of buffer pool
200504 20:39:22 InnoDB: Started; log sequence number 0 9459016
200504 20:39:22 [ERROR] /usr/libexec/mysqld: Can’t create/write to file ‘/var/run/mysqld/mysqld.pid’ (Errcode: 2)
200504 20:39:22 [ERROR] Can’t start server: can’t create PID file: No such file or directory
200504 20:39:22 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
200504 20:43:21 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
200504 20:43:22 InnoDB: Initializing buffer pool, size = 8.0M
200504 20:43:22 InnoDB: Completed initialization of buffer pool
200504 20:43:22 InnoDB: Started; log sequence number 0 9459016
200504 20:43:22 [ERROR] /usr/libexec/mysqld: Can’t create/write to file ‘/var/run/mysqld/mysqld.pid’ (Errcode: 2)
200504 20:43:22 [ERROR] Can’t start server: can’t create PID file: No such file or directory
200504 20:43:22 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
200504 21:26:05 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
200504 21:26:06 InnoDB: Initializing buffer pool, size = 8.0M
200504 21:26:06 InnoDB: Completed initialization of buffer pool
200504 21:26:06 InnoDB: Started; log sequence number 0 9459016
200504 21:26:06 [ERROR] /usr/libexec/mysqld: Can’t create/write to file ‘/var/run/mysqld/mysqld.pid’ (Errcode: 2)
200504 21:26:06 [ERROR] Can’t start server: can’t create PID file: No such file or directory
200504 21:26:06 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
200504 21:37:21 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
200504 21:37:21 InnoDB: Initializing buffer pool, size = 8.0M
200504 21:37:21 InnoDB: Completed initialization of buffer pool
200504 21:37:22 InnoDB: Started; log sequence number 0 9459016
200504 21:37:22 [ERROR] /usr/libexec/mysqld: Can’t create/write to file ‘/var/run/mysqld/mysqld.pid’ (Errcode: 2)
200504 21:37:22 [ERROR] Can’t start server: can’t create PID file: No such file or directory
200504 21:37:22 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
I appreciate any help.