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?
[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