mysql crashes after purge and reinstall with error: "Database files are locked. Daemon already running?"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-8.0 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
during installing mysql
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: mysql-server-8.0 8.0.28-
ProcVersionSign
Uname: Linux 5.13.0-28-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
Date: Wed Feb 16 04:34:36 2022
ErrorMessage: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2022-02-15 (0 days ago)
InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819)
Logs.var.
MySQLConf.
MySQLConf.
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
MySQLConf.
MySQLVarLibDirL
ProcCmdline: BOOT_IMAGE=
Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageV
dpkg 1.19.7ubuntu3
apt 2.0.6
SourcePackage: mysql-8.0
Title: package mysql-server-8.0 8.0.28-
UpgradeStatus: No upgrade log present (probably fresh install)
summary: |
- package mysql-server-8.0 8.0.28-0ubuntu0.20.04.3 failed to - install/upgrade: installed mysql-server-8.0 package post-installation - script subprocess returned error exit status 1 + mysql crashes after purge and reinstall with error: "Database files are + locked. Daemon already running?" |
Thank you for taking the time to report this bug and helping to make Ubuntu better.
Looking into the error: "ERROR: Database files are locked. Daemon already running?" and the statement in mysql's error.log "[InnoDB] Unable to lock ./ibdata1 error: 11" it seems like another instance of mysql was locking the files. Do you know if any separate instances of mysql were running at that time?
Alternatively, this may have been caused by uninstalling and reinstalling mysql. In the dpkg history it shows the following commands:
apt-get install -y mysql-server
apt upgrade
apt-get remove --purge mysql* -y
apt-get autoremove -y
apt-get install -y mysql-server
The previous install may have blocked the second one from completing. Was there a specific reason for uninstalling and reinstalling? Did any errors show up during the first install?
Thanks