Skip to content

Cannot login to xrdp after upgrading CPU #3493

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hugo-id opened this issue Apr 5, 2025 · 5 comments
Open

Cannot login to xrdp after upgrading CPU #3493

hugo-id opened this issue Apr 5, 2025 · 5 comments

Comments

@hugo-id
Copy link

hugo-id commented Apr 5, 2025

Cannot login to xrdp after upgrading CPU Ubuntu 22.04

Hi there, much like #3479 , but everything is bone stock, and I (think I) get different errors

I can pass the login screen, but then I get stuck there until it crashes (1-15s)

None of the logs seem to give me anything useful to work with.

Only recent change is installing a new mobo & CPU.

Configuration Files

/etc/X11/Xwrapper.config

allowed_users=console

/etc/xrdp/sesman.ini

;; See `man 5 sesman.ini` for details

[Globals]
ListenAddress=127.0.0.1
ListenPort=3350
EnableUserWindowManager=true
; Give in relative path to user's home directory
UserWindowManager=startwm.sh
; Give in full path or relative path to /etc/xrdp
DefaultWindowManager=startwm.sh
; Give in full path or relative path to /etc/xrdp
ReconnectScript=reconnectwm.sh

[Security]
AllowRootLogin=true
MaxLoginRetry=4
TerminalServerUsers=tsusers
TerminalServerAdmins=tsadmins
; When AlwaysGroupCheck=false access will be permitted
; if the group TerminalServerUsers is not defined.
AlwaysGroupCheck=false
; When RestrictOutboundClipboard=true clipboard from the
; server is not pushed to the client.
RestrictOutboundClipboard=false

[Sessions]
;; X11DisplayOffset - x11 display number offset
; Type: integer
; Default: 10
X11DisplayOffset=10

;; MaxSessions - maximum number of connections to an xrdp server
; Type: integer
; Default: 0
MaxSessions=50

;; KillDisconnected - kill disconnected sessions
; Type: boolean
; Default: false
; if 1, true, or yes, every session will be killed within DisconnectedTimeLimit
; seconds after the user disconnects
KillDisconnected=false

;; DisconnectedTimeLimit (seconds) - wait before kill disconnected sessions
; Type: integer
; Default: 0
; if KillDisconnected is set to false, this value is ignored
DisconnectedTimeLimit=0

;; IdleTimeLimit (seconds) - wait before disconnect idle sessions
; Type: integer
; Default: 0
; Set to 0 to disable idle disconnection.
IdleTimeLimit=0

;; Policy - session allocation policy
; Type: enum [ "Default" | "UBD" | "UBI" | "UBC" | "UBDI" | "UBDC" ]
; "Default" session per <User,BitPerPixel>
; "UBD" session per <User,BitPerPixel,DisplaySize>
; "UBI" session per <User,BitPerPixel,IPAddr>
; "UBC" session per <User,BitPerPixel,Connection>
; "UBDI" session per <User,BitPerPixel,DisplaySize,IPAddr>
; "UBDC" session per <User,BitPerPixel,DisplaySize,Connection>
Policy=Default

[Logging]
; Note: Log levels can be any of: core, error, warning, info, debug, or trace
LogFile=xrdp-sesman.log
LogLevel=INFO
EnableSyslog=true
#SyslogLevel=INFO
#EnableConsole=false
#ConsoleLevel=INFO
#EnableProcessId=false

[LoggingPerLogger]
; Note: per logger configuration is only used if xrdp is built with
; --enable-devel-logging
#sesman.c=INFO
#main()=INFO

;
; Session definitions - startup command-line parameters for each session type
;

[Xorg]
; Specify the path of non-suid Xorg executable. It might differ depending
; on your distribution and version. Find out the appropreate path for your
; environment. The typical path is known as follows:
;
; Fedora 26 or later    :  param=/usr/libexec/Xorg
; Debian 9 or later     :  param=/usr/lib/xorg/Xorg
; Ubuntu 16.04 or later :  param=/usr/lib/xorg/Xorg
; Arch Linux            :  param=/usr/lib/Xorg
; CentOS 7              :  param=/usr/bin/Xorg or param=Xorg
; CentOS 8              :  param=/usr/libexec/Xorg
;
param=/usr/lib/xorg/Xorg
; Leave the rest paramaters as-is unless you understand what will happen.
param=-config
param=xrdp/xorg.conf
param=-noreset
param=-nolisten
param=tcp
param=-logfile
param=.xorgxrdp.%s.log

[Xvnc]
param=Xvnc
param=-bs
param=-nolisten
param=tcp
param=-localhost
param=-dpi
param=96

[Chansrv]
; drive redirection
; See sesman.ini(5) for the format of this parameter
#FuseMountName=/run/user/%u/thinclient_drives
#FuseMountName=/media/thinclient_drives/%U/thinclient_drives
FuseMountName=thinclient_drives
; this value allows only the user to acess their own mapped drives.
; Make this more permissive (e.g. 022) if required.
FileUmask=077
; Can be used to disable FUSE functionality - see sesman.ini(5)
#EnableFuseMount=false

[ChansrvLogging]
; Note: one log file is created per display and the LogFile config value 
; is ignored. The channel server log file names follow the naming convention: 
; xrdp-chansrv.${DISPLAY}.log
;
; Note: Log levels can be any of: core, error, warning, info, debug, or trace
LogLevel=INFO
EnableSyslog=true
#SyslogLevel=INFO
#EnableConsole=false
#ConsoleLevel=INFO
#EnableProcessId=false

[ChansrvLoggingPerLogger]
; Note: per logger configuration is only used if xrdp is built with
; --enable-devel-logging
#chansrv.c=INFO
#main()=INFO

[SessionVariables]
PULSE_SCRIPT=/etc/xrdp/pulse/default.pa

/etc/xrdp/xrdp.ini

[Globals]
; xrdp.ini file version number
ini_version=1

; fork a new process for each incoming connection
fork=true

; ports to listen on, number alone means listen on all interfaces
; 0.0.0.0 or :: if ipv6 is configured
; space between multiple occurrences
; ALL specified interfaces must be UP when xrdp starts, otherwise xrdp will fail to start
;
; Examples:
;   port=3389
;   port=unix://./tmp/xrdp.socket
;   port=tcp://.:3389                           127.0.0.1:3389
;   port=tcp://:3389                            *:3389
;   port=tcp://<any ipv4 format addr>:3389      192.168.1.1:3389
;   port=tcp6://.:3389                          ::1:3389
;   port=tcp6://:3389                           *:3389
;   port=tcp6://{<any ipv6 format addr>}:3389   {FC00:0:0:0:0:0:0:1}:3389
;   port=vsock://<cid>:<port>
port=3389

; 'port' above should be connected to with vsock instead of tcp
; use this only with number alone in port above
; prefer use vsock://<cid>:<port> above
use_vsock=false

; regulate if the listening socket use socket option tcp_nodelay
; no buffering will be performed in the TCP stack
tcp_nodelay=true

; regulate if the listening socket use socket option keepalive
; if the network connection disappear without close messages the connection will be closed
tcp_keepalive=true

; set tcp send/recv buffer (for experts)
#tcp_send_buffer_bytes=32768
#tcp_recv_buffer_bytes=32768

; security layer can be 'tls', 'rdp' or 'negotiate'
; for client compatible layer
security_layer=negotiate

