Error on shutdown: Failed deactivating swap /dev/disk/by-id/dm-name-cryptswap1.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi,
I am using encrypted swap on this system for years, it works well, but I recently noticed the following error messages on shutdown:
Mar 16 08:22:31 xeelee systemd[1]: Failed deactivating swap /dev/disk/
Mar 16 08:22:31 xeelee systemd[1]: Stopped (with error) /dev/dm-0.
Mar 16 08:22:31 xeelee systemd[1]: Stopped (with error) /sys/devices/
Mar 16 08:22:31 xeelee systemd[1]: Stopped (with error) /dev/disk/
Mar 16 08:22:31 xeelee systemd[1]: Stopped (with error) /dev/disk/
Mar 16 08:22:31 xeelee systemd[1]: Failed deactivating swap /dev/disk/
Mar 16 08:22:31 xeelee systemd[1]: Failed deactivating swap /dev/dm-0.
Mar 16 08:22:31 xeelee systemd[1]: Stopped (with error) /dev/disk/
Mar 16 08:22:31 xeelee systemd[1]: Failed deactivating swap /dev/disk/
Here is a summary of my setup (more details added by apport elsewhere):
# cat /etc/fstab
[...]
/dev/mapper/
# cat /etc/crypttab
cryptswap1 /dev/sda2 /dev/urandom swap,cipher=
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 238.5G 0 disk
├─sda1 8:1 0 236.5G 0 part /
└─sda2 8:2 0 2G 0 part
└─cryptswap1 253:0 0 2G 0 crypt [SWAP]
# blkid
[...]
/dev/sda2: PARTUUID=
ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: cryptsetup 2:1.7.2-0ubuntu1
Uname: Linux 4.10.3-
ApportVersion: 2.20.4-0ubuntu2
Architecture: amd64
CurrentDesktop: MATE
Date: Thu Mar 16 09:51:39 2017
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cryptsetup
UpgradeStatus: Upgraded to zesty on 2017-03-12 (3 days ago)
cmdline: BOOT_IMAGE=
crypttab: cryptswap1 /dev/sda2 /dev/urandom swap,cipher=
On another system upgraded to zesty I get different error messages:
avril 10 13:28:05 vougeot systemd[1]: dev-disk- by\x2duuid- 4c6b212c\ x2d8801\ x2d42a6\ x2dbdc3\ x2d422a9d2cfedd .device: Job dev-disk- by\x2duuid- 4c6b212c\ x2d8801\ x2d42a6\ x2dbdc3\ x2d422a9d2cfedd .device/ stop timed out. by-uuid/ 4c6b212c- 8801-42a6- bdc3-422a9d2cfe dd. by\x2duuid- 4c6b212c\ x2d8801\ x2d42a6\ x2dbdc3\ x2d422a9d2cfedd .device: Job dev-disk- by\x2duuid- 4c6b212c\ x2d8801\ x2d42a6\ x2dbdc3\ x2d422a9d2cfedd .device/ stop failed with result 'timeout'. by\x2did- dm\x2duuid\ x2dCRYPT\ x2dPLAIN\ x2dcryptswap1. device: Job dev-disk- by\x2did- dm\x2duuid\ x2dCRYPT\ x2dPLAIN\ x2dcryptswap1. device/ stop timed out. by-id/dm- uuid-CRYPT- PLAIN-cryptswap 1. by\x2did- dm\x2duuid\ x2dCRYPT\ x2dPLAIN\ x2dcryptswap1. device: Job dev-disk- by\x2did- dm\x2duuid\ x2dCRYPT\ x2dPLAIN\ x2dcryptswap1. device/ stop failed with result 'timeout'. x2d0.device/ stop timed out. x2d0.device/ stop failed with result 'timeout'. by\x2did- dm\x2dname\ x2dcryptswap1. device: Job dev-disk- by\x2did- dm\x2dname\ x2dcryptswap1. device/ stop timed out. by-id/dm- name-cryptswap1 . by\x2did- dm\x2dname\ x2dcryptswap1. device: Job dev-disk- by\x2did- dm\x2dname\ x2dcryptswap1. device/ stop failed with result 'timeout'. virtual- block-dm\ x2d0.device: Job sys-devices- virtual- block-dm\ x2d0.device/ stop timed out. virtual/ block/dm- 0. virtual- block-dm\ x2d0.device: Job sys-devices- virtual- block-dm\ x2d0.device/ stop failed with result 'timeout'.
avril 10 13:28:05 vougeot systemd[1]: Timed out stopping /dev/disk/
avril 10 13:28:05 vougeot systemd[1]: dev-disk-
avril 10 13:28:05 vougeot systemd[1]: dev-disk-
avril 10 13:28:05 vougeot systemd[1]: Timed out stopping /dev/disk/
avril 10 13:28:05 vougeot systemd[1]: dev-disk-
avril 10 13:28:05 vougeot systemd[1]: dev-dm\x2d0.device: Job dev-dm\
avril 10 13:28:05 vougeot systemd[1]: Timed out stopping /dev/dm-0.
avril 10 13:28:05 vougeot systemd[1]: dev-dm\x2d0.device: Job dev-dm\
avril 10 13:28:05 vougeot systemd[1]: dev-disk-
avril 10 13:28:05 vougeot systemd[1]: Timed out stopping /dev/disk/
avril 10 13:28:05 vougeot systemd[1]: dev-disk-
avril 10 13:28:05 vougeot systemd[1]: sys-devices-
avril 10 13:28:05 vougeot systemd[1]: Timed out stopping /sys/devices/
avril 10 13:28:05 vougeot systemd[1]: sys-devices-