Can't start container when automounts exist, with misleading error message about userns

Abierto
#766 10 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
linux, shell

Línea de trabajo

Comienza con la salida de steam-runtime-check-requirements y el fallo de bwrap durante el inicio automático de Steam. Reproduce el problema con montajes automáticos NFS de systemd y el inicio automático de KDE Plasma después de reiniciar, y luego rastrea cómo el error de montaje se convierte en el mensaje sobre el espacio de nombres de usuario. Se considera terminado cuando el fallo relacionado con NFS se gestiona adecuadamente o se informa de la causa real en lugar del mensaje de requisitos engañoso.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Your system information
  • Steam client version (build number): 1751405894
  • Distribution: Gentoo Linux x86_64 23.0
  • Opted into Steam client beta?: Yes/No
  • Have you checked for system updates?: Yes
  • Steam Logs: steam-logs.tar.gz
  • GPU: NVIDIA GeForce RTX 3080 Ti
Please describe your issue in as much detail as possible:

After some update to Plasma, the desktop seems to launch much faster and earlier. It looks like the network is not fully initialized, thus NFS automounts fail to mount if apps try to access it early. Steam's bwrap most likely trips over this:

# systemctl --user status app-steam\\[email protected]
● app-steam\[email protected] - Steam Autostart
     Loaded: loaded (/home/kakra/.config/autostart/steam-silent.desktop; generated)
     Active: active (running) since Sat 2025-07-05 13:58:38 CEST; 8min ago
 Invocation: 7841310b1c754a10a0c4be1e758e0334
       Docs: man:systemd-xdg-autostart-generator(8)
   Main PID: 4722 (bash)
      Tasks: 14 (limit: 37865)
        CPU: 3.173s
     CGroup: /user.slice/user-1000.slice/[email protected]/app.slice/app-steam\[email protected]
             ├─4722 bash /home/kakra/.local/share/Steam/steam.sh -srt-logger-opened -no-cef-sandbox -silent
             ├─4780 /home/kakra/.local/share/Steam/ubuntu12_32/steam-runtime/usr/libexec/steam-runtime-tools-0/srt-logger --sh-syntax --rotate=8388608 --log-directory /home/kakra/.local/share/Steam/logs --filename console-linux.txt --log-fd=7 --j>
             └─5131 /bin/zenity --error "--text=Steam now requires user namespaces to be enabled.\n\nThis requirement is the same as for Flatpak, which has more detailed\ninformation available:\nhttps://github.com/flatpak/flatpak/wiki/User-namesp>

Jul 05 13:58:38 jupiter steam-runtime-steam-remote[4747]: steam-runtime-steam-remote: Steam is not running: No such device or address
Jul 05 13:58:38 jupiter steam[4780]: steam.sh[4722]: Running Steam on gentoo 13.0 64-bit
Jul 05 13:58:38 jupiter steam[4780]: steam.sh[4722]: STEAM_RUNTIME is enabled by the user
Jul 05 13:58:38 jupiter steam[4780]: setup.sh[4835]: Steam runtime environment up-to-date!
Jul 05 13:58:44 jupiter steam[4780]: steam.sh[4722]: Log already open
Jul 05 13:58:45 jupiter steam[4780]: steam-runtime-check-requirements[5043]: W: Child process exited with code 1: bwrap: Can't bind mount /oldroot/ on /newroot/: Unable to apply mount flags: remount "/newroot/srv/laniakea/git": Operation not perm>
Jul 05 13:58:45 jupiter steam[4780]: steam.sh[4722]: Error: Steam now requires user namespaces to be enabled.
Jul 05 13:58:45 jupiter steam[4780]: This requirement is the same as for Flatpak, which has more detailed
Jul 05 13:58:45 jupiter steam[4780]: information available:
Jul 05 13:58:45 jupiter steam[4780]: https://github.com/flatpak/flatpak/wiki/User-namespace-requirements

The following prominent message is shown on the desktop:
Image

Just clicking "OK" and running the Steam client again successfully launches it.

I think Steam should wait for network being available before working with NFS mountpoints - or maybe ignore them (although some users may need access to NFS mounts from within games).

At the very least, the error message is just wrong and misleading. The client doesn't properly detect the real error.

Steps for reproducing this issue:
  1. Setup NFS mounts (via systemd automounts)
  2. Configure the desktop for autologin
  3. Configure Steam to autolaunch in KDE Plasma
  4. Reboot
Additional information
# grep nfs /etc/fstab
laniakea-nfs:/volume1/backups           /srv/laniakea/backups   nfs     noauto,noatime,x-systemd.automount,nfsvers=4,x-systemd.idle-timeout=3600
laniakea-nfs:/volume1/casync            /srv/laniakea/casync    nfs     noauto,noatime,x-systemd.automount,nfsvers=4,x-systemd.idle-timeout=3600
laniakea-nfs:/volume1/git               /srv/laniakea/git       nfs     noauto,noatime,x-systemd.automount,nfsvers=4,x-systemd.idle-timeout=3600
laniakea-nfs:/volume1/video             /srv/laniakea/video     nfs     noauto,noatime,x-systemd.automount,nfsvers=4,x-systemd.idle-timeout=3600
laniakea-nfs:/volume1/music             /srv/laniakea/music     nfs     noauto,noatime,x-systemd.automount,nfsvers=4,x-systemd.idle-timeout=3600

My system does not use NetworkManager because it slows down boot considerably for me.

Lenguaje dominante
Shell
Estrellas
1.5k
Forks
98
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ValveSoftware/steam-runtime

Todos los issues de ValveSoftware/steam-runtime

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.