MySQL restarts randomly fail on our CI systems. This is easily reproducible: root@smartserver:~# cp /tmp/mysql.cnf . && systemctl restart mysql && echo "Yes" Yes root@smartserver:~# cp /tmp/mysql.cnf . && systemctl restart mysql && echo "Yes" Yes root@smartserver:~# cp /tmp/mysql.cnf . && systemctl restart mysql && echo "Yes" Job for mysql.service failed. See "systemctl status mysql.service" and "journalctl -xe" for details. There also seems some apparmor issue: [ 7389.111704] audit: type=1400 audit(1509404778.110:829): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/sys/devices/system/node/" pid=15618 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=112 ouid=0 The apparmor issue is reported in https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1610765, https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1658233 and https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1658239