Steam-Headless / docker-steam-headless

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

[Bug]: Steam window won't open in container #80

Closed ohare93 closed 1 year ago

ohare93 commented 1 year ago

Describe the Bug

I was able to login, but the window never came up afterwards. Now I cannot open the steam window. It's running, I can interact with the menu in the top right bar. I can even install games via the mobile app, and run them remotely on another pc. But I cannot open the window to change the settings or install games manually!

Steps to Reproduce

  1. Run container on Unraid
  2. Open container
  3. Login to steam

That's all 🤷

Expected Behavior

I can open the window.

Screenshots

image

Click button ->

image

Relevant Settings

Just the standard docker settings

docker run
  -d
  --name='steam-headless'
  --net='host'
  --privileged=true
  -e TZ="Europe/Paris"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="TheBox"
  -e HOST_CONTAINERNAME="steam-headless"
  -e 'USER_PASSWORD'='[PASSWORD]'
  -e 'TZ'='Europe/Copenhagen'
  -e 'USER_LOCALES'='en_US.UTF-8 UTF-8'
  -e 'WEB_UI_MODE'='vnc'
  -e 'NVIDIA_VISIBLE_DEVICES'='all'
  -e 'NVIDIA_DRIVER_CAPABILITIES'='all'
  -e 'DISPLAY'=':55'
  -e 'MODE'='primary'
  -e 'PORT_NOVNC_WEB'='8083'
  -e 'ENABLE_VNC_AUDIO'='false'
  -e 'ENABLE_EVDEV_INPUTS'='false'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:8083]/'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/Josh5/docker-steam-headless/master/images/steam-icon.png'
  -v '/mnt/user/appdata/steam-headless':'/home/default':'rw'
  -v '/mnt/user/MiscMedia/Games/Steam':'/mnt/games':'rw'
  --hostname='SteamHeadless'
  --add-host='SteamHeadless:127.0.0.1'
  --restart=unless-stopped
  --shm-size=2G
  --ipc="host"
  -v '/tmp/.X11-unix':'/tmp/.X11-unix':'rw'
  -v '/tmp/tmp/pulse':'/tmp/tmp/pulse':'rw'
  -v '/dev/input':'/dev/input':'ro'
  --ulimit nofile=1024:524288 'josh5/steam-headless:latest'
37ebdf771e5a08dc53c6b63df007fd697a767a30dc71f6fc0b719a22d8544706

Version

Build: [2023-08-19 02:34:59] [master] [d2b4d2cae792a6446de1e0a88fc2d7ab1631354f] [debian]

Platform

Relevant log output

No response

ohare93 commented 1 year ago

On a refresh of the container, it is now stuck here:

image

Josh5 commented 1 year ago

Could you please try again with the latest build and get back to me?

Thanks

ohare93 commented 1 year ago

Same issue.

It seems this is an issue some get with Steam https://github.com/ValveSoftware/steam-for-linux/issues/9769#issuecomment-1666923257 and is perhaps related to GPUs? Does it matter that I have an AMD GPU? Does one require a GPU to run this container at all?

ohare93 commented 1 year ago

Deleted my config and did a fresh install. Same issue after login - stuck on "Loading user data" 🤷‍♂️

colingoodman commented 1 year ago

Today I did a fresh install on an ubuntu server and I am having this exact issue. Steam is very unresponsive, but I have no issues with the rest of the desktop environment out of the box. I also linked a moonlight client to the sunshine instance on this new install (worked as expected) but it likewise freezes when attempting to open steam.

Josh5 commented 1 year ago

Try opening steam's settings and disabling he acceleration for the webui stuff.

ohare93 commented 1 year ago

Try opening steam's settings and disabling he acceleration for the webui stuff.

Well I can't open Steam at all 🤷‍♂️ hitting settings similarly does nothing

Josh5 commented 1 year ago

Try opening steam's settings and disabling he acceleration for the webui stuff.

Well I can't open Steam at all 🤷‍♂️ hitting settings similarly does nothing

This is with the latest build? Could you try wiping the appdata, pulling the image and starting fresh.

Little709 commented 1 year ago

I also have this issue.

image

It can open the settings menu, just not the steam interface.. I also run the containter on unraid

ohare93 commented 1 year ago

Try opening steam's settings and disabling he acceleration for the webui stuff.

