Steam-Headless / docker-steam-headless

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

x11vnc keeps crashing #1

Closed NickBootOne closed 1 year ago

NickBootOne commented 2 years ago

First of all, thank you for doing this! Never thought this was possible in a Container 😊

After configuring the unRAID template I get te following logging with the x11vnc that is stopping. Is there something I'm missing?

[ /scripts/10-setup_user.sh: executing... ] Configure default user Setting run user uid=100(default) gid=99(default) Setting umask to 000 Adding default home directory template Setting root password Setting user password DONE

[ /scripts/20-configre_sshd.sh: executing... ] DONE

[ /scripts/30-configure_system_paths.sh: executing... ] Configure system paths Configure dbus Configure X Windows context Configure X Windows session Remove old lockfiles DONE

[ /scripts/40-setup_locale.sh: executing... ] Locales already set correctly to en_US.UTF-8 UTF-8 DONE

[ /scripts/50-configure_audio.sh: executing... ] Configure pulseaudio socket Patching noVNC with audio websocket DONE

[ /scripts/80-configure_nvidia_driver.sh: executing... ] Found NVIDIA device 'Quadro P2200' Installing driver

DONE

[ /scripts/90-configure_xorg.sh: executing... ] Generate NVIDIA xorg.conf Configure Xwrapper.config Configuring X11 with GPU ID: 'GPU-28824ced-469b-d340-0083-a71be9d0d298' Configuring X11 with PCI bus ID: 'PCI:33:0:0' Writing X11 config with Modeline "1600x900R" 97.50 1600 1648 1680 1760 900 903 908 926 +hsync -vsync

WARNING: Unable to locate/open X configuration file.

Package xorg-server was not found in the pkg-config search path. Perhaps you should add the directory containing `xorg-server.pc' to the PKG_CONFIG_PATH environment variable No package 'xorg-server' found Option "ProbeAllGpus" "False" added to Screen "Screen0". Option "AllowEmptyInitialConfiguration" "True" added to Screen "Screen0". New X configuration file written to '/etc/X11/xorg.conf'

DONE

[ /scripts/90-configure_xorg.sh: executing... ] Generate NVIDIA xorg.conf Configure Xwrapper.config Configuring X11 with GPU ID: 'GPU-28824ced-469b-d340-0083-a71be9d0d298' Configuring X11 with PCI bus ID: 'PCI:33:0:0' Writing X11 config with Modeline "1600x900R" 97.50 1600 1648 1680 1760 900 903 908 926 +hsync -vsync

WARNING: Unable to locate/open X configuration file.

Package xorg-server was not found in the pkg-config search path. Perhaps you should add the directory containing `xorg-server.pc' to the PKG_CONFIG_PATH environment variable No package 'xorg-server' found Option "ProbeAllGpus" "False" added to Screen "Screen0". Option "AllowEmptyInitialConfiguration" "True" added to Screen "Screen0". New X configuration file written to '/etc/X11/xorg.conf'

DONE Starting supervisord 2022-01-10 14:42:12,427 INFO Included extra file "/etc/supervisor/conf.d/services.conf" during parsing 2022-01-10 14:42:12,427 INFO Set uid to user 0 succeeded 2022-01-10 14:42:12,437 INFO RPC interface 'supervisor' initialized 2022-01-10 14:42:12,437 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2022-01-10 14:42:12,437 INFO supervisord started with pid 1 2022-01-10 14:42:13,440 INFO spawned: 'audiostream' with pid 170 2022-01-10 14:42:13,442 INFO spawned: 'audiowebsock' with pid 171 2022-01-10 14:42:13,444 INFO spawned: 'dbus' with pid 172 2022-01-10 14:42:13,446 INFO spawned: 'pulseaudio' with pid 173 2022-01-10 14:42:13,448 INFO spawned: 'ssh' with pid 174 2022-01-10 14:42:13,450 INFO spawned: 'xorg' with pid 175 2022-01-10 14:42:13,452 INFO spawned: 'x11vnc' with pid 176 2022-01-10 14:42:13,455 INFO spawned: 'de' with pid 177 2022-01-10 14:42:13,457 INFO spawned: 'novnc' with pid 178 2022-01-10 14:42:13,514 INFO exited: xorg (exit status 1; not expected) 2022-01-10 14:42:13,558 INFO reaped unknown pid 219 (exit status 0) 2022-01-10 14:42:13,572 INFO exited: de (exit status 1; not expected) 2022-01-10 14:42:14,473 INFO success: audiostream entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:14,473 INFO success: audiowebsock entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:14,473 INFO success: dbus entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:14,473 INFO success: pulseaudio entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:14,473 INFO success: ssh entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:14,473 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:14,473 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:14,474 INFO exited: x11vnc (exit status 1; not expected) 2022-01-10 14:42:14,502 INFO spawned: 'x11vnc' with pid 235 2022-01-10 14:42:15,265 INFO spawned: 'xorg' with pid 237 2022-01-10 14:42:15,267 INFO spawned: 'de' with pid 238 2022-01-10 14:42:15,302 INFO exited: xorg (exit status 1; not expected) 2022-01-10 14:42:15,336 INFO reaped unknown pid 247 (exit status 0) 2022-01-10 14:42:15,337 INFO exited: de (exit status 1; not expected) 2022-01-10 14:42:15,513 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:15,515 INFO exited: x11vnc (exit status 1; not expected) 2022-01-10 14:42:16,518 INFO spawned: 'x11vnc' with pid 248 2022-01-10 14:42:17,279 INFO reaped unknown pid 218 (exit status 1) 2022-01-10 14:42:17,531 INFO spawned: 'xorg' with pid 249 2022-01-10 14:42:17,531 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:17,533 INFO spawned: 'de' with pid 250 2022-01-10 14:42:17,533 INFO exited: x11vnc (exit status 1; not expected) 2022-01-10 14:42:17,535 INFO spawned: 'x11vnc' with pid 251 2022-01-10 14:42:17,567 INFO exited: xorg (exit status 1; not expected) 2022-01-10 14:42:17,600 INFO reaped unknown pid 260 (exit status 0) 2022-01-10 14:42:17,601 INFO exited: de (exit status 1; not expected) 2022-01-10 14:42:18,547 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:18,547 INFO reaped unknown pid 246 (exit status 1) 2022-01-10 14:42:18,548 INFO exited: x11vnc (exit status 1; not expected) 2022-01-10 14:42:18,584 INFO spawned: 'x11vnc' with pid 261 2022-01-10 14:42:19,595 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:19,596 INFO exited: x11vnc (exit status 1; not expected) 2022-01-10 14:42:20,599 INFO spawned: 'xorg' with pid 262 2022-01-10 14:42:20,601 INFO spawned: 'x11vnc' with pid 263 2022-01-10 14:42:20,603 INFO spawned: 'de' with pid 264 2022-01-10 14:42:20,603 INFO reaped unknown pid 259 (exit status 1) 2022-01-10 14:42:20,636 INFO exited: xorg (exit status 1; not expected) 2022-01-10 14:42:20,668 INFO gave up: xorg entered FATAL state, too many start retries too quickly 2022-01-10 14:42:20,668 INFO reaped unknown pid 273 (exit status 0) 2022-01-10 14:42:20,669 INFO exited: de (exit status 1; not expected) 2022-01-10 14:42:21,361 INFO gave up: de entered FATAL state, too many start retries too quickly 2022-01-10 14:42:21,611 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:21,613 INFO exited: x11vnc (exit status 1; not expected) 2022-01-10 14:42:22,616 INFO spawned: 'x11vnc' with pid 274 2022-01-10 14:42:23,627 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:23,629 INFO exited: x11vnc (exit status 1; not expected) 2022-01-10 14:42:24,633 INFO spawned: 'x11vnc' with pid 275 2022-01-10 14:42:24,633 INFO reaped unknown pid 272 (exit status 1) 2022-01-10 14:42:25,644 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:25,645 INFO exited: x11vnc (exit status 1; not expected) 2022-01-10 14:42:26,649 INFO spawned: 'x11vnc' with pid 276 2022-01-10 14:42:26,649 INFO spawned: 'x11vnc' with pid 276 2022-01-10 14:42:27,661 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:27,663 INFO exited: x11vnc (exit status 1; not expected) 2022-01-10 14:42:28,666 INFO spawned: 'x11vnc' with pid 277 2022-01-10 14:42:29,677 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:29,679 INFO exited: x11vnc (exit status 1; not expected) 2022-01-10 14:42:30,682 INFO spawned: 'x11vnc' with pid 278 2022-01-10 14:42:31,693 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:31,695 INFO exited: x11vnc (exit status 1; not expected) 2022-01-10 14:42:32,698 INFO spawned: 'x11vnc' with pid 279 2022-01-10 14:42:33,709 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:33,711 INFO exited: x11vnc (exit status 1; not expected) 2022-01-10 14:42:34,714 INFO spawned: 'x11vnc' with pid 280 2022-01-10 14:42:35,725 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:35,727 INFO exited: x11vnc (exit status 1; not expected) 2022-01-10 14:42:36,730 INFO spawned: 'x11vnc' with pid 281 2022-01-10 14:42:37,740 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:37,742 INFO exited: x11vnc (exit status 1; not expected) 2022-01-10 14:42:38,745 INFO spawned: 'x11vnc' with pid 282 2022-01-10 14:42:39,756 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:39,758 INFO exited: x11vnc (exit status 1; not expected) 2022-01-10 14:42:40,761 INFO spawned: 'x11vnc' with pid 283 2022-01-10 14:42:41,773 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:41,774 INFO exited: x11vnc (exit status 1; not expected) 2022-01-10 14:42:42,776 INFO spawned: 'x11vnc' with pid 284 2022-01-10 14:42:43,788 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:43,789 INFO exited: x11vnc (exit status 1; not expected) 2022-01-10 14:42:44,792 INFO spawned: 'x11vnc' with pid 285 2022-01-10 14:42:45,552 WARN received SIGTERM indicating exit request 2022-01-10 14:42:45,552 INFO waiting for audiostream, audiowebsock, dbus, pulseaudio, ssh, x11vnc, novnc to die 2022-01-10 14:42:45,571 INFO stopped: novnc (exit status 143) 2022-01-10 14:42:45,571 INFO reaped unknown pid 198 (exit status 0) 2022-01-10 14:42:45,802 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-01-10 14:42:45,803 INFO stopped: x11vnc (terminated by SIGQUIT) 2022-01-10 14:42:46,806 INFO stopped: ssh (exit status 255) 2022-01-10 14:42:46,807 INFO stopped: pulseaudio (terminated by SIGQUIT) 2022-01-10 14:42:46,810 INFO stopped: dbus (terminated by SIGQUIT) 2022-01-10 14:42:46,813 INFO stopped: audiowebsock (terminated by SIGQUIT) 2022-01-10 14:42:46,813 INFO stopped: audiostream (terminated by SIGQUIT)

Josh5 commented 2 years ago

Xorg has stopped. Could you please take a look at the logs for xorg. This is likely because you are running an X server already.

NickBootOne commented 2 years ago

@Josh5 I'm getting the following:

Fatal server error: (EE) no screens found(EE)

But how do I check in unRAID which X display it is?

bsaurusrex commented 2 years ago

[347178.612] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs [347178.612] (EE) Fatal server error: [347178.612] (EE) xf86OpenConsole: Cannot open virtual console 7 (No such file or directory)

5trubel commented 2 years ago

Getting the same error. Log:

[ 49475.952] 
X.Org X Server 1.20.11
X Protocol Version 11, Revision 0
[ 49475.952] Build Operating System: linux Debian
[ 49475.952] Current Operating System: Linux 8e79a5d2c163 5.13.0-40-generic #45-Ubuntu SMP Tue Mar 29 14:48:14 UTC 2022 x86_64
[ 49475.952] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.13.0-40-generic root=UUID=46342537-84f2-4e9c-b630-c3dfdb4f30e4 ro iommu-pt intel_iommu=on pcie_acs_override=downstream,multifunction
[ 49475.952] Build Date: 16 December 2021  05:08:23PM
[ 49475.952] xorg-server 2:1.20.11-1+deb11u1 (https://www.debian.org/support) 
[ 49475.952] Current version of pixman: 0.40.0
[ 49475.952]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[ 49475.952] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 49475.953] (==) Log file: "/var/log/Xorg.55.log", Time: Wed May  4 21:38:12 2022
[ 49475.954] (==) Using config file: "/etc/X11/xorg.conf"
[ 49475.954] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 49475.955] (==) ServerLayout "Layout0"
[ 49475.955] (**) |-->Screen "Screen0" (0)
[ 49475.955] (**) |   |-->Monitor "Monitor0"
[ 49475.955] (**) |   |-->Device "Device0"
[ 49475.955] (**) |-->Input Device "Keyboard0"
[ 49475.956] (**) |-->Input Device "Mouse0"
[ 49475.956] (==) Automatically adding devices
[ 49475.956] (==) Automatically enabling devices
[ 49475.956] (==) Automatically adding GPU devices
[ 49475.956] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 49475.956] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 49475.956]    Entry deleted from font path.
[ 49475.956] (==) FontPath set to:
    /usr/share/fonts/X11/misc,
    /usr/share/fonts/X11/100dpi/:unscaled,
    /usr/share/fonts/X11/75dpi/:unscaled,
    /usr/share/fonts/X11/Type1,
    /usr/share/fonts/X11/100dpi,
    /usr/share/fonts/X11/75dpi,
    built-ins
[ 49475.956] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 49475.956] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 49475.956] (WW) Disabling Keyboard0
[ 49475.956] (WW) Disabling Mouse0
[ 49475.956] (II) Loader magic: 0x561e2530fe40
[ 49475.956] (II) Module ABI versions:
[ 49475.956]    X.Org ANSI C Emulation: 0.4
[ 49475.956]    X.Org Video Driver: 24.1
[ 49475.956]    X.Org XInput driver : 24.1
[ 49475.956]    X.Org Server Extension : 10.0
[ 49475.957] (++) using VT number 7

[ 49475.957] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 49475.958] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 49475.958] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 49475.992] (--) PCI:*(1@0:0:1) 102b:0533:103c:3381 rev 1, Mem @ 0x91000000/16777216, 0x92a88000/16384, 0x92000000/8388608, BIOS @ 0x????????/131072
[ 49475.992] (--) PCI: (132@0:0:0) 10de:2182:196e:1312 rev 161, Mem @ 0xc8000000/16777216, 0x3bfe0000000/268435456, 0x3bff0000000/33554432, I/O @ 0x0000a000/128, BIOS @ 0x????????/524288
[ 49475.992] (II) LoadModule: "glx"
[ 49475.993] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 49475.994] (II) Module glx: vendor="X.Org Foundation"
[ 49475.994]    compiled for 1.20.11, module version = 1.0.0
[ 49475.994]    ABI class: X.Org Server Extension, version 10.0
[ 49475.994] (II) LoadModule: "nvidia"
[ 49475.995] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 49475.996] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 49475.996]    compiled for 1.6.99.901, module version = 1.0.0
[ 49475.996]    Module class: X.Org Video Driver
[ 49475.996] (II) NVIDIA dlloader X Driver  510.60.02  Wed Mar 16 11:23:40 UTC 2022
[ 49475.996] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 49475.996] (EE) 
Fatal server error:
[ 49475.996] (EE) xf86OpenConsole: Cannot open virtual console 7 (No such file or directory)
[ 49475.996] (EE) 
[ 49475.996] (EE) 
Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
[ 49475.996] (EE) Please also check the log file at "/var/log/Xorg.55.log" for additional information.
[ 49475.996] (EE) 
[ 49475.996] (EE) Server terminated with error (1). Closing log file.
Josh5 commented 1 year ago

This is not an issue with the container. It is an issue with how you have things configured on your server.

Closing issue. I suggest that to solve this, you seek support in forums