Good afternoon!
The other day I installed Debian 11 OS. The computer is at a remote workplace, so I installed the xrdp package and tried to connect to the system from Windows 10 (via mstsc). When connecting, a window with a "login and password" appears - I enter it correctly, sesman is loaded and an error occurs:
"Oh no! Something went wrong.
An error has occurred and the system has failed to recover.
You need to log out and log in again."
"End session" button
Poked around in the logs:
/var/log/xrdp.log
/var/log/xrdp-sesman.log
But I did not find anything by mistake, I tried to google the output log - I did not find anything useful. Decided to try my luck on your forum. Do not tell me in which direction to dig, in search of a solution to the problem?
less /var/log/xrdp.log

Code: Select all

[20220218-10:25:26] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20220218-10:25:27] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20220218-10:25:27] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20220218-10:25:27] [DEBUG] return value from xrdp_mm_connect 0
[20220218-10:25:27] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20220218-10:25:27] [DEBUG] xrdp_wm_log_msg: started connecting
[20220218-10:25:27] [INFO ] lib_mod_log_peer: xrdp_pid=11006 connected to X11rdp_pid=11037 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:192.168.86.195 client_port=7591
[20220218-10:25:27] [DEBUG] xrdp_wm_log_msg: connected ok
[20220218-10:25:27] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
[20220218-10:25:27] [DEBUG] Closed socket 18 (AF_INET6 ::1 port 36490)
[20220218-10:29:11] [DEBUG] Closed socket 20 (AF_UNIX)
[20220218-10:29:11] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.142.161 port 3389)
[20220218-10:29:11] [DEBUG] xrdp_mm_module_cleanup
[20220218-10:29:11] [DEBUG] Closed socket 19 (AF_UNIX)
less /var/log/xrdp-sesman.log

Code: Select all

[20220218-10:25:26] [INFO ] A connection received from ::1 port 36490
[20220218-10:25:27] [INFO ] ++ created session (access granted): username art, ip ::ffff:192.168.86.195:7591 - socket: 12
[20220218-10:25:27] [INFO ] starting Xorg session...
[20220218-10:25:27] [DEBUG] Closed socket 9 (AF_INET6 :: port 5910)
[20220218-10:25:27] [DEBUG] Closed socket 9 (AF_INET6 :: port 6010)
[20220218-10:25:27] [DEBUG] Closed socket 9 (AF_INET6 :: port 6210)
[20220218-10:25:27] [DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350)
[20220218-10:25:27] [INFO ] calling auth_start_session from pid 11035
[20220218-10:25:27] [DEBUG] Closed socket 7 (AF_INET6 ::1 port 3350)
[20220218-10:25:27] [DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350)
[20220218-10:25:27] [INFO ] /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log  
[20220218-10:25:27] [CORE ] waiting for window manager (pid 11036) to exit
[20220218-10:29:11] [CORE ] window manager (pid 11036) did exit, cleaning up session
[20220218-10:29:11] [INFO ] calling auth_stop_session and auth_end from pid 11035
[20220218-10:29:11] [DEBUG] cleanup_sockets:
[20220218-10:29:11] [DEBUG] cleanup_sockets: deleting /run/xrdp/sockdir/xrdp_chansrv_audio_out_socket_10
[20220218-10:29:11] [DEBUG] cleanup_sockets: deleting /run/xrdp/sockdir/xrdp_chansrv_audio_in_socket_10
[20220218-10:29:11] [DEBUG] cleanup_sockets: deleting /run/xrdp/sockdir/xrdpapi_10
[20220218-10:29:11] [INFO ] ++ terminated session:  username art, display :10.0, session_pid 11035, ip ::ffff:192.168.86.195:7591 - socket: 12
			
Oh No! Your network topology in Windows is wrong for connecting xrdp which works OOTB unless of course you got creative with your Windows defender settings or forgot to enable RDP. Sesman is local (127.0.0.1) -p3350 and RDP uses -p 3389 TCP & -p 3389 UDP. Check your share settings, port settings, and firewall rules in Windows. Ask at a Windows forum.
https://docs.microsoft.com/en-us/azure/ ... te-desktop
Oh... and you might want to check whether or not you are on wayland on the Debian machine.
Thanks for the answers, I found the answer in this article. I'm posting the link, I hope so. The topic can be closed.
c-nergy.be/blog/?p=17113
  • ↳   General Questions
  • ↳   Graphical Environments & Desktops
  • ↳   System and Network configuration
  • ↳   Hardware
  • ↳   Programming
  • Testing & Unstable
  • ↳   Testing And Unstable
  • Community
  • ↳   Forum information, requests, and feedback.
  • ↳   General Debian
  • ↳   Off-Topic
  • Documentation
  • ↳   Docs, HowTos, Tips & Tricks
  •