package mysql-server-5.7 5.7.20-0ubuntu0.17.04.1 failed to install/upgrade: subprocess installed post-installation script re turned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.7 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Got this error during update from 16.04 or 16.10 to 17.04 I think
ProblemType: Package
DistroRelease: Ubuntu 17.04
Package: mysql-server-5.7 5.7.20-
Uname: Linux 4.9.50-
ApportVersion: 2.20.4-0ubuntu4.9
Architecture: amd64
Date: Wed Dec 20 08:59:11 2017
ErrorMessage: subprocess installed post-installation script returned error exit status 1
KernLog:
Logs.var.
MySQLConf.
MySQLConf.
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
MySQLConf.
[mysqld_safe]
syslog
MySQLVarLibDirL
ProcCmdline: root=/dev/sda console=tty1 console=ttyS0 ro devtmpfs.mount=1
RelatedPackageV
dpkg 1.18.10ubuntu2
apt 1.4.6~17.04.1
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.20-
UpgradeStatus: Upgraded to zesty on 2017-12-20 (0 days ago)
tags: | removed: need-duplicate-check |
Hi, 20T13:59: 10.910577Z 0 [Note] InnoDB: Log scan progressed past the checkpoint lsn 83231063627 20T13:59: 10.910600Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 83231064064 20T13:59: 10.911220Z 0 [ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 83231063627 and the end 83231064064. 20T13:59: 10.911241Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error 20T13:59: 11.514745Z 0 [ERROR] Plugin 'InnoDB' init function returned error. 20T13:59: 11.514802Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 20T13:59: 11.514812Z 0 [ERROR] Failed to initialize plugins. 20T13:59: 11.514817Z 0 [ERROR] Aborting
you have mysql installed but your database is broken.
From your Log:
2017-12-
2017-12-
2017-12-
2017-12-
2017-12-
2017-12-
2017-12-
2017-12-
Due to that the service is failing to (re-)start.
But that is a requirement to upgrade the package (to do updates on the upgrade).
You can fixup the DB (or remove it if not needed) or remove mysql completely if not used anyway.