I have the same problem or “same” error message.
Since when?
Played around with the Kodi installation. Then wanted to do a reboot. Reboot was then done through the console via the xrdp connection to LXDE.
Since the reboot I can no longer connect to the root user via xrdp.
The login works with the dietpi user, then of course without root rights. But it works.
What went wrong here with the root user? Otherwise there are no problems with all applications and ssh login.
What I had done, xrdp and lxde uninstalled and reinstalled.
Likewise, one of the VNC connections tries to install, but the VNC services are not started…
RPI-4 (8GB), Dietpi v8.3.1
Edit, Logs:
xrdp.log:
[20220430-19:44:08] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.178.21 port 59763
[20220430-19:44:08] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20220430-19:44:08] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20220430-19:44:08] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
[20220430-19:44:08] [ERROR] libxrdp_force_read: header read error
[20220430-19:44:08] [ERROR] Processing [ITU-T T.125] Connect-Initial failed
[20220430-19:44:08] [ERROR] [MCS Connection Sequence] receive connection request failed
[20220430-19:44:08] [ERROR] xrdp_sec_incoming: xrdp_mcs_incoming failed
[20220430-19:44:08] [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed
[20220430-19:44:08] [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed
[20220430-19:44:08] [ERROR] xrdp_iso_send: trans_write_copy_s failed
[20220430-19:44:08] [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed
[20220430-19:44:08] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.178.21 port 59764
[20220430-19:44:08] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20220430-19:44:08] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20220430-19:44:08] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
[20220430-19:44:08] [INFO ] Connected client computer name: DANA4
[20220430-19:44:08] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
[20220430-19:44:08] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
[20220430-19:44:08] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000407]
[20220430-19:44:08] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [de] options []
[20220430-19:44:08] [INFO ] Non-TLS connection established from ::ffff:192.168.178.21 port 59764: encrypted with standard RDP security
[20220430-19:44:08] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[20220430-19:44:08] [INFO ] xrdp_process_offscreen_bmpcache: support level 1 cache size 10485760 MB cache entries 100
[20220430-19:44:08] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
[20220430-19:44:08] [WARN ] xrdp_caps_process_codecs: unknown codec id 5
[20220430-19:44:08] [INFO ] xrdp_caps_process_codecs: RemoteFX, codec id 3, properties len 49
[20220430-19:44:08] [INFO ] Loading keymap file /etc/xrdp/km-00000407.ini
[20220430-19:44:08] [WARN ] local keymap file for 0x00000407 found and doesn't match built in keymap, using local keymap file
[20220430-19:44:15] [INFO ] connecting to sesman ip 127.0.0.1 port 3350
[20220430-19:44:15] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20220430-19:44:15] [INFO ] sesman connect ok
[20220430-19:44:15] [INFO ] sending login info to session manager, please wait...
[20220430-19:44:15] [INFO ] xrdp_wm_log_msg: login successful for display 16
[20220430-19:44:15] [INFO ] login successful for display 16
[20220430-19:44:15] [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
[20220430-19:44:15] [INFO ] started connecting
[20220430-19:44:15] [INFO ] lib_mod_connect: connecting via UNIX socket
[20220430-19:47:45] [INFO ] connection problem, giving up
[20220430-19:47:45] [INFO ] some problem
xrdp-sesman.log:
[20220430-19:44:15] [INFO ] Socket 8: AF_INET6 connection received from ::ffff:127.0.0.1 port 44266
[20220430-19:44:15] [INFO ] ++ reconnected session: username root, display :16.0, session_pid 59157, ip ::ffff:192.168.178.21:59764 - socket: 12
[20220430-19:44:15] [INFO ] Starting session reconnection script on display 16: /etc/xrdp/reconnectwm.sh
[20220430-19:44:15] [ERROR] sesman_data_in: scp_process_msg failed
[20220430-19:44:15] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
