neutrinolabs / xrdp

xrdp: an open source RDP server
http://www.xrdp.org/
Apache License 2.0
5.75k stars 1.73k forks source link

A blue screen with remote access from Win10 #3199

Closed mcmib closed 1 month ago

mcmib commented 3 months ago

xrdp version

xrdp 0.9.12

Detailed xrdp version, build options

xrdp 0.9.12
  A Remote Desktop Protocol Server.
  Copyright (C) 2004-2018 Jay Sorg, Neutrino Labs, and all contributors.
  See https://github.com/neutrinolabs/xrdp for more information.

  Configure options:
      --enable-ipv6
      --enable-jpeg
      --enable-fuse
      --enable-rfxcodec
      --enable-opus
      --enable-painter
      --enable-vsock
      --build=x86_64-linux-gnu
      --prefix=/usr
      --includedir=${prefix}/include
      --mandir=${prefix}/share/man
      --infodir=${prefix}/share/info
      --sysconfdir=/etc
      --localstatedir=/var
      --disable-silent-rules
      --libdir=${prefix}/lib/x86_64-linux-gnu
      --libexecdir=${prefix}/lib/x86_64-linux-gnu
      --disable-maintainer-mode
      --disable-dependency-tracking
      --with-socketdir=/run/xrdp/sockdir
      build_alias=x86_64-linux-gnu
      CFLAGS=-g -O2 -fdebug-prefix-map=/build/xrdp-Ze414c/xrdp-0.9.12=. -fstack-protector-strong -Wformat -Werror=format-security 
      LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed
      CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2 
      PKG_CONFIG_PATH=/build/xrdp-Ze414c/xrdp-0.9.12/pkgconfig

  Compiled with OpenSSL 1.1.1f  31 Mar 2020

Operating system & version

Ubuntu 22

Installation method

dnf / apt / zypper / pkg / etc

Which backend do you use?

xorgxrdp

What desktop environment do you use?

GNOME

Environment xrdp running on

A physical machine (DGX A100 workstation with 4 graphics cards)

What's your client?

MS remote desktop connection

Area(s) with issue?

Session manager (sesman), Other

Steps to reproduce

sudo apt update sudo apt upgrade -y sudo apt install xrdp xorgxrdp -y sudo nano /etc/xrdp/startwm.sh

Add export to the first 2 line then sudo reboot export GNOME_SHELL_SESSION_MODE=ubuntu export XDG_CURRENT_DESKTOP=ubuntu:GNOME Snipaste_2024-08-06_14-57-33

