Create a gist now

Instantly share code, notes, and snippets.

@Anticom /-var-log-apt-term.log Secret
Last active Sep 24, 2017

What would you like to do?
...
Setting up mysql-client-core-5.7 (5.7.19-0ubuntu0.16.04.1) ...
Setting up mysql-client-5.7 (5.7.19-0ubuntu0.16.04.1) ...
Setting up mysql-server-core-5.7 (5.7.19-0ubuntu0.16.04.1) ...
Setting up libevent-core-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1) ...
Setting up mysql-server-5.7 (5.7.19-0ubuntu0.16.04.1) ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mysql, action "start" failed.
<E2><97><8F> mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2017-09-24 20:14:13 UTC; 15ms ago
Process: 28205 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre ESC[0;1;31m(code=exited, status=1/FAILURE)ESC[0m
Sep 24 20:14:13 owncloud.fbihome.de systemd[1]: ESC[0;1;39mmysql.service: Unit entered failed state.ESC[0m
Sep 24 20:14:13 owncloud.fbihome.de systemd[1]: ESC[0;1;39mmysql.service: Failed with result 'exit-code'.ESC[0m
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libhtml-tagset-perl (3.20-2) ...
Setting up liburi-perl (1.71-1) ...
Setting up libhtml-parser-perl (3.72-1) ...
Setting up libcgi-pm-perl (4.26-1) ...
Setting up libfcgi-perl (0.77-1build1) ...
Setting up libcgi-fast-perl (1:2.10-1) ...
Setting up libencode-locale-perl (1.05-1) ...
Setting up libhtml-template-perl (2.95-2) ...
Setting up libhttp-date-perl (6.02-1) ...
Setting up libio-html-perl (1.001-1) ...
Setting up liblwp-mediatypes-perl (6.02-1) ...
Setting up libhttp-message-perl (6.11-1) ...
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.7; however:
Package mysql-server-5.7 is not configured yet.
dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
...
# systemctl status mysql.service
● mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Sun 2017-09-24 20:23:45 UTC; 25min ago
Process: 924 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=1/FAILURE)
Sep 24 20:23:45 <host> systemd[1]: Failed to start MySQL Community Server.
Sep 24 20:23:45 <host> systemd[1]: mysql.service: Unit entered failed state.
Sep 24 20:23:45 <host> systemd[1]: mysql.service: Failed with result 'exit-code'.
Sep 24 20:23:45 <host> systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
Sep 24 20:23:45 <host> systemd[1]: Stopped MySQL Community Server.
Sep 24 20:23:45 <host> systemd[1]: mysql.service: Start request repeated too quickly.
Sep 24 20:23:45 <host> systemd[1]: Failed to start MySQL Community Server.
Owner

Anticom commented Sep 24, 2017

$ dmesg | fgrep mysql
# ...
[ 2439.600812] audit: type=1400 audit(1506286897.954:23): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/sys/devices/system/node/" pid=1220 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2439.601198] audit: type=1400 audit(1506286897.954:24): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/proc/1220/status" pid=1220 comm= mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2442.727505] audit: type=1400 audit(1506286901.078:25): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/proc/1223/status" pid=1223 comm= mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2442.727766] audit: type=1400 audit(1506286901.078:26): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/sys/devices/system/node/" pid=1223 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 2442.727962] audit: type=1400 audit(1506286901.078:27): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/proc/1223/status" pid=1223 comm= mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment