package mysql-server-5.7 5.7.23-0ubuntu0.16.04.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.7 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Error came while updating custom mysql cnf file.
etc/mysql/mysql.cnf
/etc/apparmor.
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-server-5.7 5.7.23-
ProcVersionSign
Uname: Linux 4.15.0-32-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
Date: Sat Aug 25 10:10:38 2018
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2018-04-07 (139 days ago)
InstallationMedia: Ubuntu 16.04.4 LTS "Xenial Xerus" - Release amd64 (20180228)
Logs.var.
MySQLConf.
MySQLConf.
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
MySQLConf.
[mysqld_safe]
syslog
MySQLVarLibDirL
ProcCmdline: BOOT_IMAGE=
RelatedPackageV
dpkg 1.18.4ubuntu1.4
apt 1.2.27
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.23-
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
modified.
mtime.conffile.
mtime.conffile.
upstart.
tags: | removed: need-duplicate-check |
Thanks for filing this bug in Ubuntu.
No idea what happened: 25T04:40: 38.044455Z 4 [ERROR] InnoDB: Operating system error number 17 in a file operation. 25T04:40: 38.044493Z 4 [ERROR] InnoDB: Error number 17 means 'File exists' 25T04:40: 38.044505Z 4 [Note] InnoDB: Some operating system error numbers are described at http:// dev.mysql. com/doc/ refman/ 5.7/en/ operating- system- error-codes. html 25T04:40: 38.044515Z 4 [ERROR] InnoDB: Cannot create file './mysql/ innodb_ table_stats. ibd' 25T04:40: 38.044525Z 4 [ERROR] InnoDB: The file './mysql/ innodb_ table_stats. ibd' already exists though the corresponding table did not exist in the InnoDB data dictionary. Have you moved InnoDB .ibd files around without using the SQL commands DISCARD TABLESPACE and IMPORT TABLESPACE, or did mysqld crash in the middle of CREATE TABLE? You can resolve the problem by removing the file './mysql/ innodb_ table_stats. ibd' under the 'datadir' of MySQL. 25T04:41: 14.564124Z 6 [ERROR] InnoDB: Table `mysql` .`innodb_ table_stats` not found. 25T04:41: 14.564157Z 6 [ERROR] InnoDB: Fetch of persistent statistics requested for table `badincdailylog s2018`. `important_ info` but the required system tables mysql.innodb_ table_stats and mysql.innodb_ index_stats are not present or have unexpected structure. Using transient stats instead. 25T04:46: 12.616491Z 61 [ERROR] InnoDB: Table `mysql` .`innodb_ table_stats` not found. 25T04:46: 12.616538Z 61 [ERROR] InnoDB: Fetch of persistent statistics requested for table `blueclub- insight` .`tbl_admin_ user` but the required system tables mysql.innodb_ table_stats and mysql.innodb_ index_stats are not present or have unexpected structure. Using transient stats instead. 25T04:46: 12.631123Z 61 [ERROR] InnoDB: Table `mysql` .`innodb_ table_stats` not found. 25T04:46: 12.631159Z 61 [ERROR] InnoDB: Fetch of persistent statistics requested for table `blueclub- insight` .`tbl_log_ admin` but the required system tables mysql.innodb_ table_stats and mysql.innodb_ index_stats are not present or have unexpected structure. Using transient stats instead.
2018-08-
2018-08-
2018-08-
2018-08-
2018-08-
2018-08-
2018-08-
2018-08-
2018-08-
2018-08-
2018-08-
Maybe different directories were specified, and that broke the mysql upgrade script?