The following information is obtained by viewing related logs. xrdp.log [20240806-14:50:21] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389) [20240806-14:50:21] [INFO ] address [0.0.0.0] port [3389] mode 1 [20240806-14:50:21] [INFO ] listening to port 3389 on 0.0.0.0 [20240806-14:50:21] [INFO ] xrdp_listen_pp done [20240806-14:50:21] [DEBUG] Closed socket 7 (AF_INET6 :: port 3389) [20240806-14:50:23] [INFO ] starting xrdp with pid 12842 [20240806-14:50:23] [INFO ] address [0.0.0.0] port [3389] mode 1 [20240806-14:50:23] [INFO ] listening to port 3389 on 0.0.0.0 [20240806-14:50:23] [INFO ] xrdp_listen_pp done [20240806-14:50:34] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:10.9.10.145 port 60872 [20240806-14:50:34] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:10.9.10.23 port 3389) [20240806-14:50:34] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389) [20240806-14:50:34] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem [20240806-14:50:34] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem [20240806-14:50:34] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied [20240806-14:50:34] [DEBUG] TLSv1.3 enabled [20240806-14:50:34] [DEBUG] TLSv1.2 enabled [20240806-14:50:34] [DEBUG] Security layer: requested 11, selected 0 [20240806-14:50:34] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:10.9.10.23 port 3389) [20240806-14:50:35] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:10.9.10.145 port 60873 [20240806-14:50:35] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:10.9.10.23 port 3389) [20240806-14:50:35] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389) [20240806-14:50:35] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem [20240806-14:50:35] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem [20240806-14:50:35] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied [20240806-14:50:35] [DEBUG] TLSv1.3 enabled [20240806-14:50:35] [DEBUG] TLSv1.2 enabled [20240806-14:50:35] [DEBUG] Security layer: requested 0, selected 0 [20240806-14:50:35] [INFO ] connected client computer name: ITY-G3001-M0015 [20240806-14:50:35] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0x80800000 [20240806-14:50:35] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000 [20240806-14:50:35] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000 [20240806-14:50:35] [INFO ] adding channel item name drdynvc chan_id 1007 flags 0xc0800000 [20240806-14:50:35] [INFO ] Non-TLS connection established from ::ffff:10.9.10.145 port 60873: encrypted with standard RDP security [20240806-14:50:35] [DEBUG] xrdp_0000329a_wm_login_mode_event_00000001 [20240806-14:50:35] [INFO ] Cannot find keymap file /etc/xrdp/km-00000804.ini [20240806-14:50:35] [INFO ] Cannot find keymap file /etc/xrdp/km-00000804.ini [20240806-14:50:35] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini [20240806-14:50:35] [WARN ] local keymap file for 0x00000804 found and doesn't match built in keymap, using local keymap file [20240806-14:50:46] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350 [20240806-14:50:46] [INFO ] xrdp_wm_log_msg: sesman connect ok [20240806-14:50:46] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait... [20240806-14:50:46] [DEBUG] return value from xrdp_mm_connect 0 [20240806-14:50:46] [INFO ] xrdp_wm_log_msg: login successful for display 10 [20240806-14:50:46] [DEBUG] xrdp_wm_log_msg: started connecting [20240806-14:50:49] [DEBUG] Closed socket 17 (AF_UNIX) GNU nano 4.8 xrdp.log
[20240806-14:50:53] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:50:56] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:51:00] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:51:03] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:51:07] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:51:10] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:51:14] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:51:17] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:51:21] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:51:24] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:51:28] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:51:31] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:51:35] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:51:38] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:51:42] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:51:45] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:51:49] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:51:52] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:51:56] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:51:59] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:52:03] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:52:06] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:52:10] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:52:13] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:52:17] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:52:20] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:52:24] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:52:27] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:52:31] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:52:34] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:52:38] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:52:41] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:52:45] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:52:48] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:52:52] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:52:55] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:52:59] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:53:02] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:53:06] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:53:09] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:53:13] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:53:16] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:53:20] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:53:23] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:53:27] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:53:30] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:53:34] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:53:37] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:53:41] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:53:44] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:53:48] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:53:51] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:53:55] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:53:58] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:54:02] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:54:05] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:54:09] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:54:12] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:54:15] [DEBUG] xrdp_wm_log_msg: connection problem, giving up [20240806-14:54:15] [DEBUG] Closed socket 17 (AF_UNIX) [20240806-14:54:15] [DEBUG] xrdp_wm_log_msg: some problem [20240806-14:54:15] [DEBUG] xrdp_mm_module_cleanup [20240806-14:54:15] [DEBUG] Closed socket 16 (AF_INET6 ::1 port 56896) [20240806-15:00:02] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:10.9.10.23 port 3389)

xrdp-sesman.log

[20240806-14:50:21] [INFO ] shutting down sesman 1 [20240806-14:50:21] [DEBUG] Closed socket 7 (AF_INET6 ::1 port 3350) [20240806-14:50:21] [DEBUG] libscp initialized [20240806-14:50:21] [DEBUG] Testing if xrdp-sesman can listen on 127.0.0.1 port 3350. [20240806-14:50:21] [DEBUG] Closed socket 5 (AF_INET6 ::1 port 3350) [20240806-14:50:21] [INFO ] starting xrdp-sesman with pid 12826 [20240806-14:50:21] [INFO ] listening to port 3350 on 127.0.0.1 [20240806-14:50:46] [INFO ] A connection received from ::1 port 56896 [20240806-14:50:46] [INFO ] ++ created session (access granted): username dgxadmin, ip ::ffff:10.9.10.145:60873 - socket: 12 [20240806-14:50:46] [INFO ] starting Xorg session... [20240806-14:50:46] [DEBUG] Closed socket 9 (AF_INET6 :: port 5910) [20240806-14:50:46] [DEBUG] Closed socket 9 (AF_INET6 :: port 6010) [20240806-14:50:46] [DEBUG] Closed socket 9 (AF_INET6 :: port 6210) [20240806-14:50:46] [DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350) [20240806-14:50:46] [INFO ] calling auth_start_session from pid 13012 [20240806-14:50:46] [DEBUG] Closed socket 7 (AF_INET6 ::1 port 3350) [20240806-14:50:46] [DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350) [20240806-14:50:46] [INFO ] /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log [20240806-14:50:56] [ERROR] X server for display 10 startup timeout [20240806-14:50:56] [CORE ] waiting for window manager (pid 13038) to exit [20240806-14:50:56] [ERROR] X server for display 10 startup timeout [20240806-14:50:56] [ERROR] another Xserver might already be active on display 10 - see log [20240806-14:50:56] [DEBUG] aborting connection... [20240806-14:50:56] [CORE ] window manager (pid 13038) did exit, cleaning up session [20240806-14:50:56] [INFO ] calling auth_stop_session and auth_end from pid 13012 [20240806-14:50:56] [DEBUG] cleanup_sockets: [20240806-14:50:56] [DEBUG] cleanup_sockets: deleting /run/xrdp/sockdir/xrdp_chansrv_socket_10 [20240806-14:50:56] [DEBUG] cleanup_sockets: deleting /run/xrdp/sockdir/xrdpapi_10 [20240806-14:50:56] [INFO ] ++ terminated session: username dgxadmin, display :10.0, session_pid 13012, ip ::ffff:10.9.10.145:60873 - socket: 12

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Anything else?

No response

matt335672 commented 3 months ago

Looks like your X server isn't starting.

/home/dgxadmin/.xorgxrdp.10.log?

mcmib commented 3 months ago

Looks like your X server isn't starting.

/home/dgxadmin/.xorgxrdp.10.log?

Thank you for getting back to me. The following is the log:

X.Org X Server 1.20.13 X Protocol Version 11, Revision 0 [ 1317.418] Build Operating System: linux Ubuntu [ 1317.418] Current Operating System: Linux DGX-Station-A100-2 5.4.0-190-generic #210-Ubuntu SMP Fri Jul 5 17:03:38 UTC 2024 x86_64 [ 1317.418] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-190-generic root=UUID=d59ed1a7-4f1a-4787-ba15-f353a5c20424 ro rd.driver.blacklist=nouveau nouveau.modeset=0 pciehp.pciehp_debug=y transpar> [ 1317.418] Build Date: 09 April 2024 01:36:10AM [ 1317.418] xorg-server 2:1.20.13-1ubuntu1~20.04.17 (For technical support please see http://www.ubuntu.com/support) [ 1317.418] Current version of pixman: 0.38.4 [ 1317.418] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 1317.418] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 1317.418] (++) Log file: ".xorgxrdp.10.log", Time: Tue Aug 6 14:50:46 2024 [ 1317.418] (++) Using config file: "/etc/X11/xrdp/xorg.conf" [ 1317.418] (==) Using config directory: "/etc/X11/xorg.conf.d" [ 1317.418] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [ 1317.419] Parse error on line 51 of section Device in file /etc/X11/xrdp/xorg.conf "GPUDevice" is not a valid keyword in this section. [ 1317.419] (EE) Problem parsing the config file [ 1317.419] (EE) Error parsing the config file [ 1317.419] (EE) Fatal server error: [ 1317.419] (EE) no screens found(EE) [ 1317.419] (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 1317.419] (EE) Please also check the log file at ".xorgxrdp.10.log" for additional information. [ 1317.419] (EE) [ 1317.419] (EE) Server terminated with error (1). Closing log file.

mcmib commented 3 months ago

Looks like your X server isn't starting.

/home/dgxadmin/.xorgxrdp.10.log?

dgxadmin@DGX-Station-A100-2:~$ startx

X.Org X Server 1.20.13 X Protocol Version 11, Revision 0 Build Operating System: linux Ubuntu Current Operating System: Linux DGX-Station-A100-2 5.4.0-190-generic #210-Ubuntu SMP Fri Jul 5 17:03:38 UTC 2024 x86_64 Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-190-generic root=UUID=d59ed1a7-4f1a-4787-ba15-f353a5c20424 ro rd.driver.blacklist=nouveau nouveau.modeset=0 pciehp.pciehp_debug=y transparent_hugepage=madvise iommu=pt console=tty0 console=ttyS1,115200n8 crashkernel=1G-:0M quiet splash vt.handoff=7 Build Date: 09 April 2024 01:36:10AM xorg-server 2:1.20.13-1ubuntu1~20.04.17 (For technical support please see http://www.ubuntu.com/support) Current version of pixman: 0.38.4 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/home/dgxadmin/.local/share/xorg/Xorg.2.log", Time: Wed Aug 7 08:49:18 2024 (==) Using config directory: "/etc/X11/xorg.conf.d" (==) Using system config directory "/usr/share/X11/xorg.conf.d" (EE) Fatal server error: (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied) (EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) Please also check the log file at "/home/dgxadmin/.local/share/xorg/Xorg.2.log" for additional information. (EE) (EE) Server terminated with error (1). Closing log file. xinit: giving up xinit: unable to connect to X server: Connection refused xinit: server error Couldn't get a file descriptor referring to the console

metalefty commented 3 months ago

This let you know what's wrong.

[ 1317.419] Parse error on line 51 of section Device in file /etc/X11/xrdp/xorg.conf
"GPUDevice" is not a valid keyword in this section.
mcmib commented 3 months ago

This let you know what's wrong.

[ 1317.419] Parse error on line 51 of section Device in file /etc/X11/xrdp/xorg.conf
"GPUDevice" is not a valid keyword in this section.

The command has been deleted, unfortunately, I still get the blue window

matt335672 commented 3 months ago

We need to bottom out some inconsistencies in the above report first I think.

What do you get for these commands:-

lsb_release -a
dpkg -l \*xrdp\*
cat /etc/X11/xrdp/xorg.conf

When we know what we're working with we can see whether there's a solution available.

mcmib commented 3 months ago

We need to bottom out some inconsistencies in the above report first I think.

  • Version info(i) Ubuntu 22.04 (which I assume is what you mean by Ubuntu 22) should have xrdp version 0.9.17, not 0.9.12.
  • Version info(ii) Your xorg.log is showing xorg version 1.20.13. My 22.04.4 test rig is running 1.21.1.4.
  • Unusual messages. xorg version 1.20.13 certainly understands "GPUDevice" if it's in the right place.

What do you get for these commands:-

lsb_release -a
dpkg -l \*xrdp\*
cat /etc/X11/xrdp/xorg.conf

When we know what we're working with we can see whether there's a solution available.

My fault, the version is 20.04. The following is the output:

dgxadmin@DGX-Station-A100-2:/$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:        20.04
Codename:       focal
dgxadmin@DGX-Station-A100-2:/$ dpkg -l \*xrdp\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                      Version           Architecture Description
+++-=========================-=================-============-===============================================
ii  xorgxrdp                  1:0.2.12-1        amd64        Remote Desktop Protocol (RDP) modules for X.org
ii  xrdp                      0.9.12-1ubuntu0.1 amd64        Remote Desktop Protocol (RDP) server
un  xrdp-pulseaudio-installer <none>            <none>       (no description available)
dgxadmin@DGX-Station-A100-2:/$ cat /etc/X11/xrdp/xorg.conf

Section "ServerLayout"
    Identifier "X11 Server"
    Screen "Screen (xrdpdev)"
    InputDevice "xrdpMouse" "CorePointer"
    InputDevice "xrdpKeyboard" "CoreKeyboard"
EndSection

Section "ServerFlags"
    Option "DontVTSwitch" "on"
    Option "AutoAddDevices" "off"
EndSection

Section "Module"
    Load "dbe"
    Load "ddc"
    Load "extmod"
    Load "glx"
    Load "int10"
    Load "record"
    Load "vbe"
    Load "glamoregl"
    Load "xorgxrdp"
    Load "fb"
EndSection

Section "InputDevice"
    Identifier "xrdpKeyboard"
    Driver "xrdpkeyb"
EndSection

Section "InputDevice"
    Identifier "xrdpMouse"
    Driver "xrdpmouse"
EndSection

Section "Monitor"
    Identifier "Monitor"
    Option "DPMS"
    HorizSync 30-80
    VertRefresh 60-75
    ModeLine "1920x1080" 138.500 1920 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync
    ModeLine "1280x720" 74.25 1280 1720 1760 1980 720 725 730 750 +HSync +VSync
    Modeline "1368x768" 72.25 1368 1416 1448 1528 768 771 781 790 +hsync -vsync
    Modeline "1600x900" 119.00 1600 1696 1864 2128 900 901 904 932 -hsync +vsync
EndSection

Section "Device"
    Identifier "Video Card (xrdpdev)"
    Driver "xrdpdev"
    Option "DRMDevice" "/dev/dri/renderD128"
    Option "DRI3" "1"
EndSection

Section "Screen"
    Identifier "Screen (xrdpdev)"
    Device "Video Card (xrdpdev)"
    Monitor "Monitor"
    DefaultDepth 24
    SubSection "Display"
        Depth 24
        Modes "640x480" "800x600" "1024x768" "1280x720" "1280x1024" "1600x900" "1920x1080"
    EndSubSection
EndSection
mcmib commented 3 months ago

.xorgxrdp.10.log

liam@DGX-Station-A100-2:~$ cat .xorgxrdp.10.log
[  7075.261] 
X.Org X Server 1.20.13
X Protocol Version 11, Revision 0
[  7075.262] Build Operating System: linux Ubuntu
[  7075.262] Current Operating System: Linux DGX-Station-A100-2 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64
[  7075.262] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-192-generic root=UUID=d59ed1a7-4f1a-4787-ba15-f353a5c20424 ro rd.driver.blacklist=nouveau nouveau.modeset=0 pciehp.pciehp_debug=y transparent_hugepage=madvise iommu=pt console=tty0 console=ttyS1,115200n8 crashkernel=1G-:0M quiet splash vt.handoff=7
[  7075.262] Build Date: 09 April 2024  01:36:10AM
[  7075.262] xorg-server 2:1.20.13-1ubuntu1~20.04.17 (For technical support please see http://www.ubuntu.com/support) 
[  7075.262] Current version of pixman: 0.38.4
[  7075.262]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[  7075.262] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  7075.262] (++) Log file: ".xorgxrdp.10.log", Time: Thu Aug  8 11:38:40 2024
[  7075.262] (++) Using config file: "/etc/X11/xrdp/xorg.conf"
[  7075.262] (==) Using config directory: "/etc/X11/xorg.conf.d"
[  7075.262] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  7075.262] (==) ServerLayout "Layout0"
[  7075.262] (**) |-->Screen "Screen0" (0)
[  7075.262] (**) |   |-->Monitor "Monitor0"
[  7075.262] (**) |   |-->Device "Device0"
[  7075.262] (**) |   |-->GPUDevice "Video Card (xrdpdev)"
[  7075.262] (**) |-->Input Device "Keyboard0"
[  7075.262] (**) |-->Input Device "Mouse0"
[  7075.262] (**) Option "DontVTSwitch" "on"
[  7075.262] (**) Option "AutoAddDevices" "off"
[  7075.262] (**) Not automatically adding devices
[  7075.262] (==) Automatically enabling devices
[  7075.262] (==) Automatically adding GPU devices
[  7075.262] (==) Automatically binding GPU devices
[  7075.262] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  7075.262] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[  7075.262]    Entry deleted from font path.
[  7075.262] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[  7075.262]    Entry deleted from font path.
[  7075.262] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[  7075.262]    Entry deleted from font path.
[  7075.262] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[  7075.262]    Entry deleted from font path.
[  7075.262] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[  7075.262]    Entry deleted from font path.
[  7075.262] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/Type1,
        built-ins
[  7075.262] (==) ModulePath set to "/usr/lib/xorg/modules"
[  7075.262] (II) Loader magic: 0x55b81fcb5020
[  7075.262] (II) Module ABI versions:
[  7075.262]    X.Org ANSI C Emulation: 0.4
[  7075.262]    X.Org Video Driver: 24.1
[  7075.262]    X.Org XInput driver : 24.1
[  7075.262]    X.Org Server Extension : 10.0
[  7075.263] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c4
[  7075.264] (II) xfree86: Adding drm device (/dev/dri/card5)
[  7075.264] (EE) systemd-logind: failed to take device /dev/dri/card5: Operation not permitted
[  7075.264] (II) xfree86: Adding drm device (/dev/dri/card0)
[  7075.264] (EE) systemd-logind: failed to take device /dev/dri/card0: Operation not permitted
[  7075.264] (II) xfree86: Adding drm device (/dev/dri/card4)
[  7075.264] (EE) systemd-logind: failed to take device /dev/dri/card4: Operation not permitted
[  7075.264] (II) xfree86: Adding drm device (/dev/dri/card3)
[  7075.264] (EE) systemd-logind: failed to take device /dev/dri/card3: Operation not permitted
[  7075.264] (II) xfree86: Adding drm device (/dev/dri/card1)
[  7075.265] (EE) systemd-logind: failed to take device /dev/dri/card1: Operation not permitted
[  7075.265] (II) xfree86: Adding drm device (/dev/dri/card2)
[  7075.265] (EE) systemd-logind: failed to take device /dev/dri/card2: Operation not permitted
[  7075.271] (--) PCI: (1@0:0:0) 10de:20b2:10de:147f rev 161, Mem @ 0xfa000000/16777216, 0x34000000000/137438953472, 0x37428000000/33554432
[  7075.271] (--) PCI:*(70@0:0:0) 1a03:2000:1a03:2000 rev 65, Mem @ 0xb4000000/16777216, 0xb5000000/131072, I/O @ 0x00009000/128, BIOS @ 0x????????/131072
[  7075.271] (--) PCI: (71@0:0:0) 10de:20b2:10de:147f rev 161, Mem @ 0xb2000000/16777216, 0x24000000000/137438953472, 0x27428000000/33554432
[  7075.271] (--) PCI: (129@0:0:0) 10de:20b2:10de:147f rev 161, Mem @ 0xbb000000/16777216, 0x1c000000000/137438953472, 0x1f428000000/33554432
[  7075.271] (--) PCI: (193@0:0:0) 10de:1fb0:10de:1485 rev 161, Mem @ 0xf4000000/16777216, 0x17430000000/268435456, 0x17440000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/524288
[  7075.271] (--) PCI: (194@0:0:0) 10de:20b2:10de:147f rev 161, Mem @ 0xf2000000/16777216, 0x14000000000/137438953472, 0x17428000000/33554432
[  7075.271] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[  7075.271] (II) LoadModule: "dbe"
[  7075.271] (II) Module "dbe" already built-in
[  7075.271] (II) LoadModule: "ddc"
[  7075.271] (II) Module "ddc" already built-in
[  7075.271] (II) LoadModule: "extmod"
[  7075.271] (II) Module "extmod" already built-in
[  7075.271] (II) LoadModule: "glx"
[  7075.271] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  7075.272] (II) Module glx: vendor="X.Org Foundation"
[  7075.272]    compiled for 1.20.13, module version = 1.0.0
[  7075.272]    ABI class: X.Org Server Extension, version 10.0
[  7075.272] (II) LoadModule: "int10"
[  7075.272] (II) Loading /usr/lib/xorg/modules/libint10.so
[  7075.272] (II) Module int10: vendor="X.Org Foundation"
[  7075.272]    compiled for 1.20.13, module version = 1.0.0
[  7075.272]    ABI class: X.Org Video Driver, version 24.1
[  7075.272] (II) LoadModule: "record"
[  7075.272] (II) Module "record" already built-in
[  7075.272] (II) LoadModule: "vbe"
[  7075.272] (II) Loading /usr/lib/xorg/modules/libvbe.so
[  7075.272] (II) Module vbe: vendor="X.Org Foundation"
[  7075.272]    compiled for 1.20.13, module version = 1.1.0
[  7075.272]    ABI class: X.Org Video Driver, version 24.1
[  7075.272] (II) LoadModule: "glamoregl"
[  7075.272] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[  7075.274] (II) Module glamoregl: vendor="X.Org Foundation"
[  7075.274]    compiled for 1.20.13, module version = 1.0.1
[  7075.274]    ABI class: X.Org ANSI C Emulation, version 0.4
[  7075.274] (II) LoadModule: "xorgxrdp"
[  7075.274] (II) Loading /usr/lib/xorg/modules/libxorgxrdp.so
[  7075.274] (II) Module XORGXRDP: vendor="X.Org Foundation"
[  7075.274]    compiled for 1.20.6, module version = 0.2.12
[  7075.274]    ABI class: X.Org Video Driver, version 24.0
[  7075.274] xorgxrdpSetup:
[  7075.274] (II) LoadModule: "fb"
[  7075.274] (II) Loading /usr/lib/xorg/modules/libfb.so
[  7075.274] (II) Module fb: vendor="X.Org Foundation"
[  7075.274]    compiled for 1.20.13, module version = 1.0.0
[  7075.274]    ABI class: X.Org ANSI C Emulation, version 0.4
[  7075.274] (II) LoadModule: "ast"
[  7075.274] (WW) Warning, couldn't open module ast
[  7075.274] (EE) Failed to load module "ast" (module does not exist, 0)
[  7075.274] (II) LoadModule: "xrdpdev"
[  7075.274] (II) Loading /usr/lib/xorg/modules/drivers/xrdpdev_drv.so
[  7075.274] (II) Module XRDPDEV: vendor="X.Org Foundation"
[  7075.274]    compiled for 1.20.6, module version = 0.2.12
[  7075.274]    ABI class: X.Org Video Driver, version 24.0
[  7075.274] xrdpdevSetup:
[  7075.274] (==) Matched ast as autoconfigured driver 0
[  7075.274] (==) Matched modesetting as autoconfigured driver 1
[  7075.274] (==) Matched fbdev as autoconfigured driver 2
[  7075.274] (==) Matched vesa as autoconfigured driver 3
[  7075.274] (==) Assigned the driver to the xf86ConfigLayout
[  7075.274] (II) LoadModule: "ast"
[  7075.274] (WW) Warning, couldn't open module ast
[  7075.274] (EE) Failed to load module "ast" (module does not exist, 0)
[  7075.274] (II) LoadModule: "xrdpdev"
[  7075.274] (II) Loading /usr/lib/xorg/modules/drivers/xrdpdev_drv.so
[  7075.274] (II) Module XRDPDEV: vendor="X.Org Foundation"
[  7075.274]    compiled for 1.20.6, module version = 0.2.12
[  7075.274]    ABI class: X.Org Video Driver, version 24.0
[  7075.274] xrdpdevSetup:
[  7075.274] (II) UnloadModule: "XRDPDEV"
[  7075.274] (II) Unloading XRDPDEV
[  7075.274] (II) Failed to load module "xrdpdev" (already loaded, 0)
[  7075.274] (II) LoadModule: "modesetting"
[  7075.274] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[  7075.274] (II) Module modesetting: vendor="X.Org Foundation"
[  7075.274]    compiled for 1.20.13, module version = 1.20.13
[  7075.274]    Module class: X.Org Video Driver
[  7075.274]    ABI class: X.Org Video Driver, version 24.1
[  7075.274] (II) LoadModule: "fbdev"
[  7075.274] (WW) Warning, couldn't open module fbdev
[  7075.274] (EE) Failed to load module "fbdev" (module does not exist, 0)
[  7075.274] (II) LoadModule: "vesa"
[  7075.275] (WW) Warning, couldn't open module vesa
[  7075.275] (EE) Failed to load module "vesa" (module does not exist, 0)
[  7075.275] (II) LoadModule: "kbd"
[  7075.275] (WW) Warning, couldn't open module kbd
[  7075.275] (EE) Failed to load module "kbd" (module does not exist, 0)
[  7075.275] (II) LoadModule: "mouse"
[  7075.275] (WW) Warning, couldn't open module mouse
[  7075.275] (EE) Failed to load module "mouse" (module does not exist, 0)
[  7075.275] rdpIdentify:
[  7075.275] (II) XRDPDEV: driver for xrdp: XRDPDEV
[  7075.275] rdpDriverFunc: op 10
[  7075.275] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  7075.275] (EE) 
Fatal server error:
[  7075.275] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
[  7075.275] (EE) 
[  7075.275] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[  7075.275] (EE) Please also check the log file at ".xorgxrdp.10.log" for additional information.
[  7075.275] (EE) 
[  7075.275] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[  7075.275] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[  7075.275] (EE) Server terminated with error (1). Closing log file.
matt335672 commented 3 months ago

I think what is happening here is you've got files in /etc/X11/xorg.conf.d/ which are related to your physical GPUs. These are also being loaded and causing xorgxrdp to fail

See this post and #2556 for a possible solution.

Let us know what happens.