Repository navigation
Open
Labels
bugSomething isn't workingSomething isn't workingcannot reproduceI can't reproduce it reliably, needs more infoI can't reproduce it reliably, needs more infonvidia
Description
Hi,
I have an issue what seems to be similar to #96
Please let me know what further debug output may help.
root@docker-cuda:/mnt/sdb# docker run \
--name wolf \
--network=host \
-e XDG_RUNTIME_DIR=/tmp/sockets \
-v /tmp/sockets:/tmp/sockets:rw \
-e HOST_APPS_STATE_FOLDER=/etc/wolf \
-v /mnt/sdb/wolf:/etc/wolf:rw \
-e NVIDIA_DRIVER_CAPABILITIES=all \
-e NVIDIA_VISIBLE_DEVICES=all \
-e WOLF_ENCODER_NODE=/dev/dri/renderD128 \
-e WOLF_RENDER_NODE=/dev/dri/renderD128 \
-v /var/run/docker.sock:/var/run/docker.sock:rw \
--gpus=all \
--device /dev/dri/ \
--device /dev/uinput \
--device /dev/uhid \
-v /dev/:/dev/:rw \
-v /run/udev:/run/udev:rw \
--device-cgroup-rule "c 13:* rmw" \
ghcr.io/games-on-whales/wolf:stable
[2024-09-15 18:11:46]
[2024-09-15 18:11:46] [ /etc/cont-init.d/10-setup_user.sh: executing... ]
[2024-09-15 18:11:46] **** Configure default user ****
[2024-09-15 18:11:46] Container running as root. Nothing to do.
[2024-09-15 18:11:46] DONE
[2024-09-15 18:11:46]
[2024-09-15 18:11:46] [ /etc/cont-init.d/15-setup_devices.sh: executing... ]
[2024-09-15 18:11:46] **** Configure devices ****
[2024-09-15 18:11:46] Exec device groups
[2024-09-15 18:11:46] Adding user 'root' to groups: gow-gid-107,root
[2024-09-15 18:11:46] DONE
[2024-09-15 18:11:46]
[2024-09-15 18:11:46] [ /etc/cont-init.d/30-nvidia.sh: executing... ]
[2024-09-15 18:11:46]
[2024-09-15 18:11:46] [ /etc/cont-init.d/init-gamescope.sh: executing... ]
[2024-09-15 18:11:46] Launching the container's startup script as user 'root'
Stack trace (most recent call first):
#0 0x00005586a4299f76 in shutdown_handler(int) at /wolf/src/moonlight-server/./exceptions/exceptions.h:69:5
#1 0x00007f2f13f3831f at /usr/lib/x86_64-linux-gnu/libc.so.6
#2 0x00007f2f13f91b1b at /usr/lib/x86_64-linux-gnu/libc.so.6
#3 0x00007f2f13f3826d at /usr/lib/x86_64-linux-gnu/libc.so.6
#4 0x00007f2f13f1b8fe at /usr/lib/x86_64-linux-gnu/libc.so.6
#5 0x00007f2f16fb7d99 at /usr/local/lib/liblibgstwaylanddisplay.so.0.3
#6 0x00007f2f16fb51be at /usr/local/lib/liblibgstwaylanddisplay.so.0.3
#7 0x00007f2f16fb4ee1 at /usr/local/lib/liblibgstwaylanddisplay.so.0.3
#8 0x00007f2f16fb4c13 at /usr/local/lib/liblibgstwaylanddisplay.so.0.3
#9 0x00007f2f16fb3a38 at /usr/local/lib/liblibgstwaylanddisplay.so.0.3
#10 0x00007f2f16fb4946 at /usr/local/lib/liblibgstwaylanddisplay.so.0.3
#11 0x00007f2f16d9df92 at /usr/local/lib/liblibgstwaylanddisplay.so.0.3
#12 0x00007f2f16d9e425 at /usr/local/lib/liblibgstwaylanddisplay.so.0.3
#13 0x00007f2f16da50a2 at /usr/local/lib/liblibgstwaylanddisplay.so.0.3
#14 0x00007f2f16da6749 at /usr/local/lib/liblibgstwaylanddisplay.so.0.3
#15 0x00005586a44a7e73 in wolf::core::virtual_display::create_wayland_display(immer::array<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, immer::memory_policy<immer::free_list_heap_policy<immer::cpp_heap, 1024ul>, immer::refcount_policy, immer::spinlock_policy, immer::no_transience_policy, false, true> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) at /wolf/src/core/src/platforms/linux/virtual-display/wayland-display.cpp:30:36
#16 0x00005586a42a1970 in setup_sessions_handlers(immer::box<state::AppState, immer::memory_policy<immer::free_list_heap_policy<immer::cpp_heap, 1024ul>, immer::refcount_policy, immer::spinlock_policy, immer::no_transience_policy, false, true> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::optional<AudioServer> const&)::$_2::operator()(immer::box<state::StreamSession, immer::memory_policy<immer::free_list_heap_policy<immer::cpp_heap, 1024ul>, immer::refcount_policy, immer::spinlock_policy, immer::no_transience_policy, false, true> > const&) const::{lambda()#1}::operator()() const at /wolf/src/moonlight-server/wolf.cpp:225:29
#17 0x00007f2f14307bb3 at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#18 0x00007f2f13f8fa93 at /usr/lib/x86_64-linux-gnu/libc.so.6
#19 0x00007f2f1401ca33 at /usr/lib/x86_64-linux-gnu/libc.so.6
0:00:00.010775826 93 0x562d80131a20 WARN default gstvaapi.c:229:plugin_init: Cannot create a VA display
0:00:00.019510167 93 0x562d80131a20 WARN adaptivedemux2 gstadaptivedemuxelement.c:41:adaptivedemux2_base_element_init: Failed to load libsoup library
0:00:00.019635326 93 0x562d80131a20 WARN adaptivedemux2 gstadaptivedemuxelement.c:41:adaptivedemux2_base_element_init: Failed to load libsoup library
0:00:00.019743691 93 0x562d80131a20 WARN adaptivedemux2 gstadaptivedemuxelement.c:41:adaptivedemux2_base_element_init: Failed to load libsoup library
0:00:00.067963981 93 0x562d80131a20 WARN vadisplay gstvadisplay.c:401:gst_va_display_initialize:<vadisplaydrm0> vaInitialize: unknown libva error
0:00:00.074398098 93 0x562d80131a20 WARN vadisplay gstvadisplay.c:401:gst_va_display_initialize:<vadisplaydrm1> vaInitialize: unknown libva error
0:00:00.076398891 93 0x562d80131a20 WARN default ges-meta-container.c:236:_set_value:<GESAsset@0x562d805b5e10> Could not set value on item: format-version
0:00:00.076417557 93 0x562d80131a20 WARN default ges-meta-container.c:236:_set_value:<GESAsset@0x562d805b6690> Could not set value on item: format-version
0:00:00.076432858 93 0x562d80131a20 WARN default ges-meta-container.c:236:_set_value:<GESAsset@0x562d805b6de0> Could not set value on item: format-version
0:00:00.076841919 93 0x562d80131a20 WARN structure gststructure.c:2375:priv_gst_structure_parse_fields: Failed to find delimiter, r=mimetype
0:00:00.085014384 93 0x562d80131a20 WARN cudanvrtc gstcudanvrtc.cpp:177:gst_cuda_nvrtc_load_library_once: Failed to load 'nvrtcGetCUBINSize', 'nvrtcGetCUBINSize': /usr/local/nvidia/lib/libnvrtc.so: undefined symbol: nvrtcGetCUBINSize
0:00:01.185902469 93 0x562d80131a20 WARN GST_PLUGIN_LOADING gstplugin.c:542:gst_plugin_register_func: plugin "/usr/local/lib/x86_64-linux-gnu/gstreamer-1.0/validate/libgstvalidatessim.so" failed to initialise
0:00:01.209897704 93 0x562d80131a20 WARN GST_PLUGIN_LOADING gstplugin.c:542:gst_plugin_register_func: plugin "/usr/local/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvalidatessim.so" failed to initialise
0:00:01.216224003 1 0x55db60547be0 WARN GST_REGISTRY gstregistry.c:457:gst_registry_add_plugin:<registry0> Not replacing plugin because new one (/usr/local/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvalidatessim.so) is blacklisted but for a different location than existing one (/usr/local/lib/x86_64-linux-gnu/gstreamer-1.0/validate/libgstvalidatessim.so)
0:00:01.214666410 93 0x562d80131a20 WARN GST_PLUGIN_LOADING gstplugin.c:542:gst_plugin_register_func: plugin "/usr/local/lib/x86_64-linux-gnu/gstreamer-1.0/validate/libgstvalidatessim.so" failed to initialise
0:00:01.217481103 93 0x562d80131a20 WARN GST_PLUGIN_LOADING gstplugin.c:542:gst_plugin_register_func: plugin "/usr/local/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvalidatessim.so" failed to initialise
0:00:01.225714109 1 0x55db60547be0 WARN GST_REGISTRY gstregistry.c:457:gst_registry_add_plugin:<registry0> Not replacing plugin because new one (/usr/local/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvalidatessim.so) is blacklisted but for a different location than existing one (/usr/local/lib/x86_64-linux-gnu/gstreamer-1.0/validate/libgstvalidatessim.so)
17:11:48.187286889 INFO | Gstreamer version: 1.25.0-1
17:11:48.188352335 INFO | Reading config file from: /etc/wolf/cfg/config.toml
0:00:01.296783594 1 0x55db60547be0 WARN cudanvrtc gstcudanvrtc.cpp:177:gst_cuda_nvrtc_load_library_once: Failed to load 'nvrtcGetCUBINSize', 'nvrtcGetCUBINSize': /usr/local/nvidia/lib/libnvrtc.so: undefined symbol: nvrtcGetCUBINSize
17:11:49.214213660 INFO | Using H264 encoder: nvcodec
17:11:49.214473298 INFO | Using HEVC encoder: nvcodec
17:11:49.214672225 INFO | Using AV1 encoder: nvcodec
17:11:49.223825014 INFO | RTSP server started on port: 48010
17:11:49.223859981 INFO | HTTP server listening on port: 47989
17:11:49.223945489 INFO | Control server started on port: 47999
XDG_RUNTIME_DIR (/tmp/sockets) is not owned by us (uid 0), but by uid 1000! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
17:11:49.224206167 WARN | [PULSE] Unable to connect, Access denied
17:11:49.224277100 INFO | Starting PulseAudio docker container
17:11:49.225600036 WARN | [DOCKER] Container WolfPulseAudio already present, removing first
17:11:49.225734042 INFO | HTTPS server listening on port: 47984
17:11:59.178961723 INFO | RTP server started on port: 48200
17:11:59.178969047 INFO | RTP server started on port: 48100
libEGL warning: egl: failed to create dri2 screen
2024-09-15T17:11:59.201040Z ERROR smithay::backend::egl::ffi: [EGL] 0x3001 (NOT_INITIALIZED) eglInitialize: DRI2: failed to create screen
libEGL warning: egl: failed to create dri2 screen
2024-09-15T17:11:59.205039Z ERROR smithay::backend::egl::ffi: [EGL] 0x3001 (NOT_INITIALIZED) eglInitialize: DRI2: failed to create screen
libEGL warning: egl: failed to create dri2 screen
2024-09-15T17:11:59.230218Z ERROR smithay::backend::egl::ffi: [EGL] 0x3001 (NOT_INITIALIZED) eglInitialize: DRI2: failed to create screen
2024-09-15T17:11:59.230235Z ERROR smithay::backend::egl::ffi: [EGL] 0x3001 (NOT_INITIALIZED) eglInitialize: eglInitialize
thread '<unnamed>' panicked at wayland-display-core/src/comp/mod.rs:189:60:
Failed to create EGLDisplay: InitFailed(NotInitialized)
stack backtrace:
0: 0x7f6bb0823575 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hd736fd5964392270
1: 0x7f6bb08470fb - core::fmt::write::hc6043626647b98ea
2: 0x7f6bb08207df - std::io::Write::write_fmt::h0d24b3e0473045db
3: 0x7f6bb082334e - std::sys_common::backtrace::print::h45eb8174d25a1e76
4: 0x7f6bb0824899 - std::panicking::default_hook::{{closure}}::haf3f0170eb4f3b53
5: 0x7f6bb082463a - std::panicking::default_hook::hb5d3b27aa9f6dcda
6: 0x7f6bb0824d33 - std::panicking::rust_panic_with_hook::h6b49d59f86ee588c
7: 0x7f6bb0824c14 - std::panicking::begin_panic_handler::{{closure}}::hd4c2f7ed79b82b70
8: 0x7f6bb0823a39 - std::sys_common::backtrace::__rust_end_short_backtrace::h2946d6d32d7ea1ad
9: 0x7f6bb0824947 - rust_begin_unwind
10: 0x7f6bb060df93 - core::panicking::panic_fmt::ha02418e5cd774672
11: 0x7f6bb060e426 - core::result::unwrap_failed::h55f86ada3ace5ed2
12: 0x7f6bb06712f5 - waylanddisplaycore::comp::init::h0646e1a9d0f59f64
13: 0x7f6bb062bcd0 - std::sys_common::backtrace::__rust_begin_short_backtrace::h3e12ecad4fbffac1
14: 0x7f6bb062fa7e - core::ops::function::FnOnce::call_once{{vtable.shim}}::h66c8be57d5da151d
15: 0x7f6bb082774b - std::sys::pal::unix::thread::Thread::new::thread_start::hb85dbfa54ba503d6
16: 0x7f6bad7ffa94 - <unknown>
17: 0x7f6bad88ca34 - __clone
thread '<unnamed>' panicked at /tmp/gst-wayland-display/wayland-display-core/src/lib.rs:87:41:
called `Result::unwrap()` on an `Err` value: RecvError
stack backtrace:
0: 0x7f6bb0823575 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hd736fd5964392270
1: 0x7f6bb08470fb - core::fmt::write::hc6043626647b98ea
2: 0x7f6bb08207df - std::io::Write::write_fmt::h0d24b3e0473045db
3: 0x7f6bb082334e - std::sys_common::backtrace::print::h45eb8174d25a1e76
4: 0x7f6bb0824899 - std::panicking::default_hook::{{closure}}::haf3f0170eb4f3b53
5: 0x7f6bb082463a - std::panicking::default_hook::hb5d3b27aa9f6dcda2024-09-15T17:11:59.231787Z ERROR waylanddisplaycore: Compositor thread panic'ed! err=Any { .. }
6: 0x7f6bb0824d33 - std::panicking::rust_panic_with_hook::h6b49d59f86ee588c
7: 0x7f6bb0824c14 - std::panicking::begin_panic_handler::{{closure}}::hd4c2f7ed79b82b70
8: 0x7f6bb0823a39 - std::sys_common::backtrace::__rust_end_short_backtrace::h2946d6d32d7ea1ad
9: 0x7f6bb0824947 - rust_begin_unwind
10: 0x7f6bb060df93 - core::panicking::panic_fmt::ha02418e5cd774672
11: 0x7f6bb060e426 - core::result::unwrap_failed::h55f86ada3ace5ed2
12: 0x7f6bb06150a3 - waylanddisplaycore::MaybeRecv<T>::get::hfdc57fb8b9f1c5c8
13: 0x7f6bb061674a - display_get_devices_len
14: 0x55db5a9f7e74 - _ZN4wolf4core15virtual_display22create_wayland_displayERKN5immer5arrayINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS2_13memory_policyINS2_21free_list_heap_policyINS2_8cpp_heapELm1024EEENS2_15refcount_policyENS2_15spinlock_policyENS2_20no_transience_policyELb0ELb1EEEEERKS9_
at /wolf/src/core/src/platforms/linux/virtual-display/wayland-display.cpp:30:36
15: 0x55db5a7f1971 - _ZZZ23setup_sessions_handlersRKN5immer3boxIN5state8AppStateENS_13memory_policyINS_21free_list_heap_policyINS_8cpp_heapELm1024EEENS_15refcount_policyENS_15spinlock_policyENS_20no_transience_policyELb0ELb1EEEEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt8optionalI11AudioServerEENK3$_2clERKNS0_INS1_13StreamSessionESA_EEENKUlvE_clEv
at /wolf/src/moonlight-server/wolf.cpp:225:29
16: 0x7f6badb77bb4 - <unknown>
17: 0x7f6bad7ffa94 - <unknown>
18: 0x7f6bad88ca34 - __clone
fatal runtime error: failed to initiate panic, error 5
root@docker-cuda:/mnt/sdb# sudo nvidia-container-cli -V
cli-version: 1.16.1
lib-version: 1.16.1
build date: 2024-07-23T14:57+00:00
build revision: 4c2494f16573b585788a42e9c7bee76ecd48c73d
build compiler: x86_64-linux-gnu-gcc-7 7.5.0
build platform: x86_64
build flags: -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -DNDEBUG -std=gnu11 -O2 -g -fdata-sections -ffunction-sections -fplan9-extensions -fstack-protector -fno-strict-aliasing -fvisibility=hidden -Wall -Wextra -Wcast-align -Wpointer-arith -Wmissing-prototypes -Wnonnull -Wwrite-strings -Wlogical-op -Wformat=2 -Wmissing-format-attribute -Winit-self -Wshadow -Wstrict-prototypes -Wunreachable-code -Wconversion -Wsign-conversion -Wno-unknown-warning-option -Wno-format-extra-args -Wno-gnu-alignof-expression -Wl,-zrelro -Wl,-znow -Wl,-zdefs -Wl,--gc-sections
root@docker-cuda:/mnt/sdb# sudo cat /sys/module/nvidia_drm/parameters/modeset
Y
root@docker-cuda:/mnt/sdb# nvidia-smi
Sun Sep 15 19:18:43 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.90.07 Driver Version: 550.90.07 CUDA Version: 12.4 |
|-----------------------------------------+------------------------+----------------------+
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcannot reproduceI can't reproduce it reliably, needs more infoI can't reproduce it reliably, needs more infonvidia
Activity
ABeltramo commentedon Sep 23, 2024
Sorry this has taken me so long to reply, I've been on holiday the past week 😅
There's been a couple of similar reports on Discord but I can't really pinpoint down what the underlying issue is, a quick workaround that seems to work reliably is to use the old manual instructions from the quickstart guide instead of the Nvidia Container Toolkit.
I'd like to get a bit more info though and possibly start to collect them here, could you please report the followings?
WOLF_LOG_LEVEL=DEBUGandRUST_LOG=DEBUGThanks!
[EDIT]
I wonder if it might be some kernel module that doesn't get loaded up on your OS automatically (see: https://wiki.archlinux.org/title/NVIDIA#Early_loading)
kosztyua commentedon Sep 23, 2024
Hi,
No worries, rest is important :) Thank you for getting back to me.
This is my current run command:
1, As you can see I have already added the DEBUG environmental variables, which has indeed enriched the output.
2, Host OS is Ubuntu 22.04.5 LTS, fully updated. By "DE" not sure what you mean, this is a fully headless system, although just today I have received dummy HDMI plugs and I have added one.
3, 1 GPU, NVIDIA GeForce RTX 4070 Super
Also, since my experimenting with your code I have managed to get docker-steam-headless running, it works as expected. All feature, every feature, playing Satisfactory in 4k@60fps with AV1 encoding. But I like your approach more, so will keep testing :)
Regarding your EDIT about kernel module, I have this added to grub default:
GRUB_CMDLINE_LINUX_DEFAULT="quiet nvidia-drm.modeset=1"
Moving forward, I will test out the Manual section in the quickstart.
ABeltramo commentedon Sep 23, 2024
Thanks for the very quick reply!
docker-steam-headlessuses Xorg whilst we use Wayland and Nvidia+Wayland is all a bit unstable at the moment but we are getting there..The odd part is that Gstreamer is able to create the encoders
which means that the drivers and the nvidia libraries are in place, from the other logs on Discord that wasn't the case and it was failing to create the HW encoders. Could you try running the following:
I'm specifically looking for
libnvidia-egl-gbmandlibnvidia-egl-waylandI wonder if those are still missing like it was the case back when we first looked into the Nvidia Container Toolkit #52 (comment)@Drakulix any idea on what else could it be?
kosztyua commentedon Sep 23, 2024
Hmm the first one does not seem to be there, second yes. Let me see if I can install it somehow
ABeltramo commentedon Sep 23, 2024
Re-reading the old Container Toolkit discussion linked above, I wonder if it's dependent on how you've installed the drivers. Have you used
aptor the.runfile?ABeltramo commentedon Sep 23, 2024
See: #52 (comment)
kosztyua commentedon Sep 23, 2024
I have installed the missing libnvidia-egl-gbm. Everything I installed was using apt, I came to hate the binary installer.
However with this dependency installed, still getting the same error
Later this week I might still try the .run installer, but rather not mess up the server, I use it for all sorts of CUDA runner 😅
ABeltramo commentedon Sep 23, 2024
That's what the manual installation in the quickstart guide does for you without having to mess with the host. It'll basically download the .run file, install the library files into a docker volume, and then mount that in the right places.
I feel that the issue here is with old packages, especially given that you are running Ubuntu 22.04, which is fairly ancient in the Nvidia+Wayland world. If you could give the manual driver volume a try, I'd be very interested to know what the results are!
kosztyua commentedon Sep 23, 2024
Well, I just recently did a driver upgrade from 535 to 550, but I get your point. I have also installed libnvidia-gl-550-server package and now things stated happening, but not there yet. Log output is definitely better, but still black screen.
I will stop adding more info here until I have tested with the .run installer (and maybe a dist upgrade)
ABeltramo commentedon Sep 23, 2024
This looks good!
If it's not crashing it might just be slow because of all the logging, try removing the
RUST_LOG=DEBUGand just paste again the full Wolf logs if it's still failing to display anything.kosztyua commentedon Sep 23, 2024
I have no idea which combination of environmental variables and extra installed packages I used 😅 Will sleep now and see tomorrow if I can figure it out 💤
ABeltramo commentedon Sep 23, 2024
No worries, and thanks for sticking around! At least we've got a good trail to follow now.
TransparentDuck commentedon Sep 25, 2024
Hi, coming over from #127 as requested.
Requested info
OS Version:
Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.1.0-25-amd64
nvidia-smi output:
Nvidia driver installation method:
apt
(apt install nvidia-driver firmware-misc-nonfree)
Logs from linked issue (to keep everything in one place):
_wolf-wolf-1_logs-1.txt
I'll try installing the Nvidia drivers using the manual method now and see what happens.
Thanks again for all the help!
ABeltramo commentedon Sep 25, 2024
Thanks for all the info, could you try installing the following apt packages
and see if that fixes it?
TransparentDuck commentedon Sep 26, 2024
I'd already tried the Nvidia (Manual) installation method before I saw your reply, and got that working with both Steam and Lutris.
To help with troubleshooting, I've removed the Wolf containers and stack and started fresh.
Installing using the Nvidia (Container Toolkit) Docker Compose Method
This gave me the same Moonlight error as before:
Connection terminated
Error code: -1
The Wolf logs show that it couldn't get hardware encoding working:
08:17:32.364419538 WARN | Software H264 encoder detected ... 08:17:32.366224983 WARN | Software HEVC encoder detected ... 08:17:32.366886443 WARN | Software AV1 encoder detected(tangent - how do I put linebreaks in inline code sections?)
Full debug logs:
Wolf-Logs-New-Installation-Nvidia-Container-Toolkit-Debug.txt`
Installing apt Packages
When I tried installing these packages using apt:
libnvidia-egl-gbm1
libnvidia-egl-wayland1
Both said they were already installed:
libnvidia-egl-gbm1 is already the newest version (1.1.0-2).
libnvidia-egl-wayland1 is already the newest version (1:1.1.10-1).
Trying to launch Steam in Wolf then gave the same error.
Installing using Nvidia (Manual) Method
After running these commands:
curl https://raw.githubusercontent.com/games-on-whales/gow/master/images/nvidia-driver/Dockerfile | docker build -t gow/nvidia-driver:latest -f - --build-arg NV_VERSION=$(cat /sys/module/nvidia/version) .
docker create --rm --mount source=nvidia-driver-vol,destination=/usr/nvidia gow/nvidia-driver:latest sh
docker volume ls | grep nvidia-driver
sudo cat /sys/module/nvidia_drm/parameters/modeset
and changing the definition of my Wolf stack in Portainer to the one in the Nvidia (Manual) section of the Quickstart page, my Wolf container logs now show it using hardware encoding:
08:39:56.373138263 INFO | Using H264 encoder: nvcodec
etc.
Wolf-Logs-New-Installation-Nvidia-Manual.txt
Launching Steam in Wolf then worked. I could also launch and use Lutris.
So, thanks very much for the guidance. Really appreciate your time and knowledge!
(I do have a problem with Steam - when I select my ethernet connection during setup it flashes up a message too quickly to read then goes back to the network selection screen. I'm not sure how to make the Steam container logs more verbose as the container is created and deleted as required. If anyone has a quick answer that'd be great, otherwise I'll keep poking around).
TransparentDuck commentedon Sep 26, 2024
Re my problem setting up Steam, looks like it's a known issue with a workaround:
#120
So everything's working now, awesome! Thanks @ABeltramo.
ABeltramo commentedon Sep 26, 2024
@TransparentDuck thanks for all the info, that's very helpful.
I'm glad that the manual volume driver works; I just need to figure out which package is missing when installing the drivers using a package manager.. 🤔
kerail commentedon Oct 28, 2024
For me fix was in docker compose to change
to specific nvidia driver
csrednicki commentedon Oct 30, 2024
I also had this problem briefly when using Nvidia (Manual) configuration method. Turns out if the video drivers in host system had any changes you should rebuild
nvidia-driver-volvolume. After removing oldnvidia-driver-volvolume and building new volume everything started to work without any errors.hitchfred commentedon Nov 8, 2024
This helped me as well. Running Ubuntu 22.04.
[-]libEGL warning: egl: failed to create dri2 screen[/-][+]Nvidia: using container toolkit results in EGL exception[/+]munnerz commentedon Apr 22, 2025
Installing the
nvidia-driver-libspackage seems to resolve this for me.ehfd commentedon Aug 22, 2026
Letting you know that this issue has been fixed in NVIDIA/nvidia-container-toolkit#1979 and backported to v1.20.x. Not released yet, but will be. What matters now is setting
ENV NVIDIA_DRIVER_CAPABILITIES="all"in your containers if you use Docker or anoother container runtime.ehfd commentedon Sep 22, 2026
Fixed in https://github.com/NVIDIA/nvidia-container-toolkit/releases/tag/v1.20.1.
ABeltramo commentedon Sep 22, 2026
Thanks for all your work on the container toolkit @ehfd I should definitely test out the latest again!
andrewdunndev commentedon Nov 19, 2026
Not reproduced on nvidia-container-toolkit 1.20.2 on an RTX 30 series card: EGL initializes on the NVIDIA vendor library inside the Wolf image. This is one data point for your retest. I did not reproduce the old failure on the Docker
--gpuspath from the original report, and I have no pre-1.20.1 run here to show it failing first.Tested: the Wolf
stableimage (revisiondb709cf, Mesa 26.2.5), not the #567 build, with kernel 7.3.4, NVIDIA 620.70.06 and Podman 6.2.0. The generated CDI spec includes/dev/nvidia-modeset.nvidia.com/gpu=all,NVIDIA_DRIVER_CAPABILITIES=all):eglInitializeon the GBM render node succeeds, vendor NVIDIA. Command and output are below.podman --gpus allwith default capabilities: same result.Scope: one host (Fedora, Podman), one run per path. Not tested: Docker with
--gpus=allthrough the legacy runtime hook, as in the original report, or any toolkit older than 1.20.2. The CDI route is consistent with the setup in #467 (open docs PR).GBM_BACKENDS_PATHis set by hand for the probe. The probe is 20 lines of ctypes (gbm_create_device,eglGetPlatformDisplayon the GBM platform,eglInitialize,eglQueryString):eglprobe.py