Well I can't open Steam at all 🤷‍♂️ hitting settings similarly does nothing

This is with the latest build? Could you try wiping the appdata, pulling the image and starting fresh.

Cleared my appdata, pulled latest image, rebuilt the container: same issue 🤷

Josh5 commented 1 year ago

Try opening steam's settings and disabling he acceleration for the webui stuff.

Well I can't open Steam at all 🤷‍♂️ hitting settings similarly does nothing

This is with the latest build? Could you try wiping the appdata, pulling the image and starting fresh.

Cleared my appdata, pulled latest image, rebuilt the container: same issue 🤷

And you can not open the settings from the task icon menu?

ohare93 commented 1 year ago

That was the only way I could try to do so. Nothing opened 🤷

WiBlum commented 1 year ago

Same issue, on NoVNC the window stuck at 800x900 px resolution and I don't know how to expand, when I try the "expand to the window" or fullscreen nothing change and the window of the screen is stuck on 800x900 px.

I don't know but the host have latest driver for Nvidia GPUs and the container seem working so I understand that the driver work too in the container but same problem as :

On a refresh of the container, it is now stuck here:

image

In this image the render of the background of steam just don't work correctly, but we can still interact with them, and settings window work just fine and I can setup Steam link normally like another computer running steam, so to test if steam link worked I configure it and start streaming, work fine too, but no Big Picture is showing (just the title of the window "Steam Big Picture" in the taskbar but no interface nothing graphically visible, just sound and a stream of the desktop environnement) I try to repull the container but no still not working, I do some modification with portainer and hope this won't brake the apt directory and no same, still not having the correct screen resolution and problem with steam, so I tried to run RimWorld and wow this work ! For a second and crash. I doesn't have more idea to make it work and I don't find some Wiki or Documentation about resizing a desktop environnement of steam-headless container just the docs of xfce4 and vnc are existing for me.

(Edit : for the screen resolution I only have the Display app that can only have a maximum of 1280x720)

Did someone have any idea or solution to fix this problem ? Thanks

WiBlum commented 1 year ago

image I try to install Nvidia Driver in the container using "docker exec -it steam-headless /bin/bash" (sudo if you are not in the docker group) or with the terminal emulator through novnc and I can't install :

nvidia-driver nvidia-kernel-dkms nvidia-kernel-dkms-525.125.06

But I was able to install : libcuda1 nvidia-driver-bin nvidia-driver-libs

then I restart all and the problem wasn't fixed and steam still literally being transparent (menu still working fine and same as other window that steam Desktop and steam BigPicture mode)

WiBlum commented 1 year ago

Just found something in the container's logs : image

I think this is a part of some problem, but i don't know why does it can't see nvidia gpu, all driver are installed on host and container ?

WiBlum commented 1 year ago

For some reasons Big Picture Launched and work just fine, this always appends when I start RimWorld First and then it start BigPicture a few moments after RimWorld or at the same time :

This is what I've got : image image image At the third picture RimWorld already started in background so I stop the game by using Steam Link app interface and this stop the stream, then I try to only start BP mode but this append :

image

So i was able to start RimWorld and close it and I saw few seconds the interface working at the background before the stream close.

To launch the game I use preLaunch Buttons on steam link like below : image

Don't take note of the poor wifi/connection, this don't change nothing (i'm on the local network)

See you later

ohare93 commented 1 year ago

Well I fixed my problem, but in a rather extreme way 😅

So beforehand, when I made this issue, I had an AMD GPU installed and I had the Radeon TOP plugin as per the instructions.

I have just today switched for an NVIDIA GPU, and added --gpus all --runtime nvidia into the extra parameters in this container in Unraid.

On rebooting, everything seemed to work! Not only that, but my screensize over VNC was much larger.

I don't see "Just get an NVIDIA GPU" as a fix for most people here, but perhaps the fact that this works for me now can help someone debug this 🤷‍♂️

Josh5 commented 1 year ago

Doesn't help me as i don't have an AMD GPU unfortunately.

Josh5 commented 1 year ago

Im closing this as no one contributing to this project (mostly just myself) has an AMD GPU so there is no way to investigate this further.

Uklosk commented 1 year ago

I have an AMD GPU and have this problem, I'm willing to contribute but won't have much time to investigate until next week.