Recently I noticed mysql failed after bootstraping on a fresh cluster so I checked /etc/init.d/mysql status
● mysql.service - LSB: Start and stop the mysql (Percona XtraDB Cluster) daemon
Loaded: loaded (/etc/init.d/mysql)
Active: failed (Result: exit-code) since Tue 2016-05-24 22:37:02 IRDT; 14h ago
Process: 2313 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)
May 24 22:37:02 1-dbpool-a01 mysql[2313]: Starting MySQL (Percona Xtr...
May 24 22:37:02 1-dbpool-a01 mysql[2313]: failed!
May 24 22:37:02 1-dbpool-a01 systemd[1]: mysql.service: control proc...1
May 24 22:37:02 1-dbpool-a01 systemd[1]: Failed to start LSB: Start ....
May 24 22:37:02 1-dbpool-a01 systemd[1]: Unit mysql.service entered ....
Hint: Some lines were ellipsized, use -l to show in full.
I checked the error file and no error detected and I loged in to mysql and all works with no errors
so whats wrong with init script ? where is problem ? how can I find why service failed ?
Distributor ID: Debian
Description: Debian GNU/Linux 8.4 (jessie)
Release: 8.4
Codename: jessie
Linux 1-vm-dbpool-a01 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06) x86_64 GNU/Linux
mysql Ver 14.14 Distrib 5.6.29-76.2, for debian-linux-gnu (x86_64) using 6.3
ii percona-release 0.1-3.jessie all Package to install Percona gpg key and APT repo
ii percona-xtrabackup 2.3.4-1.jessie amd64 Open source backup tool for InnoDB and XtraDB
ii percona-xtradb-cluster-56 5.6.29-25.15-1.jessie amd64 Percona XtraDB Cluster with Galera
ii percona-xtradb-cluster-client-5.6 5.6.29-25.15-1.jessie amd64 Percona XtraDB Cluster database client binaries
ii percona-xtradb-cluster-common-5.6 5.6.29-25.15-1.jessie amd64 Percona XtraDB Cluster database common files (e.g. /etc/mysql/my.cnf)
ii percona-xtradb-cluster-galera-3 3.15-1.jessie amd64 Metapackage for latest version of galera3.
ii percona-xtradb-cluster-galera-3.x 3.15-1.jessie amd64 Galera components of Percona XtraDB Cluster
ii percona-xtradb-cluster-server-5.6 5.6.29-25.15-1.jessie amd64 Percona XtraDB Cluster database server binaries
if you need further information let me know
thank you
I am facing the same issue mentioned here. Mysql seems to be working fine. But when tried to view the status of mysql.service, it seems that systemctl doesn’t track the service correctly.
Mar 26 14:42:05 fhm001 systemd[1]: Starting LSB: Start and stop the mysql (Percona XtraDB Cluster) daemon…
Mar 26 14:42:05 fhm001 mysql[12139]: * Starting MySQL (Percona XtraDB Cluster) database server mysqld
Mar 26 14:42:05 fhm001 mysql[12139]: * Stale PID file found: /var/lib/mysql/fhm001.pid with 112091
Mar 26 14:42:06 fhm001 mysql[12139]: * Please take a look at the syslog.
Mar 26 14:42:06 fhm001 mysql[12139]: …fail!
Mar 26 14:42:06 fhm001 systemd[1]: mysql.service: Control process exited, code=exited status=1
Mar 26 14:42:06 fhm001 systemd[1]: Failed to start LSB: Start and stop the mysql (Percona XtraDB Cluster) daemon.
Mar 26 14:42:06 fhm001 systemd[1]: mysql.service: Unit entered failed state.
Mar 26 14:42:06 fhm001 systemd[1]: mysql.service: Failed with result ‘exit-code’.
Looking for some workaround on this one. We have gone for Percona upgrade recently. Not sure if it’s been the cause of this strange issue.
mysql -V
mysql Ver 14.14 Distrib 5.7.20-18, for debian-linux-gnu (x86_64) using 6.3