; minimum security level allowed for client for classic RDP encryption
; use tls_ciphers to configure TLS encryption
; can be 'none', 'low', 'medium', 'high', 'fips'
crypt_level=high

; X.509 certificate and private key
; openssl req -x509 -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem -days 365
; note this needs the user xrdp to be a member of the ssl-cert group, do with e.g.
;$ sudo adduser xrdp ssl-cert
certificate=
key_file=

; set SSL protocols
; can be comma separated list of 'SSLv3', 'TLSv1', 'TLSv1.1', 'TLSv1.2', 'TLSv1.3'
ssl_protocols=TLSv1.2, TLSv1.3
; set TLS cipher suites
#tls_ciphers=HIGH

; concats the domain name to the user if set for authentication with the separator
; for example when the server is multi homed with SSSd
#domain_user_separator=@

; The following options will override the keyboard layout settings.
; These options are for DEBUG and are not recommended for regular use.
#xrdp.override_keyboard_type=0x04
#xrdp.override_keyboard_subtype=0x01
#xrdp.override_keylayout=0x00000409

; Section name to use for automatic login if the client sends username
; and password. If empty, the domain name sent by the client is used.
; If empty and no domain name is given, the first suitable section in
; this file will be used.
autorun=

allow_channels=true
allow_multimon=true
bitmap_cache=true
bitmap_compression=true
bulk_compression=true
#hidelogwindow=true
max_bpp=32
new_cursors=true
; fastpath - can be 'input', 'output', 'both', 'none'
use_fastpath=both
; when true, userid/password *must* be passed on cmd line
#require_credentials=true
; when true, the userid will be used to try to authenticate
#enable_token_login=true
; You can set the PAM error text in a gateway setup (MAX 256 chars)
#pamerrortxt=change your password according to policy at http://url

;
; colors used by windows in RGB format
;
blue=009cb5
grey=dedede
#black=000000
#dark_grey=808080
#blue=08246b
#dark_blue=08246b
#white=ffffff
#red=ff0000
#green=00ff00
#background=626c72

;
; configure login screen
;

; Login Screen Window Title
#ls_title=My Login Title

; top level window background color in RGB format
ls_top_window_bg_color=009cb5

; width and height of login screen
;
; The default height allows for about 5 fields to be comfortably displayed
; above the buttons at the bottom. To display more fields, make <ls_height>
; larger, and also increase <ls_btn_ok_y_pos> and <ls_btn_cancel_y_pos>
; below
;
ls_width=350
ls_height=430

; login screen background color in RGB format
ls_bg_color=dedede

; optional background image filename (bmp format).
#ls_background_image=

; logo
; full path to bmp-file or file in shared folder
ls_logo_filename=
ls_logo_x_pos=55
ls_logo_y_pos=50

; for positioning labels such as username, password etc
ls_label_x_pos=30
ls_label_width=65

; for positioning text and combo boxes next to above labels
ls_input_x_pos=110
ls_input_width=210

; y pos for first label and combo box
ls_input_y_pos=220

; OK button
ls_btn_ok_x_pos=142
ls_btn_ok_y_pos=370
ls_btn_ok_width=85
ls_btn_ok_height=30

; Cancel button
ls_btn_cancel_x_pos=237
ls_btn_cancel_y_pos=370
ls_btn_cancel_width=85
ls_btn_cancel_height=30

[Logging]
; Note: Log levels can be any of: core, error, warning, info, debug, or trace
LogFile=xrdp.log
LogLevel=INFO
EnableSyslog=true
#SyslogLevel=INFO
#EnableConsole=false
#ConsoleLevel=INFO
#EnableProcessId=false

[LoggingPerLogger]
; Note: per logger configuration is only used if xrdp is built with
; --enable-devel-logging
#xrdp.c=INFO
#main()=INFO

[Channels]
; Channel names not listed here will be blocked by XRDP.
; You can block any channel by setting its value to false.
; IMPORTANT! All channels are not supported in all use
; cases even if you set all values to true.
; You can override these settings on each session type
; These settings are only used if allow_channels=true
rdpdr=true
rdpsnd=true
drdynvc=true
cliprdr=true
rail=true
xrdpvr=true
tcutils=true

; for debugging xrdp, in section xrdp1, change port=-1 to this:
#port=/tmp/.xrdp/xrdp_display_10


;
; Session types
;

; Some session types such as Xorg, X11rdp and Xvnc start a display server.
; Startup command-line parameters for the display server are configured
; in sesman.ini. See and configure also sesman.ini.
[Xorg]
name=Xorg
lib=libxup.so
username=ask
password=ask
ip=127.0.0.1
port=-1
code=20

[Xvnc]
name=Xvnc
lib=libvnc.so
username=ask
password=ask
ip=127.0.0.1
port=-1
#xserverbpp=24
#delay_ms=2000
; Disable requested encodings to support buggy VNC servers
; (1 = ExtendedDesktopSize)
#disabled_encodings_mask=0
; Use this to connect to a chansrv instance created outside of sesman
; (e.g. as part of an x11vnc console session). Replace '0' with the
; display number of the session
#chansrvport=DISPLAY(0)

; Generic VNC Proxy
; Tailor this to specific hosts and VNC instances by specifying an ip
; and port and setting a suitable name.
[vnc-any]
name=vnc-any
lib=libvnc.so
ip=ask
port=ask5900
username=na
password=ask
#pamusername=asksame
#pampassword=asksame
#pamsessionmng=127.0.0.1
#delay_ms=2000

; Generic RDP proxy using NeutrinoRDP
; Tailor this to specific hosts by specifying an ip and port and setting
; a suitable name.
[neutrinordp-any]
name=neutrinordp-any
; To use this section, you should build xrdp with configure option
; --enable-neutrinordp.
lib=libxrdpneutrinordp.so
ip=ask
port=ask3389
username=ask
password=ask
; Uncomment the following lines to enable PAM authentication for proxy
; connections.
#pamusername=ask
#pampassword=ask
#pamsessionmng=127.0.0.1
; Currently NeutrinoRDP doesn't support dynamic resizing. Uncomment
; this line if you're using a client which does.
#enable_dynamic_resizing=false
; By default, performance settings requested by the RDP client are ignored
; and chosen by NeutrinoRDP. Uncomment this line to allow the user to
; select performance settings in the RDP client.
#perf.allow_client_experiencesettings=true
; Override any experience setting by uncommenting one or more of the
; following lines.
#perf.wallpaper=false
#perf.font_smoothing=false
#perf.desktop_composition=false
#perf.full_window_drag=false
#perf.menu_anims=false
#perf.themes=false
#perf.cursor_blink=false
; By default NeutrinoRDP supports cursor shadows. If this is giving
; you problems (e.g. cursor is a black rectangle) try disabling cursor
; shadows by uncommenting the following line.
#perf.cursor_shadow=false
; By default, NeutrinoRDP uses the keyboard layout of the remote RDP Server.
; If you want to tell the remote the keyboard layout of the RDP Client,
; by uncommenting the following line.
#neutrinordp.allow_client_keyboardLayout=true
; The following options will override the remote keyboard layout settings.
; These options are for DEBUG and are not recommended for regular use.
#neutrinordp.override_keyboardLayout_mask=0x0000FFFF
#neutrinordp.override_kbd_type=0x04
#neutrinordp.override_kbd_subtype=0x01
#neutrinordp.override_kbd_fn_keys=12
#neutrinordp.override_kbd_layout=0x00000409

