Activity log for bug #1610765

Date Who What changed Old value New value Message
2016-08-08 01:38:10 Richard bug added bug
2016-08-08 14:41:58 Robie Basak mysql-5.7 (Ubuntu): status New Invalid
2016-08-08 14:42:04 Robie Basak bug added subscriber Robie Basak
2017-03-04 22:24:45 Gary Mercer bug added subscriber Gary Mercer
2017-03-04 22:26:51 Gary Mercer mysql-5.7 (Ubuntu): status Invalid Confirmed
2017-03-04 23:00:30 Gary Mercer mysql-5.7 (Ubuntu): status Confirmed New
2017-03-04 23:01:14 Gary Mercer mysql-5.7 (Ubuntu): status New Confirmed
2017-03-06 11:07:38 Robie Basak summary mysql server fails to start due to faulty apparmor profile Apparmor refuses mysqld open on /etc/mysql/my.cnf.migrated causing it to fail to start
2017-03-06 11:09:58 Robie Basak description SYMPTOM mysql fails to start IMPACT no sql for you DIAGNOSE: service mysql start Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details. - systemd has all sort of craziness going on so stop that service mysql stop - look at what apparmor is up to tail -F /var/log/syslog | grep -i apparmor - then start again service mysql start output is: - mysql cannot read /etc/mysql Aug 7 18:22:17 c505 kernel: [ 1485.490459] audit: type=1400 audit(1470619337.926:98): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/etc/mysql/my.cnf.migrated" pid=11219 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=109 ouid=0 GET_AROUND: sudo nano /etc/apparmor.d/usr.sbin.mysqld line 25 after: # Allow config access /etc/mysql/** r, -add line: /etc/mysql/* r, systemctl restart apparmor.service service mysql stop service mysql start - problem is gone ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: mysql-server-5.7 5.7.13-0ubuntu0.16.04.2 ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13 Uname: Linux 4.4.0-31-generic x86_64 ApportVersion: 2.20.1-0ubuntu2.1 Architecture: amd64 Date: Sun Aug 7 18:31:32 2016 Logs.var.log.daemon.log: MySQLConf.etc.mysql.conf.d.mysql.cnf: [mysql] MySQLConf.etc.mysql.conf.d.mysqld_safe_syslog.cnf: [mysqld_safe] syslog MySQLConf.etc.mysql.conf.d.mysqldump.cnf: [mysqldump] quick quote-names max_allowed_packet = 16M MySQLConf.etc.mysql.mysql.conf.d.mysqld_safe_syslog.cnf: [mysqld_safe] syslog MySQLVarLibDirListing: ['debian-5.0.flag', 'ib_buffer_pool', 'test', 'ib_logfile1', 'xpc21.err', 'auto.cnf', 'mysql_upgrade_info', 'bugzilla', 'zabbix', 'debian-5.5.flag', 'debian-5.1.flag', 'redmine_default', 'roundcube', 'ib_logfile0', 'ibtmp1', 'sys', 'mysql', 'ibdata1', 'bugs', 'debian-5.7.flag', 'owncloud', 'performance_schema'] ProcEnviron: SHELL=/bin/bash TERM=xterm PATH=(custom, user) LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 SourcePackage: mysql-5.7 UpgradeStatus: Upgraded to xenial on 2016-06-13 (56 days ago) modified.conffile..etc.apparmor.d.usr.sbin.mysqld: [modified] mtime.conffile..etc.apparmor.d.usr.sbin.mysqld: 2016-08-07T18:24:24.264357 [Triage Notes] This bug tracks reports of the following AppArmor denial: Aug 7 18:22:17 c505 kernel: [ 1485.490459] audit: type=1400 audit(1470619337.926:98): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/etc/mysql/my.cnf.migrated" pid=11219 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=109 ouid=0 If you are seeing a denial of /etc/mysql/my.cnf.migrated in this manner, then the underlying issue may affect you too. If you are seeing a denial of some other file, then you have some other AppArmor-related problem that is *not* the issue tracked in this bug. If you believe that your failure is a bug in Ubuntu, please look for other bugs and file a new bug if there isn't a matching one that tracks your different issue. [Original Desription] SYMPTOM mysql fails to start IMPACT no sql for you DIAGNOSE: service mysql start Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details. - systemd has all sort of craziness going on so stop that service mysql stop - look at what apparmor is up to tail -F /var/log/syslog | grep -i apparmor - then start again service mysql start output is: - mysql cannot read /etc/mysql Aug 7 18:22:17 c505 kernel: [ 1485.490459] audit: type=1400 audit(1470619337.926:98): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/etc/mysql/my.cnf.migrated" pid=11219 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=109 ouid=0 GET_AROUND: sudo nano /etc/apparmor.d/usr.sbin.mysqld line 25 after: # Allow config access   /etc/mysql/** r, -add line:   /etc/mysql/* r, systemctl restart apparmor.service service mysql stop service mysql start - problem is gone ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: mysql-server-5.7 5.7.13-0ubuntu0.16.04.2 ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13 Uname: Linux 4.4.0-31-generic x86_64 ApportVersion: 2.20.1-0ubuntu2.1 Architecture: amd64 Date: Sun Aug 7 18:31:32 2016 Logs.var.log.daemon.log: MySQLConf.etc.mysql.conf.d.mysql.cnf: [mysql] MySQLConf.etc.mysql.conf.d.mysqld_safe_syslog.cnf:  [mysqld_safe]  syslog MySQLConf.etc.mysql.conf.d.mysqldump.cnf:  [mysqldump]  quick  quote-names  max_allowed_packet = 16M MySQLConf.etc.mysql.mysql.conf.d.mysqld_safe_syslog.cnf:  [mysqld_safe]  syslog MySQLVarLibDirListing: ['debian-5.0.flag', 'ib_buffer_pool', 'test', 'ib_logfile1', 'xpc21.err', 'auto.cnf', 'mysql_upgrade_info', 'bugzilla', 'zabbix', 'debian-5.5.flag', 'debian-5.1.flag', 'redmine_default', 'roundcube', 'ib_logfile0', 'ibtmp1', 'sys', 'mysql', 'ibdata1', 'bugs', 'debian-5.7.flag', 'owncloud', 'performance_schema'] ProcEnviron:  SHELL=/bin/bash  TERM=xterm  PATH=(custom, user)  LANG=en_US.UTF-8  LANGUAGE=en_US.UTF-8 SourcePackage: mysql-5.7 UpgradeStatus: Upgraded to xenial on 2016-06-13 (56 days ago) modified.conffile..etc.apparmor.d.usr.sbin.mysqld: [modified] mtime.conffile..etc.apparmor.d.usr.sbin.mysqld: 2016-08-07T18:24:24.264357
2017-03-06 11:10:03 Robie Basak mysql-5.7 (Ubuntu): status Confirmed Incomplete
2017-03-06 11:14:15 Robie Basak mysql-5.7 (Ubuntu): importance Undecided Low
2017-03-31 18:09:20 Zach Appelbaum bug added subscriber Zach Appelbaum
2017-04-08 08:44:47 Robert Kofler bug added subscriber Robert Kofler
2017-04-21 11:28:09 Robie Basak removed subscriber Robie Basak
2017-04-21 11:28:12 Robie Basak mysql-5.7 (Ubuntu): status Incomplete Invalid
2017-04-28 02:11:34 discnt bug added subscriber discnt
2017-04-28 02:15:00 discnt mysql-5.7 (Ubuntu): status Invalid Confirmed
2017-07-04 18:23:33 Andreas Hasenack bug added subscriber Andreas Hasenack
2018-02-09 11:22:36 Robie Basak mysql-5.7 (Ubuntu): status Confirmed Invalid
2018-05-01 17:43:16 Jared Fernandez bug added subscriber Jared Fernandez