libEGL warning: failed to open /dev/dri/renderD128: Permission denied

See original GitHub issue

The following warnings appear when running mujoco environments on a headless machine using egl. I’ve set the MUJOCO_GL environment variable to egl using the export MUJOCO_GL=egl command.

libEGL warning: failed to open /dev/dri/renderD129: Permission denied libEGL warning: failed to open /dev/dri/renderD129: Permission denied libEGL warning: failed to open /dev/dri/renderD128: Permission denied libEGL warning: failed to open /dev/dri/renderD128: Permission denied

As they are warnings not errors, the program terminates normally, but it feels a bit slow. #209 seems to have solved a similar problem by using the nvidia/cudagl image, but I’m using a real machine not a virtual one, so the solution cannot be applied directly.

Any help would be greatly appreciated.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bitsandscrapscommented, Nov 8, 2021

If you have full control (i.e. root privileges) on this machine, it might simply be a matter of correcting the permissions on /dev/dri/renderD129 (usually by adding your user to the group that owns the device).

After adding myself to the group, the warning messages changed to

libEGL warning: DRI2: failed to create dri screen libEGL warning: DRI2: failed to create dri screen libEGL warning: DRI2: failed to create dri screen libEGL warning: DRI2: failed to create dri screen

0reactions
bitsandscrapscommented, Dec 18, 2021

libnvidia-gl-470-server works like magic! Thanks a lot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Various programs - libGL error: failed to open drm device
libGL error: failed to open drm device: Permission denied libGL error: failed to load driver: i965. Things i've tried to fix it ....
Read more >
failed to open /dev/dri/card0: Permission denied
I am trying to get Chromium to run with hardware acceleration on an embedded ARM board (under Wayland), however when I run it...
Read more >
Wrong permissions on renderD128 / Multimedia and ...
Hi, Since couple of months I got some troubles with applications using vulkan, then I noticed that my /dev/dri/renderD128 doesn't have right ...
Read more >
Solved firefox tab crash: /dev/dri/card0: Permission denied
While running firefox-88.0.1 on 6.9-mostly-current I was getting gmail tab crashing with this on stdout: libGL error: MESA-LOADER: failed to ...
Read more >
libGL problems : r/archlinux
SOLVED: As u/2brainz pointed out i had no access to /dev/dri After a ... libGL error: failed to open drm device: Permission denied...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found