Failed to query NVIDIA devices. Please ensure that the NVIDIA device files (/dev/nvidia*) exist

Bug #1611635 reported by dino99
58
This bug affects 28 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers (Ubuntu)
Confirmed
High
Unassigned

Bug Description

This error has been logged since a while into journalctl (affect 361, 367, and possibly the others too)

 journalctl | grep nvidia-persistenced
 nvidia-persistenced[1067]: Started (1067)
 nvidia-persistenced[1067]: Failed to query NVIDIA devices. Please ensure that the NVIDIA device files (/dev/nvidia*) exist, and that user 117 has read and write permissions for those files.
 nvidia-persistenced[1067]: The daemon no longer has permission to remove its runtime data directory /var/run/nvidia-persistenced
 nvidia-persistenced[1067]: Shutdown (1067)
 nvidia-persistenced[1802]: Started (1802)
 nvidia-persistenced[1802]: Failed to unlink socket: No such file or directory
 nvidia-persistenced[1802]: Failed to unlink PID file: No such file or directory
 nvidia-persistenced[1802]: Shutdown (1802)
 nvidia-persistenced[2543]: Started (2543)

oem@u64:~$ grep 117 /etc/passwd; lsb_release -a; uname -a
avahi-autoipd:x:106:117:Avahi autoip daemon,,,:/var/lib/avahi-autoipd:/bin/false
nvidia-persistenced:x:117:128:NVIDIA Persistence Daemon,,,:/:/sbin/nologin
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Yakkety Yak (development branch)
Release: 16.10
Codename: yakkety
Linux u64 4.7.0-0-generic #3-Ubuntu SMP Tue Aug 2 17:34:31 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

oem@u64:~$ ls -ld /dev/nvidia*; file /dev/nvidia*
crw-rw-rw- 1 root root 195, 0 Aug 10 04:48 /dev/nvidia0
crw-rw-rw- 1 root root 195, 255 Aug 10 04:48 /dev/nvidiactl
crw-rw-rw- 1 root root 195, 254 Aug 10 06:48 /dev/nvidia-modeset
crw-rw-rw- 1 root root 247, 0 Aug 10 04:48 /dev/nvidia-uvm
/dev/nvidia0: character special (195/0)
/dev/nvidiactl: character special (195/255)
/dev/nvidia-modeset: character special (195/254)
/dev/nvidia-uvm: character special (247/0)

Already discussed:
https://answers.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+question/271860

and affect other distro
https://devtalk.nvidia.com/default/topic/934350/linux/nvidia-persistenced-failed-to-query-nvidia-devices-/

error source: https://github.com/NVIDIA/nvidia-persistenced/commit/4f78613588ea1db928e7264317adc810dc0eb10a

ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: nvidia-361 (not installed)
ProcVersionSignature: Ubuntu 4.7.0-0.3-generic 4.7.0
Uname: Linux 4.7.0-0-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.3-0ubuntu5
Architecture: amd64
CurrentDesktop: GNOME
Date: Wed Aug 10 08:54:58 2016
SourcePackage: nvidia-graphics-drivers-361
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
dino99 (9d9) wrote :
dino99 (9d9)
affects: nvidia-graphics-drivers-361 (Ubuntu) → nvidia-graphics-drivers (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers (Ubuntu):
status: New → Confirmed
dino99 (9d9)
description: updated
dino99 (9d9)
description: updated
tags: added: xenial
Changed in nvidia-graphics-drivers (Ubuntu):
importance: Undecided → High
Revision history for this message
axel (axel334) wrote :

It affects me. Ubuntu Xenial (after upgrade from 14.04)

lspci -k | grep -EA3 'VGA|3D|Display'
01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)
        Subsystem: ASUSTeK Computer Inc. GT218 [GeForce 210]
        Kernel driver in use: nvidia
        Kernel modules: nvidiafb, nouveau, nvidia_340

glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 210/PCIe/SSE2
OpenGL core profile version string: 3.3.0 NVIDIA 340.104
OpenGL core profile shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.3.0 NVIDIA 340.104
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 NVIDIA 340.104 340.104
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.00
OpenGL ES profile extensions:

journalctl -b -p 3 >01.txt

-- Logs begin at nie 2018-06-24 09:06:54 CEST, end at nie 2018-06-24 09:19:18 CEST. --
cze 24 09:06:54 user1-945P-DS3 nvidia-persistenced[477]: Failed to query NVIDIA devices. Please ensure that the NVIDIA device files (/dev/nvidia*) exist, and that user 118 has read and write permissions for those files.

The point is that I don't have any nvidia folder in /dev but somehow graphic card works. I only have there three files: nvidia-uvm, nvidia0, nvidiactl. All have 0 B size.

Revision history for this message
axel (axel334) wrote :

There is a question about it
https://answers.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+question/271860

and answer but I have no idea how to use this answer to fix the bug. Has anyone from ubuntu team contacted nvidia?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.