linuxserver / docker-steamos

Vanilla Arch modified into SteamOS with web based Desktop access, useful for remote play and lower end games
GNU General Public License v3.0
98 stars 6 forks source link

[BUG] Steam now requires user namespaces to be enabled #15

Open JCionx opened 1 month ago

JCionx commented 1 month ago

Is there an existing issue for this?

Current Behavior

After installing the docker container and opening it up, I'm greeted with this Steam error:

Screenshot 2024-07-25 at 11 53 47

Expected Behavior

I expected Steam to launch normally.

Steps To Reproduce

  1. Install SteamOS docker image from LinuxServer inside a CasaOS instance
  2. Open the KasmVNC WebUI
  3. Open Steam

Environment

- OS: Ubuntu Server 24.04
- How docker service was installed:
Docker was installed with CasaOS automatic install script.

CPU architecture

x86-64

Docker creation

Can't upload images here.
https://imgur.com/a/jx0XkLP
https://imgur.com/a/qcsIddl

Container logs

[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────
.+...+...+.......+++++++++++++++++++++++++++++++++++++++*.....+....+++++++++++++++++++++++++++++++++++++++*......+.+......+.....+...+.......+....................+...+.......+..+.+.........+..+.+....................+..........+........+.+...+......+..++++++
......+............+...+....+...+..+......+....+......+...+..+++++++++++++++++++++++++++++++++++++++*..+..+...+...+..........+.........+..+...+++++++++++++++++++++++++++++++++++++++*.+........+..........+.....+.+......+...+.....+............+...+......+.+...+..+.+.....+....+.....................+..+.+......+...+...........+.........+......+....+..+...+.+.....+......+.+.....+..........+...............+........+..........+..+....+...+..+......+..........+..+...+...+.+......+..+.+......+......+.........+...+..+.........+.+.....+.+..............+...+.+.........+..+....+..+..........+..............+.+..+...............+.+..+..........+..++++++
-----
[custom-init] No custom files found, skipping...
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.

Xvnc KasmVNC 1.2.0 - built Jul 19 2024 20:55:39
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12014000, The X.Org Foundation

2024/07/25 10:49:40 [warn] 201#201: could not build optimal types_hash, you should increase either types_hash_max_size: 1024 or types_hash_bucket_size: 64; ignoring types_hash_bucket_size
[ls.io-init] done.
Set firefox.desktop as the default for x-scheme-handler/https
Set firefox.desktop as the default for x-scheme-handler/http
cp: cannot create regular file '/config/Desktop/steam-deck.desktop': No such file or directory
chmod: cannot access '/config/Desktop/steam-deck.desktop': No such file or directory
[adapter_name] -- [/dev/dri/renderD128]
[2024:07:25:10:49:40]: Info: Sunshine version: 0.23.1
[2024:07:25:10:49:40]: Warning: Couldn't find /dev/dri, kmsgrab won't be enabled
[2024:07:25:10:49:40]: Info: Detecting monitors
[2024:07:25:10:49:40]: Info: Detected monitor 0: VNC-0, connected: true
[2024:07:25:10:49:40]: Error: Could not create Sunshine Mouse (Relative): No such file or directory
[2024:07:25:10:49:40]: Error: Could not create Sunshine Mouse (Absolute): No such file or directory
[2024:07:25:10:49:40]: Error: Could not create Sunshine Keyboard: No such file or directory
[2024:07:25:10:49:40]: Error: Falling back to XTest for virtual input! Are you a member of the 'input' group?
[2024:07:25:10:49:40]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:07:25:10:49:40]: Info: Trying encoder [nvenc]
[2024:07:25:10:49:40]: Info: Screencasting with X11
[2024:07:25:10:49:40]: Info: SDR color coding [Rec. 601]
[2024:07:25:10:49:40]: Info: Color depth: 8-bit
[2024:07:25:10:49:40]: Info: Color range: [JPEG]
[2024:07:25:10:49:40]: Error: [AVHWDeviceContext @ 0x64cd595aa100] Cannot load libcuda.so.1
[2024:07:25:10:49:40]: Error: [AVHWDeviceContext @ 0x64cd595aa100] Could not dynamically load CUDA
[2024:07:25:10:49:40]: Error: Failed to create a CUDA device: Operation not permitted
[2024:07:25:10:49:40]: Info: SDR color coding [Rec. 601]
[2024:07:25:10:49:40]: Info: Color depth: 8-bit
[2024:07:25:10:49:40]: Info: Color range: [JPEG]
[2024:07:25:10:49:40]: Error: [AVHWDeviceContext @ 0x64cd595aec40] Cannot load libcuda.so.1
[2024:07:25:10:49:40]: Error: [AVHWDeviceContext @ 0x64cd595aec40] Could not dynamically load CUDA
[2024:07:25:10:49:40]: Error: Failed to create a CUDA device: Operation not permitted
[2024:07:25:10:49:40]: Info: Encoder [nvenc] failed
[2024:07:25:10:49:40]: Info: Trying encoder [vaapi]
[2024:07:25:10:49:40]: Info: Screencasting with X11
[2024:07:25:10:49:40]: Error: Couldn't open /dev/dri/renderD128: No such file or directory
[2024:07:25:10:49:40]: Error: Couldn't open /dev/dri/renderD128: No such file or directory
[2024:07:25:10:49:40]: Error: Couldn't open /dev/dri/renderD128: No such file or directory
[2024:07:25:10:49:40]: Error: Couldn't open /dev/dri/renderD128: No such file or directory
[2024:07:25:10:49:40]: Info: Encoder [vaapi] failed
[2024:07:25:10:49:40]: Info: Trying encoder [software]
[2024:07:25:10:49:40]: Info: Screencasting with X11
[2024:07:25:10:49:40]: Info: SDR color coding [Rec. 601]
[2024:07:25:10:49:40]: Info: Color depth: 8-bit
[2024:07:25:10:49:40]: Info: Color range: [JPEG]
[2024:07:25:10:49:40]: Info: [libx264 @ 0x64cd595ae500] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[2024:07:25:10:49:40]: Info: [libx264 @ 0x64cd595ae500] profile High, level 4.2, 4:2:0, 8-bit
[2024:07:25:10:49:40]: Info: [libx264 @ 0x64cd595ae500] frame I:1     Avg QP:31.00  size:  1203
[2024:07:25:10:49:40]: Info: [libx264 @ 0x64cd595ae500] mb I  I16..4: 99.9%  0.0%  0.0%
[2024:07:25:10:49:40]: Info: [libx264 @ 0x64cd595ae500] 8x8 transform intra:0.0%
[2024:07:25:10:49:40]: Info: [libx264 @ 0x64cd595ae500] coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0%
[2024:07:25:10:49:40]: Info: [libx264 @ 0x64cd595ae500] i16 v,h,dc,p: 97%  0%  3%  0%
[2024:07:25:10:49:40]: Info: [libx264 @ 0x64cd595ae500] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 75% 12%  0%  0%  0%  0% 12%
[2024:07:25:10:49:40]: Info: [libx264 @ 0x64cd595ae500] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 100%  0%  0%  0%  0%  0%  0%
[2024:07:25:10:49:40]: Info: [libx264 @ 0x64cd595ae500] i8c dc,h,v,p: 100%  0%  0%  0%
[2024:07:25:10:49:40]: Info: [libx264 @ 0x64cd595ae500] kb/s:577.44
[2024:07:25:10:49:40]: Info: Screencasting with X11
[2024:07:25:10:49:40]: Info:
[2024:07:25:10:49:40]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:07:25:10:49:40]: Info:
[2024:07:25:10:49:40]: Info: Found H.264 encoder: libx264 [software]
[2024:07:25:10:49:40]: Info: Open the Web UI to set your new username and password and getting started
[2024:07:25:10:49:40]: Info: File /config/.config/sunshine/sunshine_state.json doesn't exist
[2024:07:25:10:49:40]: Error: Failed to create client: Daemon not running
[2024:07:25:10:49:40]: Info: Configuration UI available at [https://localhost:47990]
[2024:07:25:10:49:40]: Info: System tray created

(sunshine:260): libayatana-appindicator-WARNING **: 10:49:40.604: Unable to get the session bus: Error spawning command line ?dbus-launch --autolaunch=6ff17df05cbb448682f4ec7101e2708d --binary-syntax --close-stderr?: Child process exited with code 1

(sunshine:260): LIBDBUSMENU-GLIB-WARNING **: 10:49:40.604: Unable to get session bus: Error spawning command line ?dbus-launch --autolaunch=6ff17df05cbb448682f4ec7101e2708d --binary-syntax --close-stderr?: Child process exited with code 1
19
 2024-07-25 10:50:00,307 [INFO] websocket 0: got client connection from 127.0.0.1
 2024-07-25 10:50:00,316 [PRIO] Connections: accepted: @192.168.1.67_1721904600.307582::websocket
github-actions[bot] commented 1 month ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

TrudeEH commented 1 month ago

+1 to this.

thelamer commented 1 month ago

Yeah it looks busted, the namespace stuff can be worked around with seccomp and apparmor unconfined.(bubblewrap support) But now it looks like the Steam web helper crashing is blocking. It just core dumps for me, and unfortunately I do not have a lot of options here with steam being closed source.

thelamer commented 1 month ago

I suspect valves pinned repos might be out of sync with head arch to the point that it is breaking steam installed from that same repo. When I get time I will try to make a base image pinned to steamOS repos only and see if that fixes anything up.

thelamer commented 1 month ago

So I built a couple variants out from Valve's 3.5, 3.6, and staging repos. Unfortunately their repos lack a bunch of Intel and AMD drivers as it is scoped to the deck and modern RDNA3 stuff, so that drops the broader GPU compatibility. I was hoping it would be a silver bullet, but it looks like this repo will most likely be sunset as I don't have a way to package a general compatible SteamOS image which was the whole point of it in the first place.

TrudeEH commented 1 month ago

I'm sorry to hear that. Hopefully there will be a fix for this issue in the future. Every image that I have tried seems to be broken as well...

TrudeEH commented 1 month ago

I don't know if it relates, but I've been having issues with Steam, even on my regular (i5-14600K) desktop. Sometimes Steam crashes, games such as Terraria "randomly" freeze and crash the window manager, and Steam's UI becomes unresponsive and laggy all the time. It's been quite unstable, and I can't blame the CPU since everything else works well. Perhaps it could be helpful to reach Steam directly to get the whole driver/compatibility situation resolved? I feel like the issues with the client and the docker image might be related somehow. I can't really debug it since, like you said, it's proprietary software.

thelamer commented 1 month ago

Games use bubblewrap (proton and linux runtime isolated in a container like docker) and do not have host deps unless they are mounting in video card drivers. This is actually breaking the steam client, specifically the steam web helper. I can get something semi working using the staging repos if you have an RDNA3 card, but I can't have an image where 90% of users will get an error on their hardware. Too much support, I'll ponder for a couple weeks before officially shutting it down.

LinuxServer-CI commented 2 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.