Skip to content

WSL2 - Issues when running Wolf #129

Description

@LanHikari22

Hi,

I was trying to set this up on WSL2 with Docker using the NVIDIA compose.yaml and also CLI approach from https://games-on-whales.github.io/wolf/stable/user/quickstart.html

I am able to confirm that docker has access to my NVIDIA GPU with

docker run --gpus all nvidia/cuda:12.6.1-runtime-ubuntu22.04 nvidia-smi

==========
== CUDA ==
==========

CUDA Version 12.6.1

Container image Copyright (c) 2016-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.

This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license

A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.

Sat Sep 28 00:48:01 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.02              Driver Version: 560.94         CUDA Version: 12.6     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 2060        On  |   00000000:01:00.0  On |                  N/A |
| N/A   80C    P0             32W /   80W |    2056MiB /   6144MiB |      4%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|  No running processes found                                                             |
+-----------------------------------------------------------------------------------------+

I then proceeded to try the following CLI command on WSL2 ubuntu22.04 as recommended for WSL2 in the quickstart:

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 /etc/wolf:/etc/wolf:rw \
    -v /var/run/docker.sock:/var/run/docker.sock:rw \
    --device /dev/dri/ \
    ghcr.io/games-on-whales/wolf:stable

This starts up, but I am not able to get much out of http://localhost:47989

curl http://localhost:47989
<?xml version="1.0" encoding="utf-8"?>
<root status_code="404"/>

And I'm also not able to pair Moonlight with it when I put localhost in moonlight It doesn't say anything. I'm not sure what the expected behavior is here.

Here is the log I get from starting up the docker container:

[2024-09-28 01:44:11]
[2024-09-28 01:44:11] [ /etc/cont-init.d/10-setup_user.sh: executing... ]
[2024-09-28 01:44:11] **** Configure default user ****
[2024-09-28 01:44:11] Container running as root. Nothing to do.
[2024-09-28 01:44:11] DONE
[2024-09-28 01:44:11]
[2024-09-28 01:44:11] [ /etc/cont-init.d/15-setup_devices.sh: executing... ]
[2024-09-28 01:44:11] **** Configure devices ****
[2024-09-28 01:44:11] Exec device groups
[2024-09-28 01:44:11] Path '/dev/uinput' is not present.
[2024-09-28 01:44:11] Path '/dev/input/event*' is not present.
[2024-09-28 01:44:11] Not modifying user groups ()
[2024-09-28 01:44:11] DONE
[2024-09-28 01:44:11]
[2024-09-28 01:44:11] [ /etc/cont-init.d/30-nvidia.sh: executing... ]
[2024-09-28 01:44:11]
[2024-09-28 01:44:11] [ /etc/cont-init.d/init-gamescope.sh: executing... ]
[2024-09-28 01:44:11] Launching the container's startup script as user 'root'
0:00:00.015132073    37 0x55699f837ae0 WARN              cudaloader gstcudaloader.cpp:260:gst_cuda_load_library_once_func: Could not open library libcuda.so.1, libcuda.so.1: cannot open shared object file: No such file or directory
0:00:00.016414813    37 0x55699f837ae0 WARN                 default gstvaapi.c:229:plugin_init: Cannot create a VA display
0:00:00.039574536    37 0x55699f837ae0 WARN               vadisplay gstvadisplay.c:341:_va_warning:<vadisplaydrm0> VA error: /usr/lib/x86_64-linux-gnu/dri/d3d12_drv_video.so init failed
0:00:00.039638938    37 0x55699f837ae0 WARN               vadisplay gstvadisplay.c:401:gst_va_display_initialize:<vadisplaydrm0> vaInitialize: resource allocation failed
0:00:00.053671076    37 0x55699f837ae0 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:00.158376343    37 0x55699f837ae0 WARN          adaptivedemux2 gstadaptivedemuxelement.c:41:adaptivedemux2_base_element_init: Failed to load libsoup library
0:00:00.158680353    37 0x55699f837ae0 WARN          adaptivedemux2 gstadaptivedemuxelement.c:41:adaptivedemux2_base_element_init: Failed to load libsoup library
0:00:00.159180169    37 0x55699f837ae0 WARN          adaptivedemux2 gstadaptivedemuxelement.c:41:adaptivedemux2_base_element_init: Failed to load libsoup library
0:00:00.183574830    37 0x55699f837ae0 WARN                 default ges-meta-container.c:236:_set_value:<GESAsset@0x55699fe89930> Could not set value on item: format-version
0:00:00.183651132    37 0x55699f837ae0 WARN                 default ges-meta-container.c:236:_set_value:<GESAsset@0x55699fed62e0> Could not set value on item: format-version
0:00:00.183680933    37 0x55699f837ae0 WARN                 default ges-meta-container.c:236:_set_value:<GESAsset@0x55699fed6a30> Could not set value on item: format-version
0:00:00.184369855    37 0x55699f837ae0 WARN               structure gststructure.c:2375:priv_gst_structure_parse_fields: Failed to find delimiter, r=mimetype
0:00:00.194683677    37 0x55699f837ae0 WARN               vadisplay gstvadisplay.c:341:_va_warning:<vadisplaydrm1> VA error: /usr/lib/x86_64-linux-gnu/dri/d3d12_drv_video.so init failed
0:00:00.194736278    37 0x55699f837ae0 WARN               vadisplay gstvadisplay.c:401:gst_va_display_initialize:<vadisplaydrm1> vaInitialize: resource allocation failed
0:00:00.204494883    37 0x55699f837ae0 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:00.207973291     1 0x563b373c2d80 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:00.207243769    37 0x55699f837ae0 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:00.216103045    37 0x55699f837ae0 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:00.227634605     1 0x563b373c2d80 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)
00:44:11.395891805 INFO  | Gstreamer version: 1.25.0-1
00:44:11.397446753 INFO  | Reading config file from: /etc/wolf/cfg/config.toml
00:44:11.469234194 WARN  | Unable to recognise GPU vendor: vendor 1770
00:44:11.471419862 INFO  | Using H264 encoder: x264
00:44:11.471487064 WARN  | Software H264 encoder detected
00:44:11.472935509 INFO  | Using HEVC encoder: x265
00:44:11.472993911 WARN  | Software HEVC encoder detected
00:44:11.474008443 INFO  | Using AV1 encoder: aom
00:44:11.474058244 WARN  | Software AV1 encoder detected
00:44:11.482807118 INFO  | HTTP server listening on port: 47989
00:44:11.482814118 INFO  | RTSP server started on port: 48010
00:44:11.482956422 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.)
00:44:11.483086026 WARN  | [PULSE] Unable to connect, Access denied
00:44:11.483195730 INFO  | Starting PulseAudio docker container
00:44:11.486257325 INFO  | HTTPS server listening on port: 47984

Thanks,
Mohammed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions