Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Broken system after updating all packages with emerge SOLVED
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pvh1987
n00b
n00b


Joined: 06 Jun 2012
Posts: 49

PostPosted: Mon Dec 03, 2018 4:49 pm    Post subject: Broken system after updating all packages with emerge SOLVED Reply with quote

After updating all packages with emerge, my system is now broken. In particular, I noticed during boot

1. Trying to set system time, select() to /dev/rtc0 timed out
2. Networking does not work (DHCP timed out for enp6s0)
3. X won't start (nvidia-drivers got updated to 415-something from 396-something)
4. I can't use SATA devices (/dev/sd*), I noticed when plugging in a USB stick (system disk are NVMe-disks and works fine)
5. When shutting down, it takes at least 10 seconds to stop udev. Remounting file systems read-only seems to hang indefinitely

So, not knowing what to do, I decided to boot using a livecd and upgrade the kernel from version 4.14.65 to 4.14.83. This did not make any difference at all.

I suspect that the problems might be related to udev. Here is a snippet from dmesg, indicating some problems:

Code:

[    3.506769] udevd[2581]: starting version 3.2.5
[    3.507762] random: udevd: uninitialized urandom read (16 bytes read)
[    3.508018] random: udevd: uninitialized urandom read (16 bytes read)
[    3.521019] usb 1-14: new full-speed USB device number 10 using xhci_hcd
[    3.523968] udevd (2581) used greatest stack depth: 13520 bytes left
[    3.524329] udevd[2582]: starting eudev-3.2.5
[    3.635058] usb 1-14: device descriptor read/64, error -71
[    3.664905] igb 0000:05:00.0 enp5s0: renamed from eth0
[    3.681169] igb 0000:06:00.0 enp6s0: renamed from eth1
[    3.689119] nvidia: loading out-of-tree module taints kernel.
[    3.689137] nvidia: module license 'NVIDIA' taints kernel.
[    3.689138] Disabling lock debugging due to kernel taint
[    3.701977] nvidia-nvlink: Nvlink Core is being initialized, major device number 246
[    3.702431] nvidia 0000:65:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
[    3.730509] vboxdrv: Found 20 processor cores
[    3.746297] vboxdrv: TSC mode is Invariant, tentative frequency 3311992235 Hz
[    3.746298] vboxdrv: Successfully loaded version 5.2.22 (interface 0x00290001)
[    3.753926] VBoxNetFlt: Successfully started.
[    3.760884] VBoxNetAdp: Successfully started.
[    3.767937] VBoxPciLinuxInit
[    3.767941] vboxpci: IOMMU not found (not registered)
[    3.858019] usb 1-14: device descriptor read/64, error -71
[    3.959012] usb usb1-port14: attempt power cycle
[    4.107292] random: crng init done
[    4.107294] random: 7 urandom warning(s) missed due to ratelimiting
[    4.587003] usb 1-14: new full-speed USB device number 11 using xhci_hcd
[    4.587094] usb 1-14: Device not responding to setup address.
[    4.791092] usb 1-14: Device not responding to setup address.
[    4.999002] usb 1-14: device not accepting address 11, error -71
[    5.113002] usb 1-14: new full-speed USB device number 12 using xhci_hcd
[    5.113092] usb 1-14: Device not responding to setup address.
[    5.319092] usb 1-14: Device not responding to setup address.
[    5.527002] usb 1-14: device not accepting address 12, error -71
[    5.527008] usb usb1-port14: unable to enumerate USB device
[   14.056938] EXT4-fs (nvme0n1p4): re-mounted. Opts: discard
[   14.193460] Adding 524284k swap on /dev/nvme0n1p3.  Priority:-2 extents:1 across:524284k SS
[   14.911181] ip (3459) used greatest stack depth: 12976 bytes left
[   16.740128] IPv6: ADDRCONF(NETDEV_UP): enp6s0: link is not ready
[   65.193712] udevd[2582]: worker [2621] /module/nvidia is taking a long time
[   65.193719] udevd[2582]: worker [2626] /devices/pci0000:64/0000:64:00.0/0000:65:00.0 is taking a long time
[  184.800842] udevd[2621]: timeout 'nvidia-udev.sh add'
[  184.800863] udevd[2621]: slow: 'nvidia-udev.sh add' [2757]
[  185.318315] udevd[2582]: worker [2621] /module/nvidia timeout; kill it
[  185.318332] udevd[2582]: seq 3127 '/module/nvidia' killed
[  185.318339] udevd[2582]: worker [2626] /devices/pci0000:64/0000:64:00.0/0000:65:00.0 timeout; kill it
[  185.318347] udevd[2582]: seq 2735 '/devices/pci0000:64/0000:64:00.0/0000:65:00.0' killed
[  185.318783] udevd[2582]: worker [2621] terminated by signal 9 (Killed)
[  185.318789] udevd[2582]: worker [2621] failed while handling '/module/nvidia'


I never had a Gentoo-system fail this bad before. Any help is very much appreciated!

Thanks in advance.


Last edited by pvh1987 on Mon Dec 03, 2018 8:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
pvh1987
n00b
n00b


Joined: 06 Jun 2012
Posts: 49

PostPosted: Mon Dec 03, 2018 5:59 pm    Post subject: Reply with quote

I investigated a little more and found out that

6. A lot of "device descriptor read/64, error -71" occurs at startup (USB related, I suppose)
7. kworker is using 100% CPU
8. I can't switch consoles using Ctrl+Alt+F*

So, I guess I can probably use SATA devices, but not USB devices. If I unplug and plug in my keyboard again, it does not work afterwards.

I believe that there is quite a few /dev/something that does not work, or at least not work properly.
Back to top
View user's profile Send private message
pvh1987
n00b
n00b


Joined: 06 Jun 2012
Posts: 49

PostPosted: Mon Dec 03, 2018 8:31 pm    Post subject: Reply with quote

I think I solved the problem now. I noticed that others were having similar problems with newer nvidia-drivers, so I tried implementing the workaround described here: https://forums.gentoo.org/viewtopic-t-1086860-postdays-0-postorder-asc-start-0.html

It turns out that Nvidia released a driver so buggy, that it prevents other devices from working correctly with the kernel, such as my Ethernet card, USB devices etc. The workaround blacklists all nvidia-driver modules and then introduces a custom loading script in /etc/local.d/. Then the nvidia-driver modules will be loaded late in the startup process and this apparently solves the problem. Maybe future nvidia-drivers or newer kernels will resolve this issue, so a workaround is not needed...

So, all mentioned problems are solved now, including the weird console-switching problem, but I still have USB error messages "device descriptor read/64, error -71". I think these messages might have been there before I updated my system. However, I never had, and still does not have, any problems with USB devices, despite these messages. I welcome any ideas that could solve this, but I guess I will save it for another day and another thread :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum