Hanging On Shutdown: umount /oldroot/sys: target is busy

Hello,

this issue is driving me crazy. First I thought it had something to do with a botched zfs samba share I had mounted but I am now kinda certain this is not the case.

This is the error and it appears randomly on shutdown. When it hangs it will hang for a good minute to two minutes. Which makes quickly rebooting to a different distro or windows a huge pain.

Can anybody help me troubleshoot this? It appears from time to time and not on every reboot and I couldn’t really find anything with google.

/dev/nvme1n2p: clean, xxxx/xxxxx files, xxxxx/blocks block
[xxxxx.xxxxx] watchdog: watchdog0: watchdog did not stop!
Unmount all devices.
umount: /oldroot/sys: target is busy.
Detaching loop devices.
Disassembling stacked devices
[xxxxx.xxxxx] reboot: Restarting system

Edit: I had to type what I see on the monitor when shutting down, since I can’t attach any pictures it seems. Also inxi gets rejected because I am not allowed to post links I guess.

Is there anyway to access a log with the errors?

Best Regards
LucidEx

Three posts that might be relevant, the most promising first
Look for the solution in the 2nd post : Possible 2 Min delay on shutdown with Gnome

Another candidate:
https://bbs.archlinux.org/viewtopic.php?id=233820&p=2

I remember having some error like this to, can’t find how I solved it tho, but it had something to do with adding an extra option to hooks /etc/mkinitcpio.conf
My hooks:
HOOKS="base shutdown udev autodetect modconf block keyboard keymap plymouth filesystems"

It could be the shutdown option as mentioned in one of the posts on the arch linux forum.

One other that could be a solution

To get to the logs and how to post them please read here:

oh and welcome to the forum, I almost forgot :partying_face:

1 Like

Hello Hanzel, thank you for your reply. Now I can post links :slight_smile:

I have the shutdown hook

## cat /etc/mkinitcpio.conf  | grep -v "^#" | grep .
MODULES=()
BINARIES=()
FILES=()
HOOKS=(base udev autodetect modconf block filesystems keyboard fsck shutdown)

does the order matter maybe?

Here is a journalctl -b of a reproduction
https://pastebin.com/07V6qhHU

System:    Kernel: 5.10.7-3-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1 Desktop: KDE Plasma 5.20.5 tk: Qt 5.15.2 
           wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Desktop Mobo: ASUSTeK model: MAXIMUS VIII RANGER v: Rev 1.xx serial: <filter> UEFI: American Megatrends 
           v: 3802 date: 03/15/2018 
Memory:    RAM: total: 15.5 GiB used: 4.9 GiB (31.6%) 
           RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:       Info: Quad Core model: Intel Core i7-6700 bits: 64 type: MT MCP arch: Skylake-S rev: 3 L2 cache: 8 MiB 
           bogomips: 54417 
           Speed: 800 MHz min/max: 800/4000 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 801 8: 800 
           Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon art avx avx2 bmi1 bmi2 bts clflush 
           clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est f16c 
           flexpriority flush_l1d fma fpu fsgsbase fxsr hle ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida intel_pt 
           invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat pbe 
           pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand rdseed rdtscp rep_good rtm sdbg sep 
           smap smep smx ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust 
           tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr 
Graphics:  Device-1: Intel HD Graphics 530 vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:1912 
           Device-2: NVIDIA TU116 [GeForce GTX 1650 SUPER] vendor: Gigabyte driver: nvidia v: 460.32.03 bus ID: 01:00.0 
           chip ID: 10de:2187 
           Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver: loaded: nvidia resolution: 1: 2560x1440~60Hz 
           2: 2560x1440~144Hz s-dpi: 108 
           OpenGL: renderer: GeForce GTX 1650 SUPER/PCIe/SSE2 v: 4.6.0 NVIDIA 460.32.03 direct render: Yes 
Audio:     Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus ID: 00:1f.3 chip ID: 8086:a170 
           Device-2: NVIDIA TU116 High Definition Audio vendor: Gigabyte driver: snd_hda_intel v: kernel bus ID: 01:00.1 
           chip ID: 10de:1aeb 
           Device-3: C-Media CMI8788 [Oxygen HD Audio] vendor: ASUSTeK Virtuoso 100 driver: snd_virtuoso v: kernel 
           bus ID: 05:04.0 chip ID: 13f6:8788 
           Device-4: Logitech Webcam C310 type: USB driver: snd-usb-audio,uvcvideo bus ID: 1-6.2:4 chip ID: 046d:081b 
           serial: <filter> 
           Sound Server: ALSA v: k5.10.7-3-MANJARO 
