Comment 0 for bug 2000186

Revision history for this message
Aaron Haviland (aaron-haviland) wrote : update fails on cloud server (invoke-rc.d restart failed)

When upgrading from 0.8.8-1ubuntu1 to 0.8.8-1ubuntu1.22.04.1, dpkg fails.
Based on the error messages, I believe this to be due to running under a paravirt kernel.

Package does not seem to offer a way to disable without uninstalling, which also forces the removal of the meta-package ubuntu-server.

Manually running multipathd to obtain verbose output indicates this is most likely due to missing kernel module:

root@localhost:~# multipathd -d -s -v 3
--------start up--------
read /etc/multipath.conf
No configuration dir '/etc/multipath/conf.d'
polling interval: 5, max: 20
loading //lib/multipath/libchecktur.so checker
checker tur: message table size = 3
loading //lib/multipath/libprioconst.so prioritizer
_init_foreign: foreign library "nvme" is not enabled
multipath-tools v0.8.8 (03/12, 2021)
libdevmapper version 1.02.175
kernel device mapper v4.47.0
DM multipath kernel driver not loaded
set open fds limit to 1048576/1048576
Couldn't bind to ux_socket, error 98
could not create uxsock: 98
cli listener failed to start
--------shut down-------
unlink pidfile
unloading tur checker
unloading const prioritizer

apt/dpkg output:

Setting up multipath-tools (0.8.8-1ubuntu1.22.04.1) ...
Job for multipathd.service failed because the control process exited with error code.
See "systemctl status multipathd.service" and "journalctl -xeu multipathd.service" for details.
invoke-rc.d: initscript multipath-tools, action "restart" failed.
× multipathd.service - Device-Mapper Multipath Device Controller
     Loaded: loaded (/lib/systemd/system/multipathd.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2022-12-21 01:26:36 UTC; 14ms ago
TriggeredBy: ● multipathd.socket
    Process: 83381 ExecStartPre=/sbin/modprobe -a scsi_dh_alua scsi_dh_emc scsi_dh_rdac dm-multipath (code=exited, status=1/FAILURE)
    Process: 83382 ExecStart=/sbin/multipathd -d -s (code=exited, status=1/FAILURE)
   Main PID: 83382 (code=exited, status=1/FAILURE)
     Status: "configure"
        CPU: 30ms

Dec 21 01:26:36 localhost modprobe[83381]: modprobe: WARNING: Module scsi_dh_emc not found in directory /lib/modules/6.0.2-x86_64-linode157
Dec 21 01:26:36 localhost modprobe[83381]: modprobe: WARNING: Module scsi_dh_rdac not found in directory /lib/modules/6.0.2-x86_64-linode157
Dec 21 01:26:36 localhost modprobe[83381]: modprobe: WARNING: Module dm-multipath not found in directory /lib/modules/6.0.2-x86_64-linode157
Dec 21 01:26:36 localhost multipathd[83382]: --------start up--------
Dec 21 01:26:36 localhost multipathd[83382]: read /etc/multipath.conf
Dec 21 01:26:36 localhost multipathd[83382]: DM multipath kernel driver not loaded
Dec 21 01:26:36 localhost multipathd[83382]: path checkers start up
Dec 21 01:26:36 localhost systemd[1]: multipathd.service: Main process exited, code=exited, status=1/FAILURE
Dec 21 01:26:36 localhost systemd[1]: multipathd.service: Failed with result 'exit-code'.
Dec 21 01:26:36 localhost systemd[1]: Failed to start Device-Mapper Multipath Device Controller.
dpkg: error processing package multipath-tools (--configure):
 installed multipath-tools package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Errors were encountered while processing:
 multipath-tools
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: multipath-tools 0.8.8-1ubuntu1.22.04.1
Uname: Linux 6.0.2-x86_64-linode157 x86_64
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Wed Dec 21 01:18:01 2022
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
 TERM=screen-256color-bce
 XDG_RUNTIME_DIR=<set>
 PATH=(custom, no user)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: multipath-tools
UpgradeStatus: No upgrade log present (probably fresh install)