package mysql-server-5.7 5.7.17-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
Mysql error prevents ubuntu server upgrade
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-server-5.7 5.7.17-
ProcVersionSign
Uname: Linux 3.13.0-112-generic i686
ApportVersion: 2.20.1-0ubuntu2.5
AptOrdering:
mysql-server-5.7: Configure
mysql-server: Configure
NULL: ConfigurePending
Architecture: i386
Date: Fri Mar 17 14:55:46 2017
DpkgHistoryLog: Start-Date: 2017-03-17 14:55:41
ErrorMessage: subprocess installed post-installation script returned error exit status 1
Logs.var.
MySQLConf.
MySQLConf.
[mysqld_safe]
syslog
MySQLConf.
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
MySQLConf.
[mysqld_safe]
syslog
MySQLVarLibDirL
ProcCmdline: BOOT_IMAGE=
RelatedPackageV
dpkg 1.18.4ubuntu1.1
apt 1.2.19
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.17-
UpgradeStatus: Upgraded to xenial on 2017-03-17 (0 days ago)
tags: | removed: need-duplicate-check |
Hi, 17T18:47: 56.048534Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 17T18:47: 56.049259Z 0 [ERROR] InnoDB: mmap(136151040 bytes) failed; errno 12 17T18:47: 56.049290Z 0 [ERROR] InnoDB: Cannot allocate memory for the buffer pool 17T18:47: 56.049317Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error 17T18:47: 56.049343Z 0 [ERROR] Plugin 'InnoDB' init function returned error. 17T18:47: 56.049358Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 17T18:47: 56.049370Z 0 [ERROR] Failed to initialize plugins. 17T18:47: 56.049379Z 0 [ERROR] Aborting
thank you for your bug report and your help to make Ubuntu better.
In the Log I have found:
2017-03-
2017-03-
2017-03-
2017-03-
2017-03-
2017-03-
2017-03-
2017-03-
From this time on there are a few more like these, but the repedition might just be due to you retrying to upgrade the mysql package.
The MYSQL-Server is restarted on upgrade and the log indicates that this restart seems to fail.
The last good startup was at "170317 14:32:20 [Note] /usr/sbin/mysqld: ready for connections." with the old version "5.5.54".
Now 128 MB does not seem too much, yet I wanted to ask to be sure if this system is very small or in general memory constrained?
I see int the dmesg that it is a 256MB System, maybe it is just too low of a limit to run the newer mysql server with your configuration?
We usually try to work through an installation with 256MB, but I'm not so sure if that is true with "bigger" extra software like mysql. In your case it seems to want 50% of your memory, with the kernel having another ~15%.
Maybe you could either give the system more memory or consider shrinking the buffer pool size, be aware that this gets you lower than the buffer pool chunk, so you need to adapt that as well. /dev.mysql. com/doc/ refman/ 5.7/en/ innodb- buffer- pool-resize. html
https:/
There are certain other tweaks that can be tried to shrink the needs, like [1].
Common options also often include adding swap [2], decrease the need of mysql via more in [2] or in [3]. The same is in [4], I think you totally see where this is going.
[1]: http:// serverfault. com/questions/ 789244/ innodb- not-really- out-of- memory/ 790301# 790301 /www.digitaloce an.com/ community/ questions/ mysql-server- keeps-stopping- unexpectedly askubuntu. com/questions/ 457923/ why-did- installation- of-mysql- 5-6-on- ubuntu- 14-04-fail/ 457932# 457932 www.webtraffice xchange. com/solved- mysql-crash- fatal-error- cannot- allocate- memory- buffer- pool
[2]: https:/
[3]: http://
[4]: http://