Steam-Headless / docker-steam-headless

A Headless Steam Docker image supporting NVIDIA GPU and accessible via Web UI
GNU General Public License v2.0
917 stars 90 forks source link

[Bug]: Steam window not opening #165

Open medinnna opened 5 days ago

medinnna commented 5 days ago

Describe the Bug

I have the container running on an lxc in Proxmox, all working except Steam. All the apps work normally, even Firefox playing a video from Youtube shows gpu usage with nvtop on the host. It seems that Steam process is running, but the Steam window does not appear. I also have Ollama and ComfyUI using the same configuration, and both can use the gpu without a problem. I stopped all other containers using the gpu but the problem remains the same.

Steps to Reproduce

No response

Expected Behavior

No response

Screenshots

Screenshot 2024-10-04 at 1 02 17 a m Screenshot 2024-10-04 at 1 03 20 a m

Relevant Settings

compose:

services:
  steam-headless:
    image: josh5/steam-headless:latest
    restart: unless-stopped
    shm_size: ${SHM_SIZE}
    ipc: host
    ulimits:
      nofile:
        soft: 1024
        hard: 524288
    cap_add:
      - NET_ADMIN
      - SYS_ADMIN
      - SYS_NICE
    security_opt:
      - seccomp:unconfined
      - apparmor:unconfined
    deploy:
      resources:
        reservations:
          devices:
            - capabilities: [gpu]
              device_ids: ["${NVIDIA_VISIBLE_DEVICES}"]
    network_mode: host
    hostname: ${NAME}
    extra_hosts:
      - "${NAME}:127.0.0.1"
    environment:
      # System
      - TZ=${TZ}
      - USER_LOCALES=${USER_LOCALES}
      - DISPLAY=${DISPLAY}
      # User
      - PUID=${PUID}
      - PGID=${PGID}
      - UMASK=${UMASK}
      - USER_PASSWORD=${USER_PASSWORD}
      # Mode
      - MODE=${MODE}
      # Web UI
      - WEB_UI_MODE=${WEB_UI_MODE}
      - ENABLE_VNC_AUDIO=${ENABLE_VNC_AUDIO}
      - PORT_NOVNC_WEB=${PORT_NOVNC_WEB}
      - NEKO_NAT1TO1=${NEKO_NAT1TO1}
      # Steam
      - ENABLE_STEAM=${ENABLE_STEAM}
      - STEAM_ARGS=${STEAM_ARGS}
      # Sunshine
      - ENABLE_SUNSHINE=${ENABLE_SUNSHINE}
      - SUNSHINE_USER=${SUNSHINE_USER}
      - SUNSHINE_PASS=${SUNSHINE_PASS}
      # Xorg
      - ENABLE_EVDEV_INPUTS=${ENABLE_EVDEV_INPUTS}
      - FORCE_X11_DUMMY_CONFIG=${FORCE_X11_DUMMY_CONFIG}
      # Nvidia specific config
      - NVIDIA_DRIVER_CAPABILITIES=${NVIDIA_DRIVER_CAPABILITIES}
      - NVIDIA_VISIBLE_DEVICES=${NVIDIA_VISIBLE_DEVICES}
    devices:
      - /dev/fuse
      #- /dev/uinput
    device_cgroup_rules:
      - 'c 13:* rmw'
    volumes:
      - ${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

.env

NAME=SteamHeadless
TZ=America/Monterrey
USER_LOCALES=es_MX.UTF-8 UTF-8
DISPLAY=:55
SHM_SIZE=2G
HOME_DIR=/opt/container-data/steam-headless/home
SHARED_SOCKETS_DIR=/opt/container-data/steam-headless/sockets
GAMES_DIR=/mnt/games
PUID=1000
PGID=1000
UMASK=022
USER_PASSWORD=password
MODE=primary
WEB_UI_MODE=vnc
ENABLE_VNC_AUDIO=true
PORT_NOVNC_WEB=8083
NEKO_NAT1TO1=
ENABLE_STEAM=true
STEAM_ARGS=
ENABLE_SUNSHINE=false
SUNSHINE_USER=admin
SUNSHINE_PASS=admin
ENABLE_EVDEV_INPUTS=true
FORCE_X11_DUMMY_CONFIG=true
NVIDIA_DRIVER_CAPABILITIES=compute, compat32, graphics, utility, video
NVIDIA_VISIBLE_DEVICES=all
NVIDIA_DRIVER_VERSION=

Version

Build: [2024-09-28 03:00:24] [master] [0241c9f84583fb7b245fb45dbfae400153e8426c] [debian]

Platform

Distribution: Debian 12 (bookworm) Linux Kernel: 6.8.12-1-pve GPU: 4060 ti GPU Driver: 550.120 Docker: 27.3.1, build ce12230 Docker-compose: 2.29.7

Relevant log output

WARNING: No Layout specified, constructing implicit layout section using screen "Default Screen".
WARNING: Unable to find CorePointer in X configuration; attempting to add new CorePointer section.
WARNING: The CorePointer device was not specified explicitly in the layout; using the first mouse device.
WARNING: Unable to find CoreKeyboard in X configuration; attempting to add new CoreKeyboard section.
WARNING: The CoreKeyboard device was not specified explicitly in the layout; using the first keyboard device.
Using X configuration file: "/etc/X11/xorg.conf".
Option "ProbeAllGpus" "False" added to Screen "Default Screen".
Option "BaseMosaic" "False" added to Screen "Default Screen".
Option "AllowEmptyInitialConfiguration" "True" added to Screen "Default Screen".
Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.nvidia-xconfig-original'
Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'
DONE
[ /etc/cont-init.d/80-configure_flatpak.sh: executing... ]
**** Configure Flatpak ****
  - Flatpak configured for running inside a Docker container
DONE
[ /etc/cont-init.d/90-configure_neko.sh: executing... ]
**** Configure Neko ****
  - Disable Neko server
DONE
[ /etc/cont-init.d/90-configure_steam.sh: executing... ]
**** Configure Steam ****
  - Enable Steam auto-start script
DONE
[ /etc/cont-init.d/90-configure_sunshine.sh: executing... ]
**** Configure Sunshine ****
  - Disable Sunshine server
DONE
[ /etc/cont-init.d/90-configure_vnc.sh: executing... ]
**** Configure VNC ****
  - Configure VNC service port '32038'
  - Configure pulseaudio encoded stream port '32039'
  - Enable VNC server
DONE
[ /etc/cont-init.d/95-setup_wol.sh: executing... ]
**** Configure WoL Manager ****
  - Disable WoL Manager service.
**** Starting supervisord ****
  - Logging all root services to '/var/log/supervisor/'
  - Logging all user services to '/home/default/.cache/log/'
2024-10-04 00:37:43,662 INFO Included extra file "/etc/supervisor.d/dbus.ini" during parsing
2024-10-04 00:37:43,662 INFO Included extra file "/etc/supervisor.d/desktop.ini" during parsing
2024-10-04 00:37:43,662 INFO Included extra file "/etc/supervisor.d/neko.ini" during parsing
2024-10-04 00:37:43,662 INFO Included extra file "/etc/supervisor.d/pulseaudio.ini" during parsing
2024-10-04 00:37:43,662 INFO Included extra file "/etc/supervisor.d/steam.ini" during parsing
2024-10-04 00:37:43,662 INFO Included extra file "/etc/supervisor.d/sunshine.ini" during parsing
2024-10-04 00:37:43,662 INFO Included extra file "/etc/supervisor.d/udev.ini" during parsing
2024-10-04 00:37:43,662 INFO Included extra file "/etc/supervisor.d/vnc-audio.ini" during parsing
2024-10-04 00:37:43,663 INFO Included extra file "/etc/supervisor.d/vnc.ini" during parsing
2024-10-04 00:37:43,663 INFO Included extra file "/etc/supervisor.d/wol-power-manager.ini" during parsing
2024-10-04 00:37:43,663 INFO Included extra file "/etc/supervisor.d/xorg.ini" during parsing
2024-10-04 00:37:43,663 INFO Included extra file "/etc/supervisor.d/xvfb.ini" during parsing
2024-10-04 00:37:43,663 INFO Set uid to user 0 succeeded
2024-10-04 00:37:43,664 INFO RPC interface 'supervisor' initialized
2024-10-04 00:37:43,664 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2024-10-04 00:37:43,664 INFO supervisord started with pid 1
2024-10-04 00:37:44,666 INFO spawned: 'dbus' with pid 548
2024-10-04 00:37:44,667 INFO spawned: 'udev' with pid 549
2024-10-04 00:37:44,668 INFO spawned: 'xorg' with pid 550
2024-10-04 00:37:44,669 INFO spawned: 'audiostream' with pid 551
2024-10-04 00:37:44,670 INFO spawned: 'frontend' with pid 552
2024-10-04 00:37:44,671 INFO spawned: 'pulseaudio' with pid 555
2024-10-04 00:37:44,672 INFO spawned: 'x11vnc' with pid 557
2024-10-04 00:37:44,672 INFO spawned: 'desktop' with pid 558
PULSEAUDIO: Starting pulseaudio service
2024-10-04 00:37:44,681 INFO reaped unknown pid 573 (exit status 0)
2024-10-04 00:37:45,680 INFO success: dbus entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-10-04 00:37:45,680 INFO success: udev entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-10-04 00:37:45,680 INFO success: xorg entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-10-04 00:37:45,680 INFO success: audiostream entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-10-04 00:37:45,680 INFO success: frontend entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-10-04 00:37:45,680 INFO success: pulseaudio entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-10-04 00:37:45,680 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-10-04 00:37:45,680 INFO success: desktop entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-10-04 00:37:45,808 INFO reaped unknown pid 627 (exit status 1)
2024-10-04 00:37:48,732 INFO reaped unknown pid 900 (exit status 0)
arabham commented 4 days ago

same