; You can override the common channel settings for each session type
#channel.rdpdr=true
#channel.rdpsnd=true
#channel.drdynvc=true
#channel.cliprdr=true
#channel.rail=true
#channel.xrdpvr=true

/etc/xrdp/startwm.sh


#!/bin/sh
# xrdp X session start script (c) 2015, 2017, 2021 mirabilos
# published under The MirOS Licence

# Rely on /etc/pam.d/xrdp-sesman using pam_env to load both
# /etc/environment and /etc/default/locale to initialise the
# locale and the user environment properly.

if test -r /etc/profile; then
   . /etc/profile
fi

test -x /etc/X11/Xsession && exec /etc/X11/Xsession
exec /bin/sh /etc/X11/Xsession

/etc/X11/xrdp/xorg.conf

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

Section "ServerFlags"
   # This line prevents "ServerLayout" sections in xorg.conf.d files
   # overriding the "X11 Server" layout (xrdp #1784)
   Option "DefaultServerLayout" "X11 Server"
   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

Service Status and Logs

sudo systemctl status xrdp

● xrdp.service - xrdp daemon
    Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
    Active: active (running) since Sat 2025-04-05 19:51:51 AEDT; 1h 7min ago
      Docs: man:xrdp(8)
            man:xrdp.ini(5)
   Process: 1289 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS)
   Process: 1303 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/SUCCESS)
  Main PID: 1313 (xrdp)
     Tasks: 1 (limit: 18857)
    Memory: 2.5M
       CPU: 652ms
    CGroup: /system.slice/xrdp.service
            └─1313 /usr/sbin/xrdp

Apr 05 20:58:20 LocalNAS xrdp[4120]: [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
Apr 05 20:58:20 LocalNAS xrdp[4120]: [INFO ] started connecting
Apr 05 20:58:20 LocalNAS xrdp[4120]: [INFO ] lib_mod_connect: connecting via UNIX socket
Apr 05 20:58:20 LocalNAS xrdp[4120]: [INFO ] lib_mod_log_peer: xrdp_pid=4120 connected to X11rdp_pid=4124 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:192.168.1.13 client_port=53458
Apr 05 20:58:20 LocalNAS xrdp[4120]: [INFO ] connected ok
Apr 05 20:58:24 LocalNAS xrdp[4120]: [WARN ] xrdp_mm_connect_chansrv: connect failed trying again...
Apr 05 20:58:28 LocalNAS xrdp[4120]: [WARN ] xrdp_mm_connect_chansrv: connect failed trying again...
Apr 05 20:58:32 LocalNAS xrdp[4120]: [WARN ] xrdp_mm_connect_chansrv: connect failed trying again...
Apr 05 20:58:36 LocalNAS xrdp[4120]: [WARN ] xrdp_mm_connect_chansrv: connect failed trying again...
Apr 05 20:58:36 LocalNAS xrdp[4120]: [ERROR] xrdp_mm_connect_chansrv: error in trans_connect chan 

sudo systemctl status xrdp-sesman

● xrdp-sesman.service - xrdp session manager
    Loaded: loaded (/lib/systemd/system/xrdp-sesman.service; enabled; vendor preset: enabled)
    Active: active (running) since Sat 2025-04-05 19:51:50 AEDT; 1h 8min ago
      Docs: man:xrdp-sesman(8)
            man:sesman.ini(5)
   Process: 1274 ExecStart=/usr/sbin/xrdp-sesman $SESMAN_OPTIONS (code=exited, status=0/SUCCESS)
  Main PID: 1287 (xrdp-sesman)
     Tasks: 1 (limit: 18857)
    Memory: 2.4M
       CPU: 546ms
    CGroup: /system.slice/xrdp-sesman.service
            └─1287 /usr/sbin/xrdp-sesman

Apr 05 20:58:20 LocalNAS xrdp-sesman[4122]: [WARN ] Window manager (pid 4123, display 10) exited with non-zero exit code 1 and signal 0. This could indicate a window manager config problem
Apr 05 20:58:20 LocalNAS xrdp-sesman[4122]: [WARN ] Window manager (pid 4123, display 10) exited quickly (0 secs). This could indicate a window manager config problem
Apr 05 20:58:20 LocalNAS xrdp-sesman[4122]: [INFO ] Calling auth_stop_session and auth_end from pid 4122
Apr 05 20:58:20 LocalNAS xrdp-sesman[4122]: pam_unix(xrdp-sesman:session): session closed for user pater
Apr 05 20:58:20 LocalNAS xrdp-sesman[4122]: [INFO ] Terminating X server (pid 4124) on display 10
Apr 05 20:58:20 LocalNAS xrdp-sesman[4122]: [INFO ] Terminating the xrdp channel server (pid 4133) on display 10
Apr 05 20:58:20 LocalNAS xrdp-sesman[4122]: [INFO ] X server on display 10 (pid 4124) returned exit code 0 and signal number 0
Apr 05 20:58:20 LocalNAS xrdp-sesman[4122]: [INFO ] xrdp channel server for display 10 (pid 4133) exit code 0 and signal number 0
Apr 05 20:58:20 LocalNAS xrdp-sesman[4122]: [INFO ] cleanup_sockets:
Apr 05 20:58:20 LocalNAS xrdp-sesman[1287]: [INFO ] ++ terminated session:  username pater, display :10.0, session_pid 4122, ip ::ffff:192.168.1.13:53458 - socket: 12

Summary / Request

Issue: After logging in, I only see a blue screen and never reach the GNOME desktop.

I have spent hours going through every guide I could find, uninstalling / reinstalling etc etc to no avail

Question: Does anyone see what might be causing Xorg to fail or the session to hang at a blue screen? Any guidance on further troubleshooting would be greatly appreciated, I'm at a loss here.

@matt335672
Copy link
Member

Hi @hugo-id

You haven't reported your version of xrdp, but I'm guessing it's v0.9.x if you're on Ubuntu 22.04.

With that version it's hard to tell whether the X server is failing or the session manager is failing.

  1. Do you have a file /home/pater/.xorgxrdp.10.log? If so, what is in it?
  2. After a login attempt, what do you get from sudo journalctl -S -1m?

Thanks.

@hugo-id
Copy link
Author

hugo-id commented Apr 6, 2025

I reinstalled xrdp (version is 0.9.17) just to get a fresh output.

/home/pater/.xorgxrdp.10.log

[ 65172.464] 
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
[ 65172.464] Current Operating System: Linux LocalNAS 6.8.0-57-generic #59~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Mar 19 17:07:41 UTC 2 x86_64
[ 65172.464] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-57-generic root=UUID=4861edb7-44ba-4ed0-815e-8c2142d3110a ro
[ 65172.464] xorg-server 2:21.1.4-2ubuntu1.7~22.04.14 (For technical support please see http://www.ubuntu.com/support) 
[ 65172.464] Current version of pixman: 0.40.0
[ 65172.464] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[ 65172.464] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 65172.464] (++) Log file: ".xorgxrdp.10.log", Time: Sun Apr  6 12:57:47 2025
[ 65172.464] (++) Using config file: "/etc/X11/xrdp/xorg.conf"
[ 65172.464] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 65172.465] (**) Option "defaultserverlayout" "X11 Server"
[ 65172.465] (**) ServerLayout "X11 Server"
[ 65172.465] (**) |-->Screen "Screen (xrdpdev)" (0)
[ 65172.465] (**) |   |-->Monitor "Monitor"
[ 65172.465] (**) |   |-->Device "Video Card (xrdpdev)"
[ 65172.465] (**) |-->Input Device "xrdpMouse"
[ 65172.465] (**) |-->Input Device "xrdpKeyboard"
[ 65172.465] (**) Option "DontVTSwitch" "on"
[ 65172.465] (**) Option "AutoAddDevices" "off"
[ 65172.465] (**) Not automatically adding devices
[ 65172.465] (==) Automatically enabling devices
[ 65172.465] (==) Automatically adding GPU devices
[ 65172.465] (==) Automatically binding GPU devices
[ 65172.465] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 65172.465] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 65172.465] 	Entry deleted from font path.
[ 65172.465] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[ 65172.465] 	Entry deleted from font path.
[ 65172.465] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 65172.465] 	Entry deleted from font path.
[ 65172.465] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[ 65172.465] 	Entry deleted from font path.
[ 65172.465] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 65172.465] 	Entry deleted from font path.
[ 65172.465] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/Type1,
	built-ins
[ 65172.465] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 65172.465] (II) Loader magic: 0x55b239898020
[ 65172.465] (II) Module ABI versions:
[ 65172.465] 	X.Org ANSI C Emulation: 0.4
[ 65172.465] 	X.Org Video Driver: 25.2
[ 65172.465] 	X.Org XInput driver : 24.4
[ 65172.465] 	X.Org Server Extension : 10.0
[ 65172.467] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c9
[ 65172.468] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 65172.468] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[ 65172.469] (EE) systemd-logind: failed to take device /dev/dri/card0: Operation not permitted
[ 65172.471] (--) PCI:*(0@0:2:0) 8086:4692:1458:d000 rev 12, Mem @ 0x6001000000/16777216, 0x4000000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[ 65172.471] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[ 65172.471] (II) LoadModule: "dbe"
[ 65172.472] (II) Module "dbe" already built-in
[ 65172.472] (II) LoadModule: "ddc"
[ 65172.472] (II) Module "ddc" already built-in
[ 65172.472] (II) LoadModule: "extmod"
[ 65172.472] (II) Module "extmod" already built-in
[ 65172.472] (II) LoadModule: "glx"
[ 65172.472] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 65172.473] (II) Module glx: vendor="X.Org Foundation"
[ 65172.473] 	compiled for 1.21.1.4, module version = 1.0.0
[ 65172.473] 	ABI class: X.Org Server Extension, version 10.0
[ 65172.473] (II) LoadModule: "int10"
[ 65172.473] (II) Loading /usr/lib/xorg/modules/libint10.so
[ 65172.473] (II) Module int10: vendor="X.Org Foundation"
[ 65172.473] 	compiled for 1.21.1.4, module version = 1.0.0
[ 65172.473] 	ABI class: X.Org Video Driver, version 25.2
[ 65172.473] (II) LoadModule: "record"
[ 65172.473] (II) Module "record" already built-in
[ 65172.473] (II) LoadModule: "vbe"
[ 65172.473] (II) Loading /usr/lib/xorg/modules/libint10.so
[ 65172.473] (II) Module int10: vendor="X.Org Foundation"
[ 65172.473] 	compiled for 1.21.1.4, module version = 1.0.0
[ 65172.473] 	ABI class: X.Org Video Driver, version 25.2
[ 65172.473] (II) LoadModule: "glamoregl"
[ 65172.473] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[ 65172.477] (II) Module glamoregl: vendor="X.Org Foundation"
[ 65172.477] 	compiled for 1.21.1.4, module version = 1.0.1
[ 65172.477] 	ABI class: X.Org ANSI C Emulation, version 0.4
[ 65172.477] (II) LoadModule: "xorgxrdp"
[ 65172.477] (II) Loading /usr/lib/xorg/modules/libxorgxrdp.so
[ 65172.477] (II) Module XORGXRDP: vendor="X.Org Foundation"
[ 65172.477] 	compiled for 1.21.1.3, module version = 0.2.17
[ 65172.477] 	ABI class: X.Org Video Driver, version 25.2
[ 65172.477] xorgxrdpSetup:
[ 65172.477] (II) LoadModule: "fb"
[ 65172.477] (II) Module "fb" already built-in
[ 65172.477] (II) LoadModule: "xrdpdev"
[ 65172.478] (II) Loading /usr/lib/xorg/modules/drivers/xrdpdev_drv.so
[ 65172.478] (II) Module XRDPDEV: vendor="X.Org Foundation"
[ 65172.478] 	compiled for 1.21.1.3, module version = 0.2.17
[ 65172.478] 	ABI class: X.Org Video Driver, version 25.2
[ 65172.478] xrdpdevSetup:
[ 65172.478] (II) LoadModule: "xrdpmouse"
[ 65172.478] (II) Loading /usr/lib/xorg/modules/input/xrdpmouse_drv.so
[ 65172.478] (II) Module XRDPMOUSE: vendor="X.Org Foundation"
[ 65172.478] 	compiled for 1.21.1.3, module version = 0.2.17
[ 65172.478] 	Module class: X.Org XInput Driver
[ 65172.478] 	ABI class: X.Org XInput driver, version 24.4
[ 65172.478] rdpmousePlug:
[ 65172.478] (II) LoadModule: "xrdpkeyb"
[ 65172.478] (II) Loading /usr/lib/xorg/modules/input/xrdpkeyb_drv.so
[ 65172.478] (II) Module XRDPKEYB: vendor="X.Org Foundation"
[ 65172.478] 	compiled for 1.21.1.3, module version = 0.2.17
[ 65172.478] 	Module class: X.Org XInput Driver
[ 65172.478] 	ABI class: X.Org XInput driver, version 24.4
[ 65172.478] rdpkeybPlug:
[ 65172.478] rdpIdentify:
[ 65172.478] (II) XRDPDEV: driver for xrdp: XRDPDEV
[ 65172.478] rdpDriverFunc: op 10
[ 65172.478] (WW) Falling back to old probe method for XRDPDEV
[ 65172.478] rdpProbe:
[ 65172.478] (II) Loading sub module "fb"
[ 65172.478] (II) LoadModule: "fb"
[ 65172.478] (II) Module "fb" already built-in
[ 65172.478] rdpProbe: found DRMDevice xorg.conf value [/dev/dri/renderD128]
[ 65172.478] rdpProbe: found DRI3 xorg.conf value [1]
[ 65172.478] (II) XRDPDEV(0): using default device
[ 65172.478] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 65172.478] rdpPreInit:
[ 65172.478] rdpPreInit: /dev/dri/renderD128 open failed
[ 65172.478] (**) XRDPDEV(0): Depth 24, (--) framebuffer bpp 32
[ 65172.478] (==) XRDPDEV(0): RGB weight 888
[ 65172.478] (==) XRDPDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[ 65172.478] (==) XRDPDEV(0): Default visual is TrueColor
[ 65172.478] (==) XRDPDEV(0): DPI set to (96, 96)
[ 65172.478] (II) XRDPDEV(0): 	mode "640x480" ok
[ 65172.478] (II) XRDPDEV(0): 	mode "800x600" ok
[ 65172.478] (II) XRDPDEV(0): Virtual size is 800x600 (pitch 800)
[ 65172.478] (**) XRDPDEV(0):  Default mode "800x600": 36.0 MHz (scaled from 0.0 MHz), 35.2 kHz, 56.2 Hz
[ 65172.478] (II) XRDPDEV(0): Modeline "800x600"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[ 65172.478] rdpScreenInit: virtualX 800 virtualY 600 rgbBits 8 depth 24
[ 65172.478] rdpScreenInit: pfbMemory bytes 1920000
[ 65172.478] rdpScreenInit: pfbMemory 0x7c428433d010
[ 65172.478] rdpSimdInit: assigning yuv functions
[ 65172.478] rdpSimdInit: cpuid ax 1 cx 0 return ax 0x00090675 bx 0x06100800 cx 0x7ffafbbf dx 0xbfebfbff
[ 65172.478] rdpSimdInit: sse2 amd64 yuv functions assigned
[ 65172.478] (==) XRDPDEV(0): Backing store enabled
[ 65172.479] rdpClientConInit: disconnect idle session after [0] sec
[ 65172.479] rdpClientConInit: kill disconnected [0] timeout [0] sec
[ 65172.479] rdpXvInit: depth 24
[ 65172.479] rdpScreenInit: out
[ 65172.479] (II) Initializing extension Generic Event Extension
[ 65172.479] (II) Initializing extension SHAPE
[ 65172.479] (II) Initializing extension MIT-SHM
[ 65172.479] (II) Initializing extension XInputExtension
[ 65172.479] (II) Initializing extension XTEST
[ 65172.480] (II) Initializing extension BIG-REQUESTS
[ 65172.480] (II) Initializing extension SYNC
[ 65172.480] (II) Initializing extension XKEYBOARD
[ 65172.480] (II) Initializing extension XC-MISC
[ 65172.480] (II) Initializing extension SECURITY
[ 65172.480] (II) Initializing extension XFIXES
[ 65172.481] (II) Initializing extension RENDER
[ 65172.481] (II) Initializing extension RANDR
[ 65172.481] (II) Initializing extension COMPOSITE
[ 65172.481] (II) Initializing extension DAMAGE
[ 65172.481] (II) Initializing extension MIT-SCREEN-SAVER
[ 65172.482] (II) Initializing extension DOUBLE-BUFFER
[ 65172.482] (II) Initializing extension RECORD
[ 65172.482] (II) Initializing extension DPMS
[ 65172.482] (II) Initializing extension Present
[ 65172.482] (II) Initializing extension DRI3
[ 65172.482] (II) Initializing extension X-Resource
[ 65172.482] (II) Initializing extension XVideo
[ 65172.482] (II) Initializing extension XVideo-MotionCompensation
[ 65172.482] (II) Initializing extension SELinux
[ 65172.482] (II) SELinux: Disabled on system
[ 65172.482] (II) Initializing extension GLX
[ 65172.483] (II) AIGLX: Screen 0 is not DRI2 capable
[ 65172.520] (II) IGLX: Loaded and initialized swrast
[ 65172.520] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 65172.520] (II) Initializing extension XFree86-VidModeExtension
[ 65172.520] (II) Initializing extension XFree86-DGA
[ 65172.521] (II) Initializing extension XFree86-DRI
[ 65172.521] (II) Initializing extension DRI2
[ 65172.521] rdpCreateScreenResources:
[ 65172.554] (II) Using input driver 'XRDPMOUSE' for 'xrdpMouse'
[ 65172.554] (**) Option "CorePointer"
[ 65172.554] (**) xrdpMouse: always reports core events
[ 65172.554] rdpmousePreInit: drv 0x55b245ca2430 info 0x55b245f95350, flags 0x0
[ 65172.554] (II) XINPUT: Adding extended input device "xrdpMouse" (type: Mouse, id 6)
[ 65172.554] rdpmouseControl: what 0
[ 65172.554] rdpmouseDeviceInit:
[ 65172.554] rdpmouseCtrl:
[ 65172.554] rdpRegisterInputCallback: type 1 proc 0x7c4284a1b3b0
[ 65172.554] (**) xrdpMouse: (accel) keeping acceleration scheme 1
[ 65172.555] (**) xrdpMouse: (accel) acceleration profile 0
[ 65172.555] (**) xrdpMouse: (accel) acceleration factor: 2.000
[ 65172.555] (**) xrdpMouse: (accel) acceleration threshold: 4
[ 65172.555] rdpmouseControl: what 1
[ 65172.555] rdpmouseDeviceOn:
[ 65172.555] (II) Using input driver 'XRDPKEYB' for 'xrdpKeyboard'
[ 65172.555] (**) Option "CoreKeyboard"
[ 65172.555] (**) xrdpKeyboard: always reports core events
[ 65172.555] rdpkeybPreInit: drv 0x55b245ca23e0 info 0x55b245f984d0, flags 0x0
[ 65172.555] (II) XINPUT: Adding extended input device "xrdpKeyboard" (type: Keyboard, id 7)
[ 65172.555] rdpkeybControl: what 0
[ 65172.555] rdpkeybDeviceInit:
[ 65172.577] rdpkeybChangeKeyboardControl:
[ 65172.577] rdpkeybChangeKeyboardControl: autoRepeat on
[ 65172.577] rdpRegisterInputCallback: type 0 proc 0x7c4284513d50
[ 65172.577] rdpkeybControl: what 1
[ 65172.577] rdpkeybDeviceOn:
[ 65172.577] rdpkeybChangeKeyboardControl:
[ 65172.577] rdpkeybChangeKeyboardControl: autoRepeat on
[ 65172.587] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[ 65172.587] (II) AutoAddDevices is off - not adding device.
[ 65172.588] (II) config/udev: Adding input device Video Bus (/dev/input/event4)
[ 65172.588] (II) AutoAddDevices is off - not adding device.
[ 65172.588] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[ 65172.588] (II) AutoAddDevices is off - not adding device.
[ 65172.589] (II) config/udev: Adding input device Sleep Button (/dev/input/event0)
[ 65172.589] (II) AutoAddDevices is off - not adding device.
[ 65172.589] (II) config/udev: Adding drm device (/dev/dri/card0)
[ 65172.589] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 65172.589] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[ 65172.589] (EE) systemd-logind: failed to take device /dev/dri/card0: Operation not permitted
[ 65172.590] (II) config/udev: Adding input device Intel HID events (/dev/input/event3)
[ 65172.590] (II) AutoAddDevices is off - not adding device.
[ 65172.596] rdpDeferredRandR:
[ 65172.596] rdpResizeSession: width 1024 height 768
[ 65172.596]   calling RRScreenSizeSet
[ 65172.596] rdpRRScreenSetSize: width 1024 height 768 mmWidth 271 mmHeight 203
[ 65172.597] rdpRRGetInfo:
[ 65172.597]   screen resized to 1024x768
[ 65172.599]   RRScreenSizeSet ok 1
[ 65172.599] rdpResizeSession: width 949 height 1185
[ 65172.599]   calling RRScreenSizeSet
[ 65172.599] rdpRRScreenSetSize: width 949 height 1185 mmWidth 251 mmHeight 314
[ 65172.599] rdpRRGetInfo:
[ 65172.599]   screen resized to 949x1185
[ 65172.602]   RRScreenSizeSet ok 1
[ 65172.602] rdpClientConGotConnection:
[ 65172.602] rdpClientConGotConnection: g_sck_accept ok new_sck 9
[ 65172.602] rdpClientConGetConnection: idle_disconnect_timeout set to non-positive value, idle timer turned off
[ 65172.602] rdpAddClientConToDev: adding first clientCon 0x55b245fc3b40
[ 65172.602] rdpClientConProcessMsgVersion: version 0 0 0 1
[ 65172.602] rdpClientConProcessScreenSizeMsg: set width 949 height 1185 bpp 32
[ 65172.602] rdpClientConProcessScreenSizeMsg: shmemid 8 shmemptr 0x7c42735b5000
[ 65172.602] rdpClientConProcessMsgClientInput: invalidate x 0 y 0 cx 949 cy 1185
[ 65172.678] rdpInDeferredRepeatCallback:
[ 65172.678] rdpkeybChangeKeyboardControl:
[ 65172.678] rdpkeybChangeKeyboardControl: autoRepeat off
[ 65172.678] rdpInDeferredRepeatCallback:
[ 65172.678] rdpkeybChangeKeyboardControl:
[ 65172.678] rdpkeybChangeKeyboardControl: autoRepeat off
[ 65172.749] rdpmouseControl: what 2
[ 65172.749] rdpmouseDeviceOff:
[ 65172.749] rdpkeybControl: what 2
[ 65172.749] rdpkeybDeviceOff:
[ 65172.751] rdpkeybControl: what 3
[ 65172.751] rdpkeybUnInit: drv 0x55b245ca23e0 info 0x55b245f984d0, flags 0x0
[ 65172.751] rdpUnregisterInputCallback: proc 0x7c4284513d50
[ 65172.751] rdpmouseControl: what 3
[ 65172.751] rdpmouseUnInit: drv 0x55b245ca2430 info 0x55b245f95350, flags 0x0
[ 65172.751] rdpUnregisterInputCallback: proc 0x7c4284a1b3b0
[ 65172.752] rdpCloseScreen:
[ 65172.752] xorgxrdpDownDown:
[ 65172.752] xorgxrdpDownDown: 1
[ 65172.752] rdpClientConDeinit:
[ 65172.752] rdpClientConDeinit: disconnecting clientCon
[ 65172.752] rdpClientConDisconnect:
[ 65172.752] rdpRemoveClientConFromDev: removing clientCon 0x55b245fc3b40
[ 65172.752] rdpClientConDeinit: deleting file /run/xrdp/sockdir/xrdp_display_10
[ 65172.752] rdpClientConDeinit: deleting file /run/xrdp/sockdir/xrdp_disconnect_display_10
[ 65172.753] (II) Server terminated successfully (0). Closing log file.

sudo journalctl -S -1m

Apr 06 12:57:28 LocalNAS systemd[1]: /lib/systemd/system/clamav-freshclam.service:11: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting al>
Apr 06 12:57:29 LocalNAS systemd[1]: Starting xrdp session manager...
Apr 06 12:57:29 LocalNAS xrdp-sesman[10253]: [INFO ] starting xrdp-sesman with pid 10253
Apr 06 12:57:29 LocalNAS systemd[1]: Started xrdp session manager.
Apr 06 12:57:29 LocalNAS systemd[1]: Starting xrdp daemon...
Apr 06 12:57:29 LocalNAS xrdp[10262]: [INFO ] address [0.0.0.0] port [3389] mode 1
Apr 06 12:57:29 LocalNAS xrdp[10262]: [INFO ] listening to port 3389 on 0.0.0.0
Apr 06 12:57:29 LocalNAS xrdp[10262]: [INFO ] xrdp_listen_pp done
Apr 06 12:57:29 LocalNAS systemd[1]: xrdp.service: Can't open PID file /run/xrdp/xrdp.pid (yet?) after start: Operation not permitted
Apr 06 12:57:30 LocalNAS systemd[1]: Started xrdp daemon.
Apr 06 12:57:30 LocalNAS dbus-daemon[1039]: [system] Successfully activated service 'org.freedesktop.fwupd'
Apr 06 12:57:30 LocalNAS systemd[1]: Started Firmware update daemon.
Apr 06 12:57:31 LocalNAS fwupd[10179]: 02:57:31:0014 FuPluginPciMei       ME family not supported for 0:16.1.30.2264
Apr 06 12:57:31 LocalNAS systemd[1]: fwupd-refresh.service: Deactivated successfully.
Apr 06 12:57:31 LocalNAS systemd[1]: Finished Refresh fwupd metadata and update motd.
Apr 06 12:57:31 LocalNAS xrdp[10263]: [INFO ] starting xrdp with pid 10263
Apr 06 12:57:31 LocalNAS xrdp[10263]: [INFO ] address [0.0.0.0] port [3389] mode 1
Apr 06 12:57:31 LocalNAS xrdp[10263]: [INFO ] listening to port 3389 on 0.0.0.0
Apr 06 12:57:31 LocalNAS xrdp[10263]: [INFO ] xrdp_listen_pp done
Apr 06 12:57:32 LocalNAS kernel: [UFW BLOCK] IN=enp3s0 OUT= MAC=01:00:5e:00:00:01:58:d9:d5:3e:9c:d8:08:00 SRC=192.168.1.1 DST=224.0.0.1 LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=2
Apr 06 12:57:33 LocalNAS sudo[9902]: pam_unix(sudo:session): session closed for user root
Apr 06 12:57:41 LocalNAS xrdp[10263]: [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.1.13 port 47816
Apr 06 12:57:41 LocalNAS xrdp[10308]: [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
Apr 06 12:57:41 LocalNAS xrdp[10308]: [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
Apr 06 12:57:41 LocalNAS xrdp[10308]: [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
Apr 06 12:57:41 LocalNAS xrdp[10308]: [INFO ] Connected client computer name: pop-os
Apr 06 12:57:41 LocalNAS xrdp[10308]: [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
Apr 06 12:57:41 LocalNAS xrdp[10308]: [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
Apr 06 12:57:42 LocalNAS xrdp[10308]: [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00020409]
Apr 06 12:57:42 LocalNAS xrdp[10308]: [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options []
Apr 06 12:57:42 LocalNAS xrdp[10308]: [INFO ] Non-TLS connection established from ::ffff:192.168.1.13 port 47816: encrypted with standard RDP security
Apr 06 12:57:42 LocalNAS xrdp[10308]: [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
Apr 06 12:57:42 LocalNAS xrdp[10308]: [INFO ] xrdp_caps_process_codecs: RemoteFX, codec id 3, properties len 49
Apr 06 12:57:42 LocalNAS xrdp[10308]: [WARN ] Cannot find keymap file /etc/xrdp/km-00020409.ini
Apr 06 12:57:42 LocalNAS xrdp[10308]: [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
Apr 06 12:57:42 LocalNAS xrdp[10308]: [WARN ] local keymap file for 0x00020409 found and doesn't match built in keymap, using local keymap file
Apr 06 12:57:42 LocalNAS xrdp[10308]: [ERROR] dynamic_monitor_open_response: error
Apr 06 12:57:42 LocalNAS xrdp[10308]: [ERROR] xrdp_rdp_recv: xrdp_channel_process failed
Apr 06 12:57:47 LocalNAS xrdp[10308]: [INFO ] connecting to sesman ip 127.0.0.1 port 3350
Apr 06 12:57:47 LocalNAS xrdp-sesman[10253]: [INFO ] Socket 8: AF_INET6 connection received from ::1 port 48574
Apr 06 12:57:47 LocalNAS xrdp[10308]: [INFO ] xrdp_wm_log_msg: sesman connect ok
Apr 06 12:57:47 LocalNAS xrdp[10308]: [INFO ] sesman connect ok
Apr 06 12:57:47 LocalNAS xrdp[10308]: [INFO ] sending login info to session manager, please wait...
Apr 06 12:57:47 LocalNAS xrdp-sesman[10253]: [INFO ] Terminal Server Users group is disabled, allowing authentication
Apr 06 12:57:47 LocalNAS xrdp-sesman[10253]: [INFO ] ++ created session (access granted): username pater, ip ::ffff:192.168.1.13:47816 - socket: 12
Apr 06 12:57:47 LocalNAS xrdp-sesman[10253]: [INFO ] starting Xorg session...
Apr 06 12:57:47 LocalNAS xrdp-sesman[10253]: [INFO ] Starting session: session_pid 10310, display :10.0, width 949, height 1185, bpp 24, client ip ::ffff:192.168.1.13:47816 - socket: 12, user name pater
Apr 06 12:57:47 LocalNAS xrdp-sesman[10310]: [INFO ] [session start] (display 10): calling auth_start_session from pid 10310
Apr 06 12:57:47 LocalNAS xrdp-sesman[10253]: [ERROR] sesman_data_in: scp_process_msg failed
Apr 06 12:57:47 LocalNAS xrdp[10308]: [INFO ] xrdp_wm_log_msg: login successful for display 10
Apr 06 12:57:47 LocalNAS xrdp-sesman[10310]: pam_unix(xrdp-sesman:session): session opened for user pater(uid=1000) by (uid=0)
Apr 06 12:57:47 LocalNAS xrdp[10308]: [INFO ] login successful for display 10
Apr 06 12:57:47 LocalNAS systemd-logind[1075]: New session c9 of user pater.
Apr 06 12:57:47 LocalNAS xrdp-sesman[10253]: [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
Apr 06 12:57:47 LocalNAS snapd-desktop-i[9878]: Detected new session c9 at /org/freedesktop/login1/session/c9
Apr 06 12:57:47 LocalNAS xrdp[10308]: [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
Apr 06 12:57:47 LocalNAS snapd-desktop-i[9878]: The new session is of desktop type. Relaunching snapd-desktop-integration.
Apr 06 12:57:47 LocalNAS snapd-desktop-i[9878]: Loop exited. Forcing reload.
Apr 06 12:57:47 LocalNAS systemd[1]: Started Session c9 of User pater.
Apr 06 12:57:47 LocalNAS xrdp[10308]: [INFO ] started connecting
Apr 06 12:57:47 LocalNAS xrdp[10308]: [INFO ] lib_mod_connect: connecting via UNIX socket
Apr 06 12:57:47 LocalNAS xrdp-sesman[10312]: [INFO ] Starting X server on display 10: /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
Apr 06 12:57:47 LocalNAS xrdp[10308]: [INFO ] lib_mod_log_peer: xrdp_pid=10308 connected to X11rdp_pid=10312 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:192.168.1.13 client_port=47816
Apr 06 12:57:47 LocalNAS xrdp[10308]: [INFO ] connected ok
Apr 06 12:57:47 LocalNAS xrdp-sesman[10311]: [INFO ] Found X server running at /tmp/.X11-unix/X10
Apr 06 12:57:47 LocalNAS xrdp-sesman[10310]: [INFO ] Found X server running at /tmp/.X11-unix/X10
Apr 06 12:57:47 LocalNAS xrdp-sesman[10311]: [INFO ] Found X server running at /tmp/.X11-unix/X10
Apr 06 12:57:47 LocalNAS xrdp-sesman[10310]: [INFO ] Session started successfully for user pater on display 10
Apr 06 12:57:47 LocalNAS xrdp-sesman[10321]: [INFO ] Starting the xrdp channel server for display 10
Apr 06 12:57:47 LocalNAS xrdp-sesman[10311]: [INFO ] Starting the default window manager on display 10: /etc/xrdp/startwm.sh
Apr 06 12:57:47 LocalNAS xrdp-sesman[10310]: [INFO ] Session in progress on display 10, waiting until the window manager (pid 10311) exits to end the session
Apr 06 12:57:47 LocalNAS xrdp-sesman[10310]: [WARN ] Window manager (pid 10311, display 10) exited with non-zero exit code 1 and signal 0. This could indicate a window manager config problem
Apr 06 12:57:47 LocalNAS xrdp-sesman[10310]: [WARN ] Window manager (pid 10311, display 10) exited quickly (0 secs). This could indicate a window manager config problem
Apr 06 12:57:47 LocalNAS xrdp-sesman[10310]: [INFO ] Calling auth_stop_session and auth_end from pid 10310
Apr 06 12:57:47 LocalNAS xrdp-sesman[10310]: pam_unix(xrdp-sesman:session): session closed for user pater
Apr 06 12:57:47 LocalNAS xrdp-sesman[10310]: [INFO ] Terminating X server (pid 10312) on display 10
Apr 06 12:57:47 LocalNAS xrdp-sesman[10310]: [INFO ] Terminating the xrdp channel server (pid 10321) on display 10
Apr 06 12:57:47 LocalNAS systemd-logind[1075]: Failed to restore VT, ignoring: Bad file descriptor
Apr 06 12:57:47 LocalNAS xrdp-sesman[10310]: [INFO ] X server on display 10 (pid 10312) returned exit code 0 and signal number 0
Apr 06 12:57:47 LocalNAS xrdp-sesman[10310]: [INFO ] xrdp channel server for display 10 (pid 10321) exit code 0 and signal number 0
Apr 06 12:57:47 LocalNAS xrdp-sesman[10310]: [INFO ] cleanup_sockets:
Apr 06 12:57:47 LocalNAS xrdp-sesman[10253]: [INFO ] ++ terminated session:  username pater, display :10.0, session_pid 10310, ip ::ffff:192.168.1.13:47816 - socket: 12
Apr 06 12:57:47 LocalNAS systemd[1]: session-c9.scope: Deactivated successfully.
Apr 06 12:57:47 LocalNAS systemd-logind[1075]: Session c9 logged out. Waiting for processes to exit.
Apr 06 12:57:47 LocalNAS systemd-logind[1075]: Removed session c9.
Apr 06 12:57:49 LocalNAS systemd[9757]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Scheduled restart job, restart counter is at 1.
Apr 06 12:57:49 LocalNAS systemd[9757]: Stopped Service for snap application snapd-desktop-integration.snapd-desktop-integration.
Apr 06 12:57:49 LocalNAS systemd[9757]: Started Service for snap application snapd-desktop-integration.snapd-desktop-integration.
Apr 06 12:57:49 LocalNAS audit[10345]: AVC apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.snapd-desktop-integration" name="/home/pater/" pid=10345 comm="5" requested_mask="r" denied_mask="r" fsuid=1000 >
Apr 06 12:57:49 LocalNAS kernel: audit: type=1400 audit(1743908269.607:125): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.snapd-desktop-integration" name="/home/pater/" pid=10345 comm="5" requested_ma>
Apr 06 12:57:49 LocalNAS snapd-desktop-i[10386]: Failed to do gtk init. Waiting for a new session with desktop capabilities.
Apr 06 12:57:49 LocalNAS snapd-desktop-i[10386]: Checking session /org/freedesktop/login1/session/_346...
Apr 06 12:57:49 LocalNAS snapd-desktop-i[10386]: Checking session /org/freedesktop/login1/session/c2...
Apr 06 12:57:51 LocalNAS xrdp[10308]: [WARN ] xrdp_mm_connect_chansrv: connect failed trying again...
Apr 06 12:57:55 LocalNAS xrdp[10308]: [WARN ] xrdp_mm_connect_chansrv: connect failed trying again...
Apr 06 12:57:59 LocalNAS xrdp[10308]: [WARN ] xrdp_mm_connect_chansrv: connect failed trying again...
Apr 06 12:58:02 LocalNAS kernel: [UFW BLOCK] IN=enp3s0 OUT= MAC=01:00:5e:00:00:01:58:d9:d5:3e:9c:d8:08:00 SRC=192.168.1.1 DST=224.0.0.1 LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=2
Apr 06 12:58:03 LocalNAS xrdp[10308]: [WARN ] xrdp_mm_connect_chansrv: connect failed trying again...
Apr 06 12:58:03 LocalNAS xrdp[10308]: [ERROR] xrdp_mm_connect_chansrv: error in trans_connect chan
Apr 06 12:58:04 LocalNAS sudo[10391]:   pater : TTY=pts/0 ; PWD=/home/pater ; USER=root ; COMMAND=/usr/bin/journalctl -S -3m
Apr 06 12:58:04 LocalNAS sudo[10391]: pam_unix(sudo:session): session opened for user root(uid=0) by pater(uid=1000)
Apr 06 12:58:26 LocalNAS sudo[10391]: pam_unix(sudo:session): session closed for user root
Apr 06 12:58:27 LocalNAS sudo[10396]:   pater : TTY=pts/0 ; PWD=/home/pater ; USER=root ; COMMAND=/usr/bin/journalctl -S -3m
Apr 06 12:58:27 LocalNAS sudo[10396]: pam_unix(sudo:session): session opened for user root(uid=0) by pater(uid=1000)

@matt335672
Copy link
Member

Thanks for the logs.

The X server appears to be working fine, but the session is terminating early.

This can be down to a number of things.

Let's check that the startwm.sh is working properly. Can you see what the output of the following command is when logged in as pater (mind the space after the '=' sign) :-

DISPLAY= sh -x /etc/xrdp/startwm.sh

@hugo-id
Copy link
Author

hugo-id commented Apr 14, 2025

Startwm.sh:

+ wm_start
+ [ -r /etc/default/locale ]
+ . /etc/default/locale
+ LANG=en_AU.UTF-8
+ LANGUAGE=en_AU:en
+ export LANG LANGUAGE
+ [ -r /etc/X11/Xsession ]
+ pre_start
+ [ -r /etc/profile ]
+ . /etc/profile
+ [ $  ]
+ [  ]
+ id -u
+ [ 1000 -eq 0 ]
+ PS1=$
+ [ -d /etc/profile.d ]
+ [ -r /etc/profile.d/01-locale-fix.sh ]
+ . /etc/profile.d/01-locale-fix.sh
+ /usr/bin/locale-check C.UTF-8
+ eval
+ [ -r /etc/profile.d/apps-bin-path.sh ]
+ . /etc/profile.d/apps-bin-path.sh
+ snap_bin_path=/snap/bin
+ [ -n  ]
+ [ -z /usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop ]
+ snap_xdg_path=/var/lib/snapd/desktop
+ [ -n  ]
+ [ -r /etc/profile.d/bash_completion.sh ]
+ . /etc/profile.d/bash_completion.sh
+ [ x != x -a x$  != x -a x = x ]
+ [ -r /etc/profile.d/cedilla-portuguese.sh ]
+ . /etc/profile.d/cedilla-portuguese.sh
+ [  = pt -a en != pt ]
+ [ -r /etc/profile.d/debuginfod.sh ]
+ [ -r /etc/profile.d/gnome-session_gnomerc.sh ]
+ . /etc/profile.d/gnome-session_gnomerc.sh
+ [ tty = wayland ]
+ [ -z /usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop ]
+ [ -n  ]
+ export XDG_DATA_DIRS
+ [ -r /etc/profile.d/im-config_wayland.sh ]
+ . /etc/profile.d/im-config_wayland.sh
+ [ tty != wayland ]
+ return
+ [ -r /etc/profile.d/vte-2.91.sh ]
+ . /etc/profile.d/vte-2.91.sh
+ [ -n  -o -n  ]
+ return 0
+ [ -r /etc/profile.d/xdg_dirs_desktop_session.sh ]
+ . /etc/profile.d/xdg_dirs_desktop_session.sh
+ DEFAULT_XDG_CONFIG_DIRS=/etc/xdg
+ DEFAULT_XDG_DATA_DIRS=/usr/local/share/:/usr/share/
+ [ -n  ]
+ unset i
+ [ -r /home/pater/.bash_profile ]
+ [ -r /home/pater/.bash_login ]
+ [ -r /home/pater/.profile ]
+ . /home/pater/.profile
+ [ -n  ]
+ [ -d /home/pater/bin ]
+ [ -d /home/pater/.local/bin ]
+ return 0
+ [ -z  ]
+ [ -n  ]
+ . /etc/X11/Xsession
+ set -e
+ PROGNAME=Xsession
+ OPTIONFILE=/etc/X11/Xsession.options
+ SYSRESOURCES=/etc/X11/Xresources
+ USRRESOURCES=/home/pater/.Xresources
+ SYSSESSIONDIR=/etc/X11/Xsession.d
+ USERXSESSION=/home/pater/.xsession
+ USERXSESSIONRC=/home/pater/.xsessionrc
+ ALTUSERXSESSION=/home/pater/.Xsession
+ ERRFILE=/home/pater/.xsession-errors
+ [ -r /etc/X11/Xsession.options ]
+ cat /etc/X11/Xsession.options
+ [ -d /etc/X11/Xsession.options.d ]
+ OPTIONS=# $Id: Xsession.options 189 2005-06-11 00:04:27Z branden $
#
# configuration options for /etc/X11/Xsession
# See Xsession.options(5) for an explanation of the available options.
allow-failsafe
allow-user-resources
allow-user-xsession
use-ssh-agent
use-session-dbus
+ [ -w /home/pater/.xsession-errors ]
+ [ ! -L /home/pater/.xsession-errors ]
+ chmod 600 /home/pater/.xsession-errors
chmod: changing permissions of '/home/pater/.xsession-errors': Operation not permitted

Sorry, I should add I have manually installed version 0.10.3 since my last update. I'm still having the same error, but it is handled a lot better.

@matt335672
Copy link
Member

This is an odd one:-

chmod: changing permissions of '/home/pater/.xsession-errors': Operation not permitted

What do you get for ls -l /home/pater/.xsession-errors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants