package mysql-server-8.0 8.0.29-0ubuntu0.22.04.2 failed to install/upgrade: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1

Bug #1980619 reported by Ahvi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-8.0 (Ubuntu)
New
Undecided
Unassigned

Bug Description

mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Mon 2022-07-04 10:31:45 IST; 10ms ago
    Process: 18614 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
    Process: 18622 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
   Main PID: 18622 (code=exited, status=1/FAILURE)
     Status: "Server startup in progress"
      Error: 22 (Invalid argument)
        CPU: 422ms
dpkg: error processing package mysql-server-8.0 (--configure):
 installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          dpkg: dependency
problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-8.0; however:
  Package mysql-server-8.0 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mysql-server-8.0
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: mysql-server-8.0 8.0.29-0ubuntu0.22.04.2
ProcVersionSignature: Ubuntu 5.15.0-39.42-generic 5.15.35
Uname: Linux 5.15.0-39-generic x86_64
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl icp
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
Date: Mon Jul 4 10:21:16 2022
ErrorMessage: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2022-06-17 (16 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
Logs.var.log.daemon.log:

MySQLConf.etc.mysql.conf.d.mysql.cnf: [mysql]
MySQLConf.etc.mysql.conf.d.mysqldump.cnf:
 [mysqldump]
 quick
 quote-names
 max_allowed_packet = 16M
MySQLConf.etc.mysql.my.cnf: Error: [Errno 40] Too many levels of symbolic links: '/etc/mysql/my.cnf'
MySQLVarLibDirListing: ['debian-5.7.flag', '#innodb_temp', 'client-cert.pem', '#ib_16384_1.dblwr', '#ib_16384_0.dblwr', 'ca.pem', 'ibdata1', 'server-cert.pem', 'private_key.pem', 'client-key.pem', 'sys', 'ib_logfile0', 'binlog.index', 'auto.cnf', 'undo_002', 'mysql', 'server-key.pem', 'public_key.pem', 'ib_logfile1', 'undo_001', 'mysql.ibd', 'ca-key.pem', 'performance_schema', 'ib_buffer_pool']
ProcCmdline: BOOT_IMAGE=/BOOT/ubuntu_0e17ev@/vmlinuz-5.15.0-39-generic root=ZFS=rpool/ROOT/ubuntu_0e17ev ro quiet splash vt.handoff=1
Python3Details: /usr/bin/python3.10, Python 3.10.4, python3-minimal, 3.10.4-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.1
 apt 2.4.5
SourcePackage: mysql-8.0
Title: package mysql-server-8.0 8.0.29-0ubuntu0.22.04.2 failed to install/upgrade: installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ahvi (ahvi) wrote :
Revision history for this message
Lena Voytek (lvoytek) wrote :

Hello,

From your error log I see:
2022-07-04T04:51:15.536951Z 1 [ERROR] [MY-012963] [InnoDB] Log file ./ib_logfile1 is of different size 0 bytes than other log files 18874368 bytes!

This is due to an issue with zfs that will be fixed in the upcoming kernel update. I will mark this bug as a duplicate of that issue for further reference.

Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.