Network:   Device-1: Intel Ethernet I219-V vendor: ASUSTeK driver: e1000e v: kernel port: f040 bus ID: 00:1f.6 
           chip ID: 8086:15b8 
           IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter> 
           IP v4: <filter> type: noprefixroute scope: global broadcast: <filter> 
           IP v6: <filter> type: noprefixroute scope: link 
           WAN IP: <filter> 
RAID:      Message: No RAID data was found. 
Drives:    Local Storage: total: 1.62 TiB used: 506.85 GiB (30.6%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: MZFLV256HCHP-000MV size: 238.47 GiB speed: 31.6 Gb/s lanes: 4 
           serial: <filter> rev: BXV75M0Q temp: 34.9 C 
           ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 970 EVO Plus 500GB size: 465.76 GiB speed: 31.6 Gb/s lanes: 4 
           serial: <filter> rev: 2B2QEXM7 temp: 31.9 C 
           ID-3: /dev/sda vendor: Samsung model: SSD 850 EVO 500GB size: 465.76 GiB speed: 6.0 Gb/s serial: <filter> rev: 1B6Q 
           ID-4: /dev/sdb vendor: Crucial model: CT525MX300SSD1 size: 489.05 GiB speed: 6.0 Gb/s serial: <filter> rev: R040 
           Message: No Optical or Floppy data was found. 
Partition: ID-1: / size: 456.96 GiB used: 316.46 GiB (69.3%) fs: ext4 dev: /dev/nvme1n1p2 label: N/A 
           uuid: b7073bab-bb8f-4a6e-8225-d0cbcd80fb28 
           ID-2: /boot/efi size: 511 MiB used: 276 KiB (0.1%) fs: vfat dev: /dev/nvme1n1p1 label: N/A uuid: A7C0-9635 
           ID-3: /home/<filter>/ssd-crucial-mx300 size: 480.37 GiB used: 190.39 GiB (39.6%) fs: ext4 dev: /dev/sdb1 label: N/A 
           uuid: 5207b723-784a-47aa-b955-9e4d271ece7c 
Swap:      ID-1: swap-1 type: file size: 7.91 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile 
Unmounted: ID-1: /dev/nvme0n1p1 size: 100 MiB fs: vfat label: N/A uuid: 9044-6D1A 
           ID-2: /dev/nvme0n1p2 size: 16 MiB fs: <superuser required> label: N/A uuid: N/A 
           ID-3: /dev/nvme0n1p3 size: 237.86 GiB fs: ntfs label: N/A uuid: C23C45473C453825 
           ID-4: /dev/nvme0n1p4 size: 513 MiB fs: ntfs label: N/A uuid: 9E78C96378C93B33 
           ID-5: /dev/sda1 size: 465.76 GiB fs: ntfs label: Volume uuid: 7A76C90576C8C2DD 
USB:       Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 16 rev: 2.0 speed: 480 Mb/s chip ID: 1d6b:0002 
           Hub-2: 1-6:2 info: VIA Labs Hub ports: 4 rev: 2.1 speed: 480 Mb/s chip ID: 2109:2811 
           Device-1: 1-6.2:4 info: Logitech Webcam C310 type: Video,Audio driver: snd-usb-audio,uvcvideo interfaces: 4 
           rev: 2.0 speed: 480 Mb/s chip ID: 046d:081b serial: <filter> 
           Device-2: 1-7:3 info: Kingston HyperX Alloy FPS RGB type: Keyboard,HID driver: hid-generic,usbhid interfaces: 3 
           rev: 2.0 speed: 12 Mb/s chip ID: 0951:16dc 
           Device-3: 1-9:5 info: Razer USA Mamba Elite (Wired) type: Mouse,Keyboard driver: razermouse,usbhid interfaces: 3 
           rev: 2.0 speed: 12 Mb/s chip ID: 1532:006c 
           Hub-3: 2-0:1 info: Full speed (or root) Hub ports: 10 rev: 3.0 speed: 5 Gb/s chip ID: 1d6b:0003 
           Hub-4: 2-6:2 info: VIA Labs Hub ports: 4 rev: 3.0 speed: 5 Gb/s chip ID: 2109:8110 
           Hub-5: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 speed: 480 Mb/s chip ID: 1d6b:0002 
           Hub-6: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s chip ID: 1d6b:0003 
           Hub-7: 5-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 speed: 480 Mb/s chip ID: 1d6b:0002 
           Hub-8: 6-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s chip ID: 1d6b:0003 
Sensors:   System Temperatures: cpu: 29.5 C mobo: 23.0 C gpu: nvidia temp: 47 C 
           Fan Speeds (RPM): fan-1: 0 fan-2: 702 fan-3: 0 fan-4: 0 fan-5: 830 fan-6: 749 gpu: nvidia fan: 0% 
Info:      Processes: 296 Uptime: 33m wakeups: 0 Init: systemd v: 247 Compilers: gcc: 10.2.0 clang: 11.0.1 Packages: 
           pacman: 1888 Shell: Zsh v: 5.8 running in: konsole inxi: 3.2.02

journalctl -p3 -b -1

-- Journal begins at Tue 2020-09-08 22:54:00 CEST, ends at Tue 2021-02-02 12:29:27 CET. --
Feb 01 21:24:19 manjaro kernel: 
Feb 01 21:24:21 manjaro kernel: nvidia-gpu 0000:01:00.3: i2c timeout error e0000000
Feb 01 21:24:21 manjaro kernel: ucsi_ccg 0-0008: i2c_transfer failed -110
Feb 01 21:24:21 manjaro kernel: ucsi_ccg 0-0008: ucsi_ccg_init failed - -110
Feb 01 21:24:32 manjaro pulseaudio[1212]: module-rescue-stream is obsolete and should no longer be loaded. Please remove it from your configuration.
Feb 01 21:24:54 manjaro pulseaudio[1212]: GetManagedObjects() failed: org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.bluez': timed out (    service_start_timeout=25000ms)
Feb 01 21:28:10 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000000a
Feb 01 21:28:10 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000001f
Feb 01 21:28:10 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000016
Feb 01 21:28:10 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000012
Feb 01 21:28:10 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000002a
Feb 01 21:28:10 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000004
Feb 01 21:28:10 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000020
Feb 01 21:28:10 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000022
Feb 01 21:28:10 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000021
Feb 01 21:28:10 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000004
Feb 01 21:32:14 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000000a
Feb 01 21:32:14 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000001f
Feb 01 21:32:14 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000016
Feb 01 21:32:14 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000012
Feb 01 21:32:14 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000002a
Feb 01 21:32:14 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000004
Feb 01 21:32:14 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000020
Feb 01 21:32:14 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000022
Feb 01 21:32:14 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000021
Feb 01 21:32:14 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000004
Feb 01 21:34:29 manjaro sudo[4712]:       vh : a password is required ; TTY=pts/1 ; PWD=/home/vh ; USER=root ; COMMAND=/sbin/hddtemp -nq -u C /dev/sda
Feb 01 21:34:29 manjaro sudo[4714]:       vh : a password is required ; TTY=pts/1 ; PWD=/home/vh ; USER=root ; COMMAND=/sbin/hddtemp -nq -u C /dev/sdb
Feb 01 21:54:39 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000000a
Feb 01 21:54:39 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000001f
Feb 01 21:54:39 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000016
Feb 01 21:54:39 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000012
Feb 01 21:54:39 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000002a
Feb 01 21:54:39 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000004
Feb 01 21:54:39 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000020
Feb 01 21:54:39 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000022
Feb 01 21:54:39 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000021
Feb 01 21:54:39 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000004
Feb 01 21:54:44 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000000a
Feb 01 21:54:44 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000001f
Feb 01 21:54:44 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000016
Feb 01 21:54:44 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000012
Feb 01 21:54:44 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000002a
Feb 01 21:54:44 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000004
Feb 01 21:54:44 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000020
Feb 01 21:54:44 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000022
Feb 01 21:54:44 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000021
Feb 01 21:54:44 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000004
Feb 01 21:55:25 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000000a
Feb 01 21:55:25 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000001f
Feb 01 21:55:25 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000016
Feb 01 21:55:25 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000012
Feb 01 21:55:25 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000002a
Feb 01 21:55:25 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000004
Feb 01 21:55:25 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000020
Feb 01 21:55:25 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000022
Feb 01 21:55:25 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000021
Feb 01 21:55:25 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000004
Feb 01 21:55:28 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000000a
Feb 01 21:55:28 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000001f
Feb 01 21:55:28 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000016
Feb 01 21:55:28 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000012
Feb 01 21:55:28 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000002a
Feb 01 21:55:28 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000004
Feb 01 21:55:28 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000020
Feb 01 21:55:28 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000022
Feb 01 21:55:28 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000021
Feb 01 21:55:28 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000004
Feb 01 21:55:38 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000000a
Feb 01 21:55:38 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000001f
Feb 01 21:55:38 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000016
Feb 01 21:55:38 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000012
Feb 01 21:55:38 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000002a
Feb 01 21:55:38 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000004
Feb 01 21:55:38 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000020
Feb 01 21:55:38 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000022
Feb 01 21:55:38 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000021
Feb 01 21:55:38 manjaro kernel: [drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x00000004
Feb 01 21:58:26 manjaro kernel: [drm:nv_drm_gem_export_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for export: 0x00000001
[this line repeats 10000 times]
Feb 01 22:25:18 manjaro kernel: [drm:nv_drm_gem_export_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for export: 0x00000001
Feb 01 22:26:35 manjaro systemd-coredump[21674]: Failed to send coredump datagram: Connection reset by peer
Feb 01 22:26:35 manjaro kglobalaccel5[21671]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                                              
                                          Available platform plugins are: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland,     wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Feb 01 22:26:35 manjaro systemd-coredump[21676]: Failed to connect to coredump service: Connection refused
Feb 01 22:26:35 manjaro pulseaudio[1212]: Unable to read or parse data from client.

Try to uninstall Nvidia driver and see if that helps.

Fixed… create this

# /etc/systemd/system/nvidia-unload-shutdown.service
[Unit]
Description=Remove nvidia modules before shutdown
DefaultDependencies=no
After=sddm.service

[Service]
Type=oneshot
ExecStart=/usr/bin/modprobe -r nvidia_drm nvidia_modeset nvidia_uvm nvidia

[Install]
WantedBy=shutdown.target
~ ❯              

Change after.shutdown to your display manager.
Load the kernel Modules via mkinitcpio.conf in this order and update initramfs.

~ ❯ cat /etc/mkinitcpio.conf | grep MODULES | grep -v "^#"                                                                                                                          08:57:02
MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
~ ❯ sudo mkinitcpio -P                                                                                                                                                              08:57:16

The problem should go away then. Best Regards. Thanks to the Dcoder.

3 Likes

I also have this issue, but altogether with the following one: Sd-umount: Failed to unmount /oldroot during each boot/shutdown.

I followed the proposed solution here:

… and it helped me to resolve that particular issue, but the original issue in this thread still remains, even I followed your steps precisely. I tried all of the following combinations in my /etc/mkinitcpio.conf and none of them helped:

# 1. try:
MODULE=()
HOOKS=(base udev autodetect modconf block filesystems resume keyboard shutdown)

# 2. try:
MODULE=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
HOOKS=(base udev autodetect modconf block filesystems resume keyboard shutdown)

# 3. try:
MODULE=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
HOOKS=(base udev autodetect modconf block filesystems resume keyboard)

After each change of configs from above I executed these:

sudo mkinitcpio -P
sudo grub-mkconfig -o /boot/grub/grub.cfg

sudo systemctl restart systemd-coredump.socket
sudo systemctl reset-failed

Technical details:


My main NVMe Disk model: Samsung SSD 970 EVO 500GB


$ sudo fdisk -l
# [...]
# ends with:
Partition 1 does not start on physical sector boundary.

NVIDIA-SMI 460.80 Driver Version: 460.80 CUDA Version: 11.2


Any ideas? :thinking:

EDIT: Seems like an old bug. It has been reported upstream:

https://bugs.archlinux.org/task/63697