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
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.7 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Happens while updating mysql.
Error while updating:
Setting up mysql-server-5.7 (5.7.24-
Cannot stat file /proc/3163/fd/1023: Permission denied
Cannot stat file /proc/3351/fd/5: Permission denied
Cannot stat file /proc/3351/fd/6: Permission denied
Cannot stat file /proc/3351/fd/7: Permission denied
Cannot stat file /proc/3351/fd/8: Permission denied
Cannot stat file /proc/3351/fd/9: Permission denied
Cannot stat file /proc/3351/fd/10: Permission denied
Cannot stat file /proc/3351/fd/11: Permission denied
Cannot stat file /proc/3351/fd/64: Permission denied
Cannot stat file /proc/3351/fd/70: Permission denied
Cannot stat file /proc/3351/fd/1023: Permission denied
Cannot stat file /proc/3370/fd/6: Permission denied
Cannot stat file /proc/3370/fd/7: Permission denied
Cannot stat file /proc/3370/fd/8: Permission denied
Cannot stat file /proc/3370/fd/9: Permission denied
Cannot stat file /proc/3370/fd/10: Permission denied
Cannot stat file /proc/3370/fd/11: Permission denied
Cannot stat file /proc/3370/fd/12: Permission denied
Cannot stat file /proc/3385/fd/4: Permission denied
Cannot stat file /proc/3385/fd/6: Permission denied
Cannot stat file /proc/3385/fd/7: Permission denied
Cannot stat file /proc/3385/fd/8: Permission denied
Cannot stat file /proc/3385/fd/9: Permission denied
Cannot stat file /proc/3403/fd/6: Permission denied
Cannot stat file /proc/3403/fd/7: Permission denied
Cannot stat file /proc/3403/fd/8: Permission denied
Cannot stat file /proc/3403/fd/9: Permission denied
Cannot stat file /proc/3403/fd/10: Permission denied
Cannot stat file /proc/3403/fd/11: Permission denied
Cannot stat file /proc/3403/fd/12: Permission denied
Cannot stat file /proc/3403/fd/16: Permission denied
Cannot stat file /proc/3403/fd/17: Permission denied
Checking if update is needed.
This installation of MySQL is already upgraded to 5.7.24, use --force if you still need to run mysql_upgrade
Cannot stat file /proc/3163/fd/1023: Permission denied
Cannot stat file /proc/3351/fd/5: Permission denied
Cannot stat file /proc/3351/fd/6: Permission denied
Cannot stat file /proc/3351/fd/7: Permission denied
Cannot stat file /proc/3351/fd/8: Permission denied
Cannot stat file /proc/3351/fd/9: Permission denied
Cannot stat file /proc/3351/fd/10: Permission denied
Cannot stat file /proc/3351/fd/11: Permission denied
Cannot stat file /proc/3351/fd/64: Permission denied
Cannot stat file /proc/3351/fd/70: Permission denied
Cannot stat file /proc/3351/fd/1023: Permission denied
Cannot stat file /proc/3370/fd/6: Permission denied
Cannot stat file /proc/3370/fd/7: Permission denied
Cannot stat file /proc/3370/fd/8: Permission denied
Cannot stat file /proc/3370/fd/9: Permission denied
Cannot stat file /proc/3370/fd/10: Permission denied
Cannot stat file /proc/3370/fd/11: Permission denied
Cannot stat file /proc/3370/fd/12: Permission denied
Cannot stat file /proc/3385/fd/4: Permission denied
Cannot stat file /proc/3385/fd/6: Permission denied
Cannot stat file /proc/3385/fd/7: Permission denied
Cannot stat file /proc/3385/fd/8: Permission denied
Cannot stat file /proc/3385/fd/9: Permission denied
Cannot stat file /proc/3403/fd/6: Permission denied
Cannot stat file /proc/3403/fd/7: Permission denied
Cannot stat file /proc/3403/fd/8: Permission denied
Cannot stat file /proc/3403/fd/9: Permission denied
Cannot stat file /proc/3403/fd/10: Permission denied
Cannot stat file /proc/3403/fd/11: Permission denied
Cannot stat file /proc/3403/fd/12: Permission denied
Cannot stat file /proc/3403/fd/16: Permission denied
Cannot stat file /proc/3403/fd/17: Permission denied
^Cdpkg: error processing package mysql-server-5.7 (--configure):
installed mysql-server-5.7 package post-installation script subprocess was interrupted
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
Errors were encountered while processing:
mysql-server-5.7
mysql-server
ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: mysql-server-5.7 5.7.24-
ProcVersionSign
Uname: Linux 4.15.0-38-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.4
Architecture: amd64
Date: Fri Nov 9 12:35:24 2018
ErrorMessage: installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2018-08-13 (87 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
Logs.var.
MySQLConf.
MySQLConf.
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
MySQLConf.
[mysqld_safe]
syslog
MySQLVarLibDirL
ProcCmdline: BOOT_IMAGE=
Python3Details: /usr/bin/python3.6, Python 3.6.6, python3-minimal, 3.6.5-3ubuntu1
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageV
dpkg 1.19.0.5ubuntu2.1
apt 1.6.6
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.24-
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
mtime.conffile.
Hi aji, 09T06:38: 17.243476Z 0 [ERROR] InnoDB: Unable to lock ./ibdata1 error: 11 09T06:38: 17.243536Z 0 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files. 09T06:38: 17.243578Z 0 [Note] InnoDB: Unable to open the first data file 09T06:38: 17.243617Z 0 [ERROR] InnoDB: Operating system error number 11 in a file operation. 09T06:38: 17.243651Z 0 [ERROR] InnoDB: Error number 11 means 'Resource temporarily unavailable' 09T06:38: 17.243679Z 0 [Note] InnoDB: Some operating system error numbers are described at http:// dev.mysql. com/doc/ refman/ 5.7/en/ operating- system- error-codes. html 09T06:38: 17.243705Z 0 [ERROR] InnoDB: Cannot open datafile './ibdata1' 09T06:38: 17.243754Z 0 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_ data_file_ path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data! 09T06:38: 17.243781Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Cannot open a file 09T06:38: 17.845925Z 0 [ERROR] Plugin 'InnoDB' init function returned error. 09T06:38: 17.845993Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 09T06:38: 17.846020Z 0 [ERROR] Failed to initialize builtin plugins.
I see in your log this:
2018-11-
2018-11-
2018-11-
2018-11-
2018-11-
2018-11-
2018-11-
2018-11-
2018-11-
2018-11-
2018-11-
2018-11-
That seems like either a (very) unclean stop of a former service, but more likely a second mysql already running (or mariab or others using similar file layouts).
I can't really action on that as the log is not pointing to an actual bug in Ubuntu, you'd have to check your local setup for the issue that I outlined above to get it right.