Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: kernel 6.9 problems: Timed out for waiting the udev queue being empty. And more. (Read 1852 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

kernel 6.9 problems: Timed out for waiting the udev queue being empty. And more.

Thanks to nikolar (in irc) for helping me out. (pointing it out to me that it was a kernel problem than a udev problem)

System:
   Kernels affected: (I have not tested linux-hardened)
      linux 6.9.1.artix1-1
      linux-zen 6.9.1.artix1-1
   init used: s6
   file system: btrfs
   encryption setup: lvm on luks

Descriptions:
   encrypted booting:
      phase 1: unloaded kernel (.efi boot) asking for passphrase (usually with lower than native screen tty resolution set)
      phase 2: loaded kernel into initramfs then asking for passphrase (usually with proper screen tty resolution set)
      phase 3: after phase 2 (decryption) system is loading before proceeding to tty login
      phase 4: in tty login
      phase 5: after after logging in into tty and in tty or in window manager session.

loading log:
Code: [Select]
:: running early hook [udev]
Starting Udevd version 255.6-1-artix
:: running hook [udev]
:: Triggering uevents...
:: running hook [keymap]
:: Loading keymap...done.
:: running hook [encrypt]

A password is required to access the encrypted-root volume:
Enter passphrase for /dev/nvme0n1px
:: Performing fsck on '/dev/volume-group/lvm-root'
:: mounting '/dev/volume-group/lvm-root' on real root
:: running cleanup hook [udev]

  s6-linux-init version 1.1.2.0

Timed out for waiting the udev queue being empty.

Problems:

   Problem #1: in my system:

      when reaching phase 3 it takes very long to load into tty login screen with the 'Timed out for waiting the udev queue being empty.' error message and then in phase 5 a lot of programs when launched are placed in D status in htop disk sleep hence programs (with UX) either do not launch or when launched they are frozen. Terminal commands like: 'ip a' returns nothing and user cannot Ctrl-C out of it, 'btop' only shows the layout but no letters and also cannot Ctrl-C your way out of it. Cannot kill them either.


   Problem #2: in artix weekly images: (uses the same kernel)

      takes long to load and no network connection.


workarounds: (because I have no solutions for these)

   Problem #1: use lts kernel and/or downgrade to older kernel. if you have to chroot to fix this use the Official ISO images as instead of the weekly images.

   Problem #2: use the Official ISO images instead.

Ask ahead if there are additional questions. (Do note that it may take me time to reply)

Re: kernel 6.9 problems: Timed out for waiting the udev queue being empty. And more.

Reply #1
Got the same exact issue with the same exact setup here. Does it eventually boot? I've been waiting for 30-40 seconds for a tty now and it's not appeared. I'm guessing I'll be having to get a USB to downgrade the kernel?

Re: kernel 6.9 problems: Timed out for waiting the udev queue being empty. And more.

Reply #2
Just FYI, if you are using s6, you can always use the emergency/fallback getty on tty12

Re: kernel 6.9 problems: Timed out for waiting the udev queue being empty. And more.

Reply #3
@Gh0st
Yes it does eventually, but it takes very long (around a few minutes, almost as long as a harddrive booting into Windows. I'm using an nvme so this is not a storage speed problem (also that Linux boots faster in general than Windows).

However even if you waited for it. It's not worth it, a lot of programs do not launch and are in Disk Sleep status(htop) also  that you can't turn off the pc. You will have to do a hardware reset/power-off.

Yes, either downgrade the kernel or install another kernel (lts).
As for how I dealt with the downgrading:

1.) I downloaded the official release. The weekly release uses the same kernel(atleast the one I had gotten) so you might encounter the same problems again making it a waste of time. (Tip: use xfce or other live images for copy paste functionality and can also visit both Artix and Arch Linux wiki for references.)
2.) I then ran
Code: [Select]
cryptsetup benchmark
to load the encryption algorithms.

3.) Decrypted the encrypted LUKS partition, then mounted the partitions. (I'm not sure on how I mounted the lvms if others know please pitch in for me :D)
4.) After all is mounted. I then chroot into the system.
5.) Uninstalled the current kernel:
Code: [Select]
pacman -Rs linux-zen linux-zen-headers

6.) then updated grub:
Code: [Select]
grub-mkconfig -o /boot/grub/grub.cfg

7.) cd into /var/cache/pacman/pkg/
8.) looked for the latest 6.8 kernel via:
Code: [Select]
ls linux-zen-*6.8*
.
Then installed it with:
Code: [Select]
pacman -U linux-zen-6.8.9.zen1-2-x86_64.pkg.tar.zst linux-zen-headers-6.8.9.zen1-2-x86_64.pkg.tar.zst
More on info: https://wiki.archlinux.org/title/Downgrading_packages#Downgrading_the_kernel
9.) Don't forget to add linux and linux-headers to the IgnorePkg list line in /etc/pacman.conf:
Code: [Select]
IgnorePkg   = linux-zen linux-zen-headers 
10.) set those files immutable just in case:
Code: [Select]
chattr +i linux-zen-*6.8*
11.) Then I installed the lts kernel (linux-lts linux-lts-headers). (I also installed the standard kernel (linux linux-headers) for testing reasons. Up to you)
12.) don't forget to update grub(again):
Code: [Select]
grub-mkconfig -o /boot/grub/grub.cfg
13.) Reboot. And it works as intended.

@Dudemanguy have not tried it but I'll test it later with the standard kernel 6.9 (Though even if that did work, I think the problems I've listed above will still occur)

Re: kernel 6.9 problems: Timed out for waiting the udev queue being empty. And more.

Reply #4
Of course it won't fix any issues with udev not starting, but you can access a tty to do recovery steps.

Re: kernel 6.9 problems: Timed out for waiting the udev queue being empty. And more.

Reply #5
@Dudemanguy Yeah. You're right can do access the tty via tty12, but can't do anything much(even less than what was already limited) since upon trying just now partitions are still encrypted and lvms aren't mounted. You will still need to wait for it to be done loading (I assume done loading the fstab at the very least, but by the time that's done you're already past the error message(Timed out for waiting the udev queue being empty.) and already in phase 4).

 

Re: kernel 6.9 problems: Timed out for waiting the udev queue being empty. And more.

Reply #6
An update with this issue:

Having tested on kernel updates. kernels 6.9.7-zen1-1-zen (linux-zen) and 6.9.7-artix1-1 (linux) (current kernel versions in artix) this problem does not occur anymore. However I won't be marking it as solved until kernel 6.9.x is replaced by kernel 6.10. Should the same problem occur in kernel 6.10 I will make another same post but for 6.10 instead (hopefully I won't have to).

As far as the test goes it's more or less about 15 reboots on each kernel within the span of 3 days each.