Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unable to load any games. #177

Open
playcations opened this issue Jan 30, 2025 · 0 comments
Open

[Bug]: Unable to load any games. #177

playcations opened this issue Jan 30, 2025 · 0 comments
Labels
status:awaiting-triage type:bug Something isn't working

Comments

@playcations
Copy link

playcations commented Jan 30, 2025

UPDATE

Unable to load games IF they are attempting to be played from the /mnt/games/ path...
Games seem to load fine if I load the games from the default path set by steam when it installs.
Proton has to be in the default folder as well or else the games will not open.

UPDATE 2:

Proton has to be on main. The games must start on main to load shaders but, in most cases, can be moved back to mnt/Games once loaded into one time.

Describe the Bug

I am able to get the container running, Able to log into steam, and able to download games through Steam.

When I open any game by pressing the "> Play" button on the Steam page, The button will change to "X Cancel" then "X Stop" Then go right back to "> Play"

Steps to Reproduce

run container
Open web ui or any other way you can access steam
Run game.
Run game again
Run game a third time just in case the first 2 were a fluke.

Expected Behavior

Game loads

Screenshots

Image

Image

Relevant Settings

No response

Version

steam-headless-steam-headless-1 | Build: [2025-01-27 04:54:25] [master] [6db83d2] [debian]

Platform

System:

Truenas Scale Latest
Docker version 27.1.1, build 6312585
Docker Compose version v2.29.1
6.6.44-production+truenas unknown unknown GNU/Linux
admin@truenas[~]$ nvidia-smi 

Wed Jan 29 22:48:41 2025       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.127.05             Driver Version: 550.127.05     CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| 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 3050        Off |   00000000:AF:00.0  On |                  N/A |
| 34%   40C    P8             10W /   70W |     373MiB /   6144MiB |      1%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A     31052      C   /usr/local/bin/python                         180MiB |
|    0   N/A  N/A    867326      G   /usr/lib/xorg/Xorg                            159MiB |
|    0   N/A  N/A    867874      G   xfwm4                                           2MiB |
|    0   N/A  N/A    868127      G   ...bian-installation/ubuntu12_32/steam          2MiB |
|    0   N/A  N/A    868755      G   ./steamwebhelper                                2MiB |
|    0   N/A  N/A    868799    C+G   ...ebian-installation/logs/cef_log.txt          5MiB |

Compose file:

services:
  steam-headless:
    image: josh5/steam-headless:latest
    restart: unless-stopped
    ## NOTE: This config uses privileged to access to host to be able to access the required devices
    #privileged: true
    shm_size: ${SHM_SIZE}
    ipc: host # Could also be set to 'shareable'
    ulimits:
      nofile:
        soft: 1024
        hard: 524288
    cap_add:
      - NET_ADMIN
      - SYS_ADMIN
      - SYS_NICE
      - SYS_MODULE
      - SYS_PTRACE
    security_opt:
      - seccomp:unconfined
      - apparmor:unconfined
    # GPU PASSTHROUGH
    deploy:
      resources:
        reservations:
          # Enable support for NVIDIA GPUs.
          #
          # Ref: https://docs.docker.com/compose/gpu-support/#enabling-gpu-access-to-service-containers
          devices:
            - capabilities:
                - gpu
              device_ids:
                - ${NVIDIA_VISIBLE_DEVICES}
    # NETWORK:
    ## NOTE:  With this configuration, if we do not use the host network, then physical device input
    ##        is not possible and your USB connected controllers will not work in steam games.
    network_mode: host
    #ports:
    # - 47984-47990:47984-47990/tcp
    # - 48010:48010
    # - 47998-48000:47998-48000/udp
    # - 8083:80
    hostname: ${NAME}
    extra_hosts:
      - ${NAME}:127.0.0.1
    # ENVIRONMENT:
    ## Read all config variables from the .env file
    environment:
      # System
      - TZ=${TZ}
      - USER_LOCALES=${USER_LOCALES}
      - DISPLAY=${DISPLAY}
      - PUID=${PUID}
      - PGID=${PGID}
      - UMASK=${UMASK}
      - USER_PASSWORD=${USER_PASSWORD}
      - MODE=${MODE}
      - WEB_UI_MODE=${WEB_UI_MODE}
      - ENABLE_VNC_AUDIO=${ENABLE_VNC_AUDIO}
      - PORT_NOVNC_WEB=${PORT_NOVNC_WEB}
      - NEKO_NAT1TO1=${NEKO_NAT1TO1}
      - ENABLE_STEAM=${ENABLE_STEAM}
      - STEAM_ARGS=${STEAM_ARGS}
      - ENABLE_SUNSHINE=${ENABLE_SUNSHINE}
      - SUNSHINE_USER=${SUNSHINE_USER}
      - SUNSHINE_PASS=${SUNSHINE_PASS}
      - SUNSHINE_HOSTNAME=${NAME}
      - ENABLE_EVDEV_INPUTS=${ENABLE_EVDEV_INPUTS}
      - FORCE_X11_DUMMY_CONFIG=${FORCE_X11_DUMMY_CONFIG}
      - NVIDIA_DRIVER_CAPABILITIES=${NVIDIA_DRIVER_CAPABILITIES}
      - NVIDIA_VISIBLE_DEVICES=${NVIDIA_VISIBLE_DEVICES}
      - NVIDIA_DRIVER_VERSION=${NVIDIA_DRIVER_VERSION}
      ####### DEBUG #######
      - PROTON_DUMP_DEBUG_COMMANDS=1
      - DXVK_HUD=1 # Add this for debugging
      - DXVK_LOG_LEVEL=debug
      - PROTON_LOG=/home/logs/proton.log
      - PROTON_LOG_DIR=/home/logs
      - INSTALL_EXTRAS=1 # installs additional dependencies, including VC++ Redist
      #- WINEDLLOVERRIDES="vcruntime140=n,b"
      #######/DEBUG #######
    devices:
      # Use the host fuse device [REQUIRED].
      - /dev/fuse
      - /dev/uinput
      # these all enabled or disabled
      #- /dev/nvidia0
      #- /dev/nvidiactl
      #- /dev/nvidia-modeset
      #- /dev/nvidia-uvm
      #- /dev/nvidia-uvm-tools
      #- /dev/nvidia-caps/nvidia-cap1
      #- /dev/nvidia-caps/nvidia-cap2
      # Ensure container access to devices 13:*
    device_cgroup_rules:
      - c 13:* rmw
    # VOLUMES:
    volumes:
      # The location of your home directory.
      - ${HOME_DIR}/:/home/default/:rw
      - ${GAMES_DIR}/:/mnt/games/:rw
      - ${SHARED_SOCKETS_DIR}/.X11-unix/:/tmp/.X11-unix/:rw
      - ${SHARED_SOCKETS_DIR}/pulse/:/tmp/pulse/:rw
      - ${HOME_DIR}/logs:/home/logs:rw
networks: {}

.env:

#  System:
NAME=SteamHeadless
TZ=America/New_York
USER_LOCALES=en_US.UTF-8 UTF-8
DISPLAY=:55
SHM_SIZE=16G
HOME_DIR=/mnt/Media/steam-headless/data/Home
SHARED_SOCKETS_DIR=/mnt/Media/steam-headless/sockets
GAMES_DIR=/mnt/Media/Media/Entertainment/Games

$ User
PUID=3000
PGID=3000
UMASK=000
USER_PASSWORD=password

# MODE:
MODE=primary

#Service
WEB_UI_MODE=vnc
ENABLE_VNC_AUDIO=true
PORT_NOVNC_WEB=8083
NEKO_NAT1TO1=

# Steam
#tried both True and false
ENABLE_STEAM=true
STEAM_ARGS=-silent

# Sunshine
#tried both True and false, false for now just trying to get games to run
ENABLE_SUNSHINE=false
SUNSHINE_USER=admin
SUNSHINE_PASS=admin

# Xorg
#tried both True and false
ENABLE_EVDEV_INPUTS=true
#tried both True and false
FORCE_X11_DUMMY_CONFIG=true

#tried with all as well
NVIDIA_DRIVER_CAPABILITIES=compute,compat32,graphics,utility,video
NVIDIA_VISIBLE_DEVICES=all
NVIDIA_DRIVER_VERSION=550.127.05

Proton Log from running Balatro.log

Relevant log output

@playcations playcations added status:awaiting-triage type:bug Something isn't working labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:awaiting-triage type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant