[Bug 1208161] New: Timeout waiting for encrypted disk
https://bugzilla.suse.com/show_bug.cgi?id=1208161 Bug ID: 1208161 Summary: Timeout waiting for encrypted disk Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Tumbleweed Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-bugs@opensuse.org Reporter: opensuse@mike.franken.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Since openSUSE Tumbleweed 20230209 and kernel 6.1.10-1 I got an additional "sleep" time when booting the system. I suppose the following log entries give a hint on the reason. To my surprise the system nevertheless starts normally afterwards. Feb 11 15:50:14 transformer systemd[1]: dev-disk-by\x2duuid-47c6783a\x2d2b0\x24740\x2abd3\x24f0f43f63d8c.device: Job dev-disk-by\x2duuid-47c6783a\x2d2b0\x24740\x2abd3\x24f0f43f63d8c.device/start timed out. Feb 11 15:50:14 transformer systemd[1]: Timed out waiting for device /dev/disk/by-uuid/47c6783a-2b0$740*bd3$f0f43f63d8c. Feb 11 15:50:14 transformer systemd[1]: Dependency failed for Cryptography Setup for root. Feb 11 15:50:14 transformer systemd[1]: Dependency failed for Local Encrypted Volumes. Feb 11 15:50:14 transformer systemd[1]: cryptsetup.target: Job cryptsetup.target/start failed with result 'dependency'. Feb 11 15:50:14 transformer systemd[1]: systemd-cryptsetup@root.service: Job systemd-cryptsetup@root.service/start failed with result 'dependency'. Feb 11 15:50:14 transformer systemd[1]: dev-disk-by\x2duuid-47c6783a\x2d2b0\x24740\x2abd3\x24f0f43f63d8c.device: Job dev-disk-by\x2duuid-47c6783a\x2d2b0\x24740\x2abd3\x24f0f43f63d8c.device/start failed with result 'timeout'. Feb 11 15:50:14 transformer systemd[1]: Reached target Block Device Preparation for /dev/mapper/root. -- You are receiving this mail because: You are the assignee for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1208161 https://bugzilla.suse.com/show_bug.cgi?id=1208161#c1 --- Comment #1 from Michael Hirmke <opensuse@mike.franken.de> --- Created attachment 864837 --> https://bugzilla.suse.com/attachment.cgi?id=864837&action=edit boot.log -- You are receiving this mail because: You are the assignee for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1208161 https://bugzilla.suse.com/show_bug.cgi?id=1208161#c2 --- Comment #2 from Michael Hirmke <opensuse@mike.franken.de> --- Does not happen with kernel 6.1.8-1. -- You are receiving this mail because: You are the assignee for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1208161 https://bugzilla.suse.com/show_bug.cgi?id=1208161#c3 --- Comment #3 from Michael Hirmke <opensuse@mike.franken.de> --- No idea? -- You are receiving this mail because: You are the assignee for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1208161 https://bugzilla.suse.com/show_bug.cgi?id=1208161#c4 --- Comment #4 from Michael Hirmke <opensuse@mike.franken.de> --- With kernel 6.1.12-1-default and openSUSE Tumbleweed 20230217 the problem still exists, but does not occur on every boot. -- You are receiving this mail because: You are the assignee for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1208161 https://bugzilla.suse.com/show_bug.cgi?id=1208161#c5 --- Comment #5 from Michael Hirmke <opensuse@mike.franken.de> --- Where does this crippled device name come from? /dev/disk/by-uuid/47c6783a-2b0$740*bd3$f0f43f63d8c I can't find any file, that contains this string with two dollar characters and an asterisk in it. And of course it does not exist in the filesystem. -- You are receiving this mail because: You are the assignee for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1208161 https://bugzilla.suse.com/show_bug.cgi?id=1208161#c6 --- Comment #6 from Michael Hirmke <opensuse@mike.franken.de> --- I found out, that if I wait for about 30 seconds before entering the LUKS passphrase for the root partition in the plymouth dialog, I don't get the additional boot time and the "timeout". Instead I get systemd[1]: Unnecessary job was removed for /dev/disk/by-uuid/47c6783a-2b0$740*bd3$f0f43f63d8c. as in kernel 6.8.1. This does neither explain to me, why this crippled device name exists, nor why waiting 30 seconds will help, but perhaps someone else can see whats going on here. -- You are receiving this mail because: You are the assignee for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1208161 https://bugzilla.suse.com/show_bug.cgi?id=1208161#c7 --- Comment #7 from Michael Hirmke <opensuse@mike.franken.de> --- (In reply to Michael Hirmke from comment #6)
I found out, that if I wait for about 30 seconds before entering the LUKS passphrase for the root partition in the plymouth dialog, I don't get the additional boot time and the "timeout". Instead I get
systemd[1]: Unnecessary job was removed for /dev/disk/by-uuid/47c6783a-2b0$740*bd3$f0f43f63d8c.
as in kernel 6.8.1. This does neither explain to me, why this crippled device name exists, nor why waiting 30 seconds will help, but perhaps someone else can see whats going on here.
kernel 6.1.8 of course -- You are receiving this mail because: You are the assignee for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1208161 https://bugzilla.suse.com/show_bug.cgi?id=1208161#c8 Michael Hirmke <opensuse@mike.franken.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Kernel |Basesystem Assignee|kernel-bugs@opensuse.org |screening-team-bugs@suse.de --- Comment #8 from Michael Hirmke <opensuse@mike.franken.de> --- Still exists with kernel 6.2.0-1-default and openSUSE Tumbleweed 20230228. So probably not a kernel, but a systemd problem? ... M�r 01 22:30:18 transformer systemd[1]: dev-disk-by\x2duuid-47c6783a\x2d2b0\x24740\x2abd3\x24f0f43f63d8c.device: Job dev-disk-by\x2duuid-47c6783a\x2d2b0\x24740\x2abd3\x24f0f43f63d8c.device/start timed out. M�r 01 22:30:18 transformer systemd[1]: Timed out waiting for device /dev/disk/by-uuid/47c6783a-2b0$740*bd3$f0f43f63d8c. M�r 01 22:30:18 transformer systemd[1]: Dependency failed for Cryptography Setup for root. M�r 01 22:30:18 transformer systemd[1]: Dependency failed for Local Encrypted Volumes. M�r 01 22:30:18 transformer systemd[1]: cryptsetup.target: Job cryptsetup.target/start failed with result 'dependency'. M�r 01 22:30:18 transformer systemd[1]: systemd-cryptsetup@root.service: Job systemd-cryptsetup@root.service/start failed with result 'dependency'. M�r 01 22:30:18 transformer systemd[1]: dev-disk-by\x2duuid-47c6783a\x2d2b0\x24740\x2abd3\x24f0f43f63d8c.device: Job dev-disk-by\x2duuid-47c6783a\x2d2b0\x24740\x2abd3\x24f0f43f63d8c.device/start failed with result 'timeout'. ... -- You are receiving this mail because: You are the assignee for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1208161 Chenzi Cao <chcao@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Basesystem |Kernel Assignee|screening-team-bugs@suse.de |kernel-bugs@opensuse.org -- You are receiving this mail because: You are the assignee for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1208161 https://bugzilla.suse.com/show_bug.cgi?id=1208161#c10 --- Comment #10 from Michael Hirmke <opensuse@mike.franken.de> --- Still exists with kernel-6.2.2-1. -- You are receiving this mail because: You are the assignee for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1208161 https://bugzilla.suse.com/show_bug.cgi?id=1208161#c11 Michael Hirmke <opensuse@mike.franken.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WORKSFORME --- Comment #11 from Michael Hirmke <opensuse@mike.franken.de> --- Seems to have vanished with at least kernel 6.2.4-1. -- You are receiving this mail because: You are the assignee for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1208161 https://bugzilla.suse.com/show_bug.cgi?id=1208161#c12 Michael Hirmke <opensuse@mike.franken.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME |--- --- Comment #12 from Michael Hirmke <opensuse@mike.franken.de> --- Damn, problem is back 8-< -- You are receiving this mail because: You are the assignee for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1208161 http://bugzilla.suse.com/show_bug.cgi?id=1208161#c13 --- Comment #13 from Michael Hirmke <opensuse@mike.franken.de> --- Still exists with Linux 6.2.9-1-default. It now again happens on every boot. dracut-cmdline[257]: Using kernel command line parameters: rd.luks.uuid=luks-47c6783a-d2b0-4740-abd3-4f0f43f63d8c resume=UUID=327c2045-04c9-4c86-b6bd-4e0b07a28159 root=UUID=fe2bbb21-7b74-453f-86a2-ec6d5bdf7cd3 rootfstype=ext4 rootflags=rw,relatime BOOT_IMAGE=/vmlinuz-6.2.9-1-default root=UUID=fe2bbb21-7b74-453f-86a2-ec6d5bdf7cd3 splash=silent quiet resume=UUID=327c2045-04c9-4c86-b6bd-4e0b07a28159 video=DP-3:1920x1080@60 no_console_suspend consoleblank=0 systemd.log_target=kmsg log_buf_len=10M printk.devkmsg=on crashkernel=191M,high crashkernel=72M,low mitigations=auto systemd-escape[336]: Input 'luks-47c6783a-d2b0-4740-abd3-4f0f43f63d8c' is not an absolute file system path, escaping is likely not going to be reversible. systemd-cryptsetup[536]: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-uuid/47c6783a-d2b0-4740-abd3-4f0f43f63d8c. systemd[1]: Unnecessary job was removed for /dev/disk/by-uuid/47c6783a-2b0$740*bd3$f0f43f63d8c. systemd[1]: dev-disk-by\x2duuid-47c6783a\x2d2b0\x24740\x2abd3\x24f0f43f63d8c.device: Job dev-disk-by\x2duuid-47c6783a\x2d2b0\x24740\x2abd3\x24f0f43f63d8c.device/start timed out. systemd[1]: Timed out waiting for device /dev/disk/by-uuid/47c6783a-2b0$740*bd3$f0f43f63d8c. systemd[1]: Dependency failed for Cryptography Setup for root. systemd[1]: Dependency failed for Local Encrypted Volumes. systemd[1]: cryptsetup.target: Job cryptsetup.target/start failed with result 'dependency'. systemd[1]: systemd-cryptsetup@root.service: Job systemd-cryptsetup@root.service/start failed with result 'dependency'. systemd[1]: dev-disk-by\x2duuid-47c6783a\x2d2b0\x24740\x2abd3\x24f0f43f63d8c.device: Job dev-disk-by\x2duuid-47c6783a\x2d2b0\x24740\x2abd3\x24f0f43f63d8c.device/start failed with result 'timeout'. -- You are receiving this mail because: You are the assignee for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1208161 http://bugzilla.suse.com/show_bug.cgi?id=1208161#c14 Michael Hirmke <opensuse@mike.franken.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WORKSFORME Status|REOPENED |RESOLVED --- Comment #14 from Michael Hirmke <opensuse@mike.franken.de> --- I found the reason: Besides /run/systemd/generator/systemd-cryptsetup@root.service there was another systemd-cryptsetup@root.service file in /etc/systemd/system. The difference was /run/systemd/generator/systemd-cryptsetup@root.service: BindsTo=dev-disk-by\x2duuid-47c6783a\x2dd2b0\x2d4740\x2dabd3\x2d4f0f43f63d8c.device After=dev-disk-by\x2duuid-47c6783a\x2dd2b0\x2d4740\x2dabd3\x2d4f0f43f63d8c.device /etc/systemd/system/systemd-cryptsetup@root.service: BindsTo=dev-disk-by\x2duuid-47c6783a\x2d2b0\x24740\x2abd3\x24f0f43f63d8c.device After=dev-disk-by\x2duuid-47c6783a\x2d2b0\x24740\x2abd3\x24f0f43f63d8c.device i.e. the latter contained a wrong escaped guid for the encrypted partition. I have no idea, what created such an escape sequence and why this file existed at all. After removing /etc/systemd/system/systemd-cryptsetup@root.service, the problem vanished. -- You are receiving this mail because: You are the assignee for the bug.
participants (2)
-
bugzilla-noreply@suse.com
-
bugzilla_noreply@suse.com