Live/overlayfs apparmor DENIED open "upper/etc/mysql/conf.d" mysql-server-5.7 package post-installation script subprocess returned error exit status 1

Bug #1804334 reported by azmat mehmood
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
New
Undecided
Unassigned
mysql-5.7 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This occurs when installing on an overlayfs, typically in the installer Try ... live environment when apparmor denies a read of the mysql configuration:

audit: type=1400 audit(1542755429.021:244): apparmor="DENIED" operation="open" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/mysqld" name="upper/etc/mysql/conf.d" pid=7525 comm="mysqld" requested_mask="r"

this causes

/usr/share/mysql/mysql-systemd-start

to fail and return exit code 1 when called during the POSTINST phase of package configuration.

----

I was installing mysql-server but error came.

I have zero knowledge about linux and ubuntu

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: mysql-server-5.7 5.7.24-0ubuntu0.18.04.1
ProcVersionSignature: Ubuntu 4.15.0-29.31-generic 4.15.18
Uname: Linux 4.15.0-29-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CasperVersion: 1.394
Date: Tue Nov 20 23:10:29 2018
ErrorMessage: installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1
LiveMediaBuild: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
Logs.var.log.daemon.log:

MySQLConf.etc.mysql.conf.d.mysql.cnf: [mysql]
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: ['ib_buffer_pool', 'debian-5.7.flag', 'sys', 'performance_schema', 'mysql', 'auto.cnf', 'ib_logfile0', 'ib_logfile1', 'ibdata1']
ProcCmdline: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/hostname.seed cdrom-detect/try-usb=true noprompt floppy.allowed_drive_mask=0 ignore_uuid boot=casper quiet splash ---
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3ubuntu1
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2
 apt 1.6.3
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.24-0ubuntu0.18.04.1 failed to install/upgrade: installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
azmat mehmood (azmatmehmood) wrote :
tags: removed: need-duplicate-check
TJ (tj)
summary: - package mysql-server-5.7 5.7.24-0ubuntu0.18.04.1 failed to
- install/upgrade: installed mysql-server-5.7 package post-installation
- script subprocess returned error exit status 1
+ Live/overlayfs apparmor DENIED open "upper/etc/mysql/conf.d" mysql-
+ server-5.7 package post-installation script subprocess returned error
+ exit status 1
description: updated
TJ (tj)
Changed in mysql-5.7 (Ubuntu):
status: New → Confirmed
Revision history for this message
Paride Legovini (paride) wrote :

Thanks for this bug report. This is in my opinion more a casper (= live system) issue than an issue with the specific package providing the AppArmor profile, so I added a casper task.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.