You are not logged in.

#1 2023-03-24 15:44:09

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 637

[SOLVED] nvidia-persistenced.service not running after recent update

After today's system update, which included nVidia drivers

$ grep "\(upgraded\|installed\) $pkg" /var/log/pacman.log | grep nvidia
[2023-03-24T15:39:38+0100] [ALPM] upgraded nvidia-utils (525.89.02-2 -> 530.41.03-1)
[2023-03-24T15:39:39+0100] [ALPM] upgraded lib32-nvidia-utils (525.89.02-1 -> 530.41.03-1)
[2023-03-24T15:39:39+0100] [ALPM] upgraded nvidia (525.89.02-13 -> 530.41.03-1)
[2023-03-24T15:39:39+0100] [ALPM] upgraded nvidia-settings (525.89.02-1 -> 530.41.03-1)

I get these issues

$ nvidia-smi
Failed to initialize NVML: Driver/library version mismatch

$ systemctl --failed
  UNIT                        LOAD   ACTIVE SUB    DESCRIPTION              
● nvidia-persistenced.service loaded failed failed NVIDIA Persistence Daemon

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
1 loaded units listed.

$ journalctl -b | grep nvidia
mar 24 16:29:51 MSI-Arch kernel: Command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=fcef3735-b24e-d901-e0e0-3735b24ed901 rw ibt=off nvidia_drm.modeset=1 loglevel=3 quiet lsm=landlock,lockdown,yama,integrity,apparmor,bpf audit=1
mar 24 16:29:51 MSI-Arch kernel: Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=fcef3735-b24e-d901-e0e0-3735b24ed901 rw ibt=off nvidia_drm.modeset=1 loglevel=3 quiet lsm=landlock,lockdown,yama,integrity,apparmor,bpf audit=1
mar 24 16:29:51 MSI-Arch kernel: nvidia: loading out-of-tree module taints kernel.
mar 24 16:29:51 MSI-Arch kernel: nvidia: module license 'NVIDIA' taints kernel.
mar 24 16:29:51 MSI-Arch kernel: nvidia: module verification failed: signature and/or required key missing - tainting kernel
mar 24 16:29:51 MSI-Arch kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 238
mar 24 16:29:51 MSI-Arch kernel: nvidia 0000:01:00.0: enabling device (0000 -> 0003)
mar 24 16:29:51 MSI-Arch kernel: nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
mar 24 16:29:51 MSI-Arch kernel: nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  525.89.02  Wed Feb  1 23:09:40 UTC 2023
mar 24 16:29:51 MSI-Arch kernel: nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
mar 24 16:29:51 MSI-Arch kernel: nvidia-uvm: Loaded the UVM driver, major device number 236.
mar 24 16:29:51 MSI-Arch kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
mar 24 16:29:51 MSI-Arch kernel: [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0
mar 24 16:29:52 MSI-Arch (udev-worker)[610]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 255'' failed with exit code 1.
mar 24 16:29:52 MSI-Arch (udev-worker)[610]: nvidia: Process '/usr/bin/bash -c 'for i in $(cat /proc/driver/nvidia/gpus/*/information | grep Minor | cut -d \  -f 4); do /usr/bin/mknod -Z -m 666 /dev/nvidia${i} c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) ${i}; done'' failed with exit code 1.
mar 24 16:29:53 MSI-Arch nvidia-persistenced[837]: Started (837)
mar 24 16:29:53 MSI-Arch nvidia-persistenced[837]: Failed to query NVIDIA devices. Please ensure that the NVIDIA device files (/dev/nvidia*) exist, and that user 143 has read and write permissions for those files.
mar 24 16:29:53 MSI-Arch nvidia-persistenced[837]: Shutdown (837)
mar 24 16:29:53 MSI-Arch nvidia-persistenced[834]: nvidia-persistenced failed to initialize. Check syslog for more details.
mar 24 16:29:53 MSI-Arch systemd[1]: nvidia-persistenced.service: Control process exited, code=exited, status=1/FAILURE
mar 24 16:29:53 MSI-Arch systemd[1]: nvidia-persistenced.service: Failed with result 'exit-code'.

Anyone experiencing similar problems?

Last edited by Zibi1981 (2023-03-24 22:11:34)


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

#2 2023-03-24 16:04:17

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,541

Re: [SOLVED] nvidia-persistenced.service not running after recent update

Did you reboot after updating them? If you're using early KMS, did you rebuild the initramfs before rebooting?

Offline

#3 2023-03-24 19:14:33

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 637

Re: [SOLVED] nvidia-persistenced.service not running after recent update

Yes, first time I saw this error was while Arch was booting. I also believe that packman rebuilds initramfs every single time the Linux kernel or nVidia drivers are updated.


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

#4 2023-03-24 19:19:14

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,541

Re: [SOLVED] nvidia-persistenced.service not running after recent update

When the kernel is updated, yes, but not when nvidia is updated unless you specifically set it up. This is covered in the Wiki. From the error, I'm almost certain this is the problem.

Offline

#5 2023-03-24 22:11:15

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 637

Re: [SOLVED] nvidia-persistenced.service not running after recent update

Yes, it was the problem. Running mkinitcpio -P as root solved it, but strange thing is that in the same pacman run kernel has been updated too, so I'm certain that initramfs should be updated too.


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

Board footer

Powered by FluxBB