xrdp icon indicating copy to clipboard operation
xrdp copied to clipboard

[ERROR] xrdp_mm_chansrv_connect: error in trans_connect chan

Open ksajan opened this issue 2 years ago • 15 comments

I am trying to use xrdp on arch linux and client on macOS ArchLinux : x86_64 MacOS : Moneterey

When I try to connect using RDP on macOS it shutdown after sometime and it shows this when I check the status of xrdp

Apr 04 11:33:38 batman xrdp[3622]: [INFO ] lib_mod_connect: connecting via UNIX socket
Apr 04 11:33:38 batman xrdp[3622]: [INFO ] lib_mod_log_peer: xrdp_pid=3622 connected to X11rdp_pid=3640 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:192.168.29>
Apr 04 11:33:38 batman xrdp[3622]: [INFO ] connected ok
Apr 04 11:33:42 batman xrdp[3622]: [WARN ] xrdp_mm_chansrv_connect: connect failed trying again...
Apr 04 11:33:46 batman xrdp[3622]: [WARN ] xrdp_mm_chansrv_connect: connect failed trying again...
Apr 04 11:33:50 batman xrdp[3622]: [WARN ] xrdp_mm_chansrv_connect: connect failed trying again...
Apr 04 11:33:54 batman xrdp[3622]: [WARN ] xrdp_mm_chansrv_connect: connect failed trying again...
Apr 04 11:33:54 batman xrdp[3622]: [ERROR] xrdp_mm_chansrv_connect: error in trans_connect chan
Apr 04 11:33:54 batman xrdp[3622]: [ERROR] SSL_shutdown: Failure in SSL library (protocol error?)
Apr 04 11:33:54 batman xrdp[3622]: [ERROR] SSL: error:14094123:SSL routines:ssl3_read_bytes:application data after close notify

the logs are mentioned below in the comment.

First when I didn't made gateway the rdp was showing blackscreen. I tried what is mentioned in arch wiki and added gateway also then I started getting SSL error. I don't understand where the problem lies. Thaks for the help.

ksajan avatar Apr 04 '22 06:04 ksajan

xrdp-sesman.log

[20220403-22:28:50] [INFO ] starting xrdp-sesman with pid 349715
[20220403-22:29:19] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 41546
[20220403-22:29:19] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20220403-22:29:19] [INFO ] ++ created session (access granted): username bruce, ip ::ffff:192.168.29.37:50217 - socket: 12
[20220403-22:29:19] [INFO ] starting Xorg session...
[20220403-22:29:19] [INFO ] Starting session: session_pid 349944, display :10.0, width 1920, height 1080, bpp 24, client ip ::ffff:192.168.29.37:50217 - socket: 12, user name bruce
[20220403-22:29:19] [INFO ] [session start] (display 10): calling auth_start_session from pid 349944
[20220403-22:29:19] [ERROR] sesman_data_in: scp_process_msg failed
[20220403-22:29:19] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220403-22:29:19] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20220403-22:29:29] [WARN ] Timed out waiting for X server on display 10 to startup
[20220403-22:29:29] [INFO ] Session started successfully for user bruce on display 10
[20220403-22:29:29] [INFO ] Starting the xrdp channel server for display 10
[20220403-22:29:29] [INFO ] Session in progress on display 10, waiting until the window manager (pid 349945) exits to end the session
[20220403-22:29:29] [WARN ] Timed out waiting for X server on display 10 to startup
[20220403-22:29:29] [ERROR] There is no X server active on display 10
[20220403-22:29:29] [ERROR] A fatal error has occured attempting to start the window manager on display 10, aborting connection
[20220403-22:29:29] [WARN ] Window manager (pid 349945, display 10) exited quickly (0 secs). This could indicate a window manager config problem
[20220403-22:29:29] [INFO ] Calling auth_stop_session and auth_end from pid 349944
[20220403-22:29:29] [INFO ] Terminating X server (pid 349946) on display 10
[20220403-22:29:29] [INFO ] Terminating the xrdp channel server (pid 350024) on display 10
[20220403-22:29:29] [INFO ] X server on display 10 (pid 349946) returned exit code 1 and signal number 0
[20220403-22:29:29] [INFO ] xrdp channel server for display 10 (pid 350024) exit code 0 and signal number 0
[20220403-22:29:29] [INFO ] cleanup_sockets:
[20220403-22:29:29] [INFO ] Process 349944 has exited
[20220403-22:29:29] [INFO ] ++ terminated session:  username bruce, display :10.0, session_pid 349944, ip ::ffff:192.168.29.37:50217 - socket: 12
[20220403-22:30:37] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 41548
[20220403-22:30:37] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20220403-22:30:37] [INFO ] ++ created session (access granted): username bruce, ip ::ffff:192.168.29.37:50230 - socket: 12
[20220403-22:30:37] [INFO ] starting Xorg session...
[20220403-22:30:37] [INFO ] Starting session: session_pid 350615, display :10.0, width 1920, height 1080, bpp 24, client ip ::ffff:192.168.29.37:50230 - socket: 12, user name bruce
[20220403-22:30:37] [INFO ] [session start] (display 10): calling auth_start_session from pid 350615
[20220403-22:30:37] [ERROR] sesman_data_in: scp_process_msg failed
[20220403-22:30:37] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220403-22:30:37] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20220403-22:30:47] [WARN ] Timed out waiting for X server on display 10 to startup
[20220403-22:30:47] [INFO ] Session started successfully for user bruce on display 10
[20220403-22:30:47] [INFO ] Starting the xrdp channel server for display 10
[20220403-22:30:47] [INFO ] Session in progress on display 10, waiting until the window manager (pid 350616) exits to end the session
[20220403-22:30:47] [WARN ] Timed out waiting for X server on display 10 to startup
[20220403-22:30:47] [ERROR] There is no X server active on display 10
[20220403-22:30:47] [ERROR] A fatal error has occured attempting to start the window manager on display 10, aborting connection
[20220403-22:30:47] [WARN ] Window manager (pid 350616, display 10) exited quickly (0 secs). This could indicate a window manager config problem
[20220403-22:30:47] [INFO ] Calling auth_stop_session and auth_end from pid 350615
[20220403-22:30:47] [INFO ] Terminating X server (pid 350617) on display 10
[20220403-22:30:47] [INFO ] Terminating the xrdp channel server (pid 350694) on display 10
[20220403-22:30:47] [INFO ] X server on display 10 (pid 350617) returned exit code 1 and signal number 0
[20220403-22:30:47] [INFO ] xrdp channel server for display 10 (pid 350694) exit code 0 and signal number 0
[20220403-22:30:47] [INFO ] cleanup_sockets:
[20220403-22:30:47] [INFO ] Process 350615 has exited
[20220403-22:30:47] [INFO ] ++ terminated session:  username bruce, display :10.0, session_pid 350615, ip ::ffff:192.168.29.37:50230 - socket: 12
[20220403-22:54:26] [INFO ] sesman_main_loop: sesman asked to terminate
[20220403-22:54:41] [INFO ] starting xrdp-sesman with pid 363698
[20220403-22:55:52] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 41550
[20220403-22:55:52] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20220403-22:55:52] [INFO ] ++ created session (access granted): username bruce, ip ::ffff:192.168.29.37:50347 - socket: 12
[20220403-22:55:52] [INFO ] starting Xorg session...
[20220403-22:55:52] [INFO ] Starting session: session_pid 364314, display :10.0, width 1680, height 1050, bpp 24, client ip ::ffff:192.168.29.37:50347 - socket: 12, user name bruce
[20220403-22:55:52] [INFO ] [session start] (display 10): calling auth_start_session from pid 364314
[20220403-22:55:52] [ERROR] sesman_data_in: scp_process_msg failed
[20220403-22:55:52] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220403-22:55:52] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20220403-22:56:02] [WARN ] Timed out waiting for X server on display 10 to startup
[20220403-22:56:02] [INFO ] Session started successfully for user bruce on display 10
[20220403-22:56:02] [INFO ] Starting the xrdp channel server for display 10
[20220403-22:56:02] [INFO ] Session in progress on display 10, waiting until the window manager (pid 364315) exits to end the session
[20220403-22:56:02] [WARN ] Timed out waiting for X server on display 10 to startup
[20220403-22:56:02] [ERROR] There is no X server active on display 10
[20220403-22:56:02] [ERROR] A fatal error has occured attempting to start the window manager on display 10, aborting connection
[20220403-22:56:02] [WARN ] Window manager (pid 364315, display 10) exited quickly (0 secs). This could indicate a window manager config problem
[20220403-22:56:02] [INFO ] Calling auth_stop_session and auth_end from pid 364314
[20220403-22:56:02] [INFO ] Terminating X server (pid 364316) on display 10
[20220403-22:56:02] [INFO ] Terminating the xrdp channel server (pid 364413) on display 10
[20220403-22:56:02] [INFO ] X server on display 10 (pid 364316) returned exit code 1 and signal number 0
[20220403-22:56:02] [INFO ] xrdp channel server for display 10 (pid 364413) exit code 0 and signal number 0
[20220403-22:56:02] [INFO ] cleanup_sockets:
[20220403-22:56:02] [INFO ] Process 364314 has exited
[20220403-22:56:02] [INFO ] ++ terminated session:  username bruce, display :10.0, session_pid 364314, ip ::ffff:192.168.29.37:50347 - socket: 12
[20220403-22:57:58] [INFO ] sesman_main_loop: sesman asked to terminate
[20220403-23:11:33] [INFO ] starting xrdp-sesman with pid 372375
[20220403-23:12:12] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 41552
[20220403-23:12:12] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20220403-23:12:12] [INFO ] ++ created session (access granted): username bruce, ip ::ffff:192.168.29.37:50411 - socket: 12
[20220403-23:12:12] [INFO ] starting Xorg session...
[20220403-23:12:12] [INFO ] Starting session: session_pid 372723, display :10.0, width 1680, height 1050, bpp 24, client ip ::ffff:192.168.29.37:50411 - socket: 12, user name bruce
[20220403-23:12:12] [INFO ] [session start] (display 10): calling auth_start_session from pid 372723
[20220403-23:12:12] [ERROR] sesman_data_in: scp_process_msg failed
[20220403-23:12:12] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220403-23:12:12] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20220403-23:12:22] [WARN ] Timed out waiting for X server on display 10 to startup
[20220403-23:12:22] [INFO ] Session started successfully for user bruce on display 10
[20220403-23:12:22] [INFO ] Starting the xrdp channel server for display 10
[20220403-23:12:22] [INFO ] Session in progress on display 10, waiting until the window manager (pid 372724) exits to end the session
[20220403-23:12:22] [WARN ] Timed out waiting for X server on display 10 to startup
[20220403-23:12:22] [ERROR] There is no X server active on display 10
[20220403-23:12:22] [ERROR] A fatal error has occured attempting to start the window manager on display 10, aborting connection
[20220403-23:12:22] [WARN ] Window manager (pid 372724, display 10) exited quickly (0 secs). This could indicate a window manager config problem
[20220403-23:12:22] [INFO ] Calling auth_stop_session and auth_end from pid 372723
[20220403-23:12:22] [INFO ] Terminating X server (pid 372725) on display 10
[20220403-23:12:22] [INFO ] Terminating the xrdp channel server (pid 372808) on display 10
[20220403-23:12:22] [INFO ] X server on display 10 (pid 372725) returned exit code 1 and signal number 0
[20220403-23:12:22] [INFO ] xrdp channel server for display 10 (pid 372808) exit code 0 and signal number 0
[20220403-23:12:22] [INFO ] cleanup_sockets:
[20220403-23:12:22] [INFO ] Process 372723 has exited
[20220403-23:12:22] [INFO ] ++ terminated session:  username bruce, display :10.0, session_pid 372723, ip ::ffff:192.168.29.37:50411 - socket: 12
[20220403-23:18:23] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 41554
[20220403-23:18:24] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20220403-23:18:24] [INFO ] ++ created session (access granted): username bruce, ip ::ffff:192.168.29.37:50448 - socket: 12
[20220403-23:18:24] [INFO ] starting Xorg session...
[20220403-23:18:24] [INFO ] Starting session: session_pid 375612, display :10.0, width 1364, height 768, bpp 24, client ip ::ffff:192.168.29.37:50448 - socket: 12, user name bruce
[20220403-23:18:24] [INFO ] [session start] (display 10): calling auth_start_session from pid 375612
[20220403-23:18:24] [ERROR] sesman_data_in: scp_process_msg failed
[20220403-23:18:24] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220403-23:18:24] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20220403-23:18:33] [WARN ] Timed out waiting for X server on display 10 to startup
[20220403-23:18:33] [INFO ] Session started successfully for user bruce on display 10
[20220403-23:18:33] [INFO ] Starting the xrdp channel server for display 10
[20220403-23:18:33] [INFO ] Session in progress on display 10, waiting until the window manager (pid 375613) exits to end the session
[20220403-23:18:34] [WARN ] Timed out waiting for X server on display 10 to startup
[20220403-23:18:34] [ERROR] There is no X server active on display 10
[20220403-23:18:34] [ERROR] A fatal error has occured attempting to start the window manager on display 10, aborting connection
[20220403-23:18:34] [WARN ] Window manager (pid 375613, display 10) exited quickly (1 secs). This could indicate a window manager config problem
[20220403-23:18:34] [INFO ] Calling auth_stop_session and auth_end from pid 375612
[20220403-23:18:34] [INFO ] Terminating X server (pid 375614) on display 10
[20220403-23:18:34] [INFO ] Terminating the xrdp channel server (pid 375677) on display 10
[20220403-23:18:34] [INFO ] X server on display 10 (pid 375614) returned exit code 1 and signal number 0
[20220403-23:18:34] [INFO ] xrdp channel server for display 10 (pid 375677) exit code 0 and signal number 0
[20220403-23:18:34] [INFO ] cleanup_sockets:
[20220403-23:18:34] [INFO ] Process 375612 has exited
[20220403-23:18:34] [INFO ] ++ terminated session:  username bruce, display :10.0, session_pid 375612, ip ::ffff:192.168.29.37:50448 - socket: 12
[20220403-23:33:45] [INFO ] sesman_main_loop: sesman asked to terminate
[20220403-23:36:58] [INFO ] starting xrdp-sesman with pid 384608
[20220403-23:37:17] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 41556
[20220403-23:37:17] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20220403-23:37:17] [INFO ] ++ created session (access granted): username bruce, ip ::ffff:192.168.29.37:50635 - socket: 12
[20220403-23:37:17] [INFO ] starting Xorg session...
[20220403-23:37:17] [INFO ] Starting session: session_pid 384762, display :10.0, width 1364, height 768, bpp 24, client ip ::ffff:192.168.29.37:50635 - socket: 12, user name bruce
[20220403-23:37:17] [INFO ] [session start] (display 10): calling auth_start_session from pid 384762
[20220403-23:37:17] [ERROR] sesman_data_in: scp_process_msg failed
[20220403-23:37:17] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220403-23:37:17] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20220403-23:37:27] [WARN ] Timed out waiting for X server on display 10 to startup
[20220403-23:37:27] [INFO ] Session started successfully for user bruce on display 10
[20220403-23:37:27] [INFO ] Starting the xrdp channel server for display 10
[20220403-23:37:27] [INFO ] Session in progress on display 10, waiting until the window manager (pid 384763) exits to end the session
[20220403-23:37:27] [WARN ] Timed out waiting for X server on display 10 to startup
[20220403-23:37:27] [ERROR] There is no X server active on display 10
[20220403-23:37:27] [ERROR] A fatal error has occured attempting to start the window manager on display 10, aborting connection
[20220403-23:37:27] [WARN ] Window manager (pid 384763, display 10) exited quickly (0 secs). This could indicate a window manager config problem
[20220403-23:37:27] [INFO ] Calling auth_stop_session and auth_end from pid 384762
[20220403-23:37:27] [INFO ] Terminating X server (pid 384764) on display 10
[20220403-23:37:27] [INFO ] Terminating the xrdp channel server (pid 384844) on display 10
[20220403-23:37:27] [INFO ] X server on display 10 (pid 384764) returned exit code 1 and signal number 0
[20220403-23:37:27] [INFO ] xrdp channel server for display 10 (pid 384844) exit code 0 and signal number 0
[20220403-23:37:27] [INFO ] cleanup_sockets:
[20220403-23:37:27] [INFO ] Process 384762 has exited
[20220403-23:37:27] [INFO ] ++ terminated session:  username bruce, display :10.0, session_pid 384762, ip ::ffff:192.168.29.37:50635 - socket: 12
[20220403-23:49:11] [INFO ] sesman_main_loop: sesman asked to terminate
[20220403-23:49:42] [INFO ] starting xrdp-sesman with pid 392537
[20220403-23:50:07] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 41560
[20220403-23:50:07] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20220403-23:50:07] [INFO ] ++ created session (access granted): username bruce, ip ::ffff:192.168.29.37:50770 - socket: 12
[20220403-23:50:07] [INFO ] starting Xorg session...
[20220403-23:50:07] [INFO ] Starting session: session_pid 392735, display :10.0, width 1364, height 768, bpp 24, client ip ::ffff:192.168.29.37:50770 - socket: 12, user name bruce
[20220403-23:50:07] [INFO ] [session start] (display 10): calling auth_start_session from pid 392735
[20220403-23:50:07] [ERROR] sesman_data_in: scp_process_msg failed
[20220403-23:50:07] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220403-23:50:07] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20220403-23:50:17] [WARN ] Timed out waiting for X server on display 10 to startup
[20220403-23:50:17] [INFO ] Session started successfully for user bruce on display 10
[20220403-23:50:17] [INFO ] Starting the xrdp channel server for display 10
[20220403-23:50:17] [INFO ] Session in progress on display 10, waiting until the window manager (pid 392736) exits to end the session
[20220403-23:50:17] [WARN ] Timed out waiting for X server on display 10 to startup
[20220403-23:50:17] [ERROR] There is no X server active on display 10
[20220403-23:50:17] [ERROR] A fatal error has occured attempting to start the window manager on display 10, aborting connection
[20220403-23:50:17] [WARN ] Window manager (pid 392736, display 10) exited quickly (0 secs). This could indicate a window manager config problem
[20220403-23:50:17] [INFO ] Calling auth_stop_session and auth_end from pid 392735
[20220403-23:50:17] [INFO ] Terminating X server (pid 392737) on display 10
[20220403-23:50:17] [INFO ] Terminating the xrdp channel server (pid 392814) on display 10
[20220403-23:50:17] [INFO ] X server on display 10 (pid 392737) returned exit code 1 and signal number 0
[20220403-23:50:17] [INFO ] xrdp channel server for display 10 (pid 392814) exit code 0 and signal number 0
[20220403-23:50:17] [INFO ] cleanup_sockets:
[20220403-23:50:17] [INFO ] Process 392735 has exited
[20220403-23:50:17] [INFO ] ++ terminated session:  username bruce, display :10.0, session_pid 392735, ip ::ffff:192.168.29.37:50770 - socket: 12
[20220403-23:51:34] [INFO ] sesman_main_loop: sesman asked to terminate
[20220404-00:03:01] [INFO ] starting xrdp-sesman with pid 399219
[20220404-00:03:26] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 41562
[20220404-00:03:26] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20220404-00:03:26] [INFO ] ++ created session (access granted): username bruce, ip ::ffff:192.168.29.37:50896 - socket: 12
[20220404-00:03:26] [INFO ] starting Xorg session...
[20220404-00:03:26] [INFO ] Starting session: session_pid 399474, display :10.0, width 1364, height 768, bpp 24, client ip ::ffff:192.168.29.37:50896 - socket: 12, user name bruce
[20220404-00:03:26] [INFO ] [session start] (display 10): calling auth_start_session from pid 399474
[20220404-00:03:26] [ERROR] sesman_data_in: scp_process_msg failed
[20220404-00:03:26] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220404-00:03:26] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20220404-00:03:36] [WARN ] Timed out waiting for X server on display 10 to startup
[20220404-00:03:36] [INFO ] Session started successfully for user bruce on display 10
[20220404-00:03:36] [INFO ] Starting the xrdp channel server for display 10
[20220404-00:03:36] [INFO ] Session in progress on display 10, waiting until the window manager (pid 399475) exits to end the session
[20220404-00:03:36] [WARN ] Timed out waiting for X server on display 10 to startup
[20220404-00:03:36] [ERROR] There is no X server active on display 10
[20220404-00:03:36] [ERROR] A fatal error has occured attempting to start the window manager on display 10, aborting connection
[20220404-00:03:36] [WARN ] Window manager (pid 399475, display 10) exited quickly (0 secs). This could indicate a window manager config problem
[20220404-00:03:36] [INFO ] Calling auth_stop_session and auth_end from pid 399474
[20220404-00:03:36] [INFO ] Terminating X server (pid 399476) on display 10
[20220404-00:03:36] [INFO ] Terminating the xrdp channel server (pid 399554) on display 10
[20220404-00:03:36] [INFO ] X server on display 10 (pid 399476) returned exit code 1 and signal number 0
[20220404-00:03:36] [INFO ] xrdp channel server for display 10 (pid 399554) exit code 0 and signal number 0
[20220404-00:03:36] [INFO ] cleanup_sockets:
[20220404-00:03:36] [INFO ] Process 399474 has exited
[20220404-00:03:36] [INFO ] ++ terminated session:  username bruce, display :10.0, session_pid 399474, ip ::ffff:192.168.29.37:50896 - socket: 12
[20220404-00:06:20] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 41564
[20220404-00:06:20] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20220404-00:06:20] [INFO ] ++ created session (access granted): username bruce, ip ::ffff:192.168.29.37:50916 - socket: 12
[20220404-00:06:20] [INFO ] starting Xorg session...
[20220404-00:06:20] [INFO ] Starting session: session_pid 400807, display :10.0, width 1364, height 768, bpp 24, client ip ::ffff:192.168.29.37:50916 - socket: 12, user name bruce
[20220404-00:06:20] [INFO ] [session start] (display 10): calling auth_start_session from pid 400807
[20220404-00:06:20] [ERROR] sesman_data_in: scp_process_msg failed
[20220404-00:06:20] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220404-00:06:20] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20220404-00:06:30] [WARN ] Timed out waiting for X server on display 10 to startup
[20220404-00:06:30] [INFO ] Session started successfully for user bruce on display 10
[20220404-00:06:30] [INFO ] Starting the xrdp channel server for display 10
[20220404-00:06:30] [INFO ] Session in progress on display 10, waiting until the window manager (pid 400808) exits to end the session
[20220404-00:06:30] [WARN ] Timed out waiting for X server on display 10 to startup
[20220404-00:06:30] [ERROR] There is no X server active on display 10
[20220404-00:06:30] [ERROR] A fatal error has occured attempting to start the window manager on display 10, aborting connection
[20220404-00:06:30] [WARN ] Window manager (pid 400808, display 10) exited quickly (0 secs). This could indicate a window manager config problem
[20220404-00:06:30] [INFO ] Calling auth_stop_session and auth_end from pid 400807
[20220404-00:06:30] [INFO ] Terminating X server (pid 400809) on display 10
[20220404-00:06:30] [INFO ] Terminating the xrdp channel server (pid 400886) on display 10
[20220404-00:06:30] [INFO ] X server on display 10 (pid 400809) returned exit code 1 and signal number 0
[20220404-00:06:30] [INFO ] xrdp channel server for display 10 (pid 400886) exit code 0 and signal number 0
[20220404-00:06:30] [INFO ] cleanup_sockets:
[20220404-00:06:30] [INFO ] Process 400807 has exited
[20220404-00:06:30] [INFO ] ++ terminated session:  username bruce, display :10.0, session_pid 400807, ip ::ffff:192.168.29.37:50916 - socket: 12
[20220404-00:08:05] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 41566
[20220404-00:08:06] [ERROR] pam_authenticate failed: Authentication failure
[20220404-00:08:06] [INFO ] AUTHFAIL: user=ksajan ip=::ffff:192.168.29.37 time=1649011086
[20220404-00:08:06] [ERROR] sesman_data_in: scp_process_msg failed
[20220404-00:08:06] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220404-00:08:27] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 41568
[20220404-00:08:30] [ERROR] pam_authenticate failed: Authentication failure
[20220404-00:08:30] [INFO ] AUTHFAIL: user=ksajan ip=::ffff:192.168.29.37 time=1649011110
[20220404-00:08:30] [ERROR] sesman_data_in: scp_process_msg failed
[20220404-00:08:30] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220404-00:08:52] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 41570
[20220404-00:08:52] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20220404-00:08:52] [INFO ] ++ created session (access granted): username bruce, ip ::ffff:192.168.29.37:50919 - socket: 12
[20220404-00:08:52] [INFO ] starting Xorg session...
[20220404-00:08:52] [INFO ] Starting session: session_pid 401961, display :10.0, width 1364, height 768, bpp 24, client ip ::ffff:192.168.29.37:50919 - socket: 12, user name bruce
[20220404-00:08:52] [INFO ] [session start] (display 10): calling auth_start_session from pid 401961
[20220404-00:08:52] [ERROR] sesman_data_in: scp_process_msg failed
[20220404-00:08:52] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220404-00:08:52] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20220404-00:09:02] [WARN ] Timed out waiting for X server on display 10 to startup
[20220404-00:09:02] [INFO ] Session started successfully for user bruce on display 10
[20220404-00:09:02] [INFO ] Starting the xrdp channel server for display 10
[20220404-00:09:02] [INFO ] Session in progress on display 10, waiting until the window manager (pid 401962) exits to end the session
[20220404-00:09:02] [WARN ] Timed out waiting for X server on display 10 to startup
[20220404-00:09:02] [ERROR] There is no X server active on display 10
[20220404-00:09:02] [ERROR] A fatal error has occured attempting to start the window manager on display 10, aborting connection
[20220404-00:09:02] [WARN ] Window manager (pid 401962, display 10) exited quickly (0 secs). This could indicate a window manager config problem
[20220404-00:09:02] [INFO ] Calling auth_stop_session and auth_end from pid 401961
[20220404-00:09:02] [INFO ] Terminating X server (pid 401963) on display 10
[20220404-00:09:02] [INFO ] Terminating the xrdp channel server (pid 402041) on display 10
[20220404-00:09:02] [INFO ] X server on display 10 (pid 401963) returned exit code 1 and signal number 0
[20220404-00:09:02] [INFO ] xrdp channel server for display 10 (pid 402041) exit code 0 and signal number 0
[20220404-00:09:02] [INFO ] cleanup_sockets:
[20220404-00:09:02] [INFO ] Process 401961 has exited
[20220404-00:09:02] [INFO ] ++ terminated session:  username bruce, display :10.0, session_pid 401961, ip ::ffff:192.168.29.37:50919 - socket: 12
[20220404-00:15:43] [INFO ] sesman_main_loop: sesman asked to terminate
[20220404-00:15:43] [INFO ] starting xrdp-sesman with pid 416528
[20220404-00:18:15] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 41572
[20220404-00:18:16] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20220404-00:18:16] [INFO ] ++ created session (access granted): username bruce, ip ::ffff:192.168.29.37:51004 - socket: 12
[20220404-00:18:16] [INFO ] starting Xorg session...
[20220404-00:18:16] [INFO ] Starting session: session_pid 417758, display :10.0, width 1680, height 1050, bpp 24, client ip ::ffff:192.168.29.37:51004 - socket: 12, user name bruce
[20220404-00:18:16] [INFO ] [session start] (display 10): calling auth_start_session from pid 417758
[20220404-00:18:16] [ERROR] sesman_data_in: scp_process_msg failed
[20220404-00:18:16] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220404-00:18:16] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20220404-00:18:16] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20220404-00:18:16] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20220404-00:18:16] [INFO ] Session started successfully for user bruce on display 10
[20220404-00:18:16] [INFO ] Starting the xrdp channel server for display 10
[20220404-00:18:16] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20220404-00:18:16] [INFO ] Session in progress on display 10, waiting until the window manager (pid 417759) exits to end the session
[20220404-00:18:16] [INFO ] Starting the default window manager on display 10: /etc/xrdp/startwm.sh
[20220404-00:18:16] [WARN ] Window manager (pid 417759, display 10) exited quickly (0 secs). This could indicate a window manager config problem
[20220404-00:18:16] [INFO ] Calling auth_stop_session and auth_end from pid 417758
[20220404-00:18:16] [INFO ] Terminating X server (pid 417760) on display 10
[20220404-00:18:16] [INFO ] Terminating the xrdp channel server (pid 417765) on display 10
[20220404-00:18:16] [INFO ] X server on display 10 (pid 417760) returned exit code 0 and signal number 0
[20220404-00:18:16] [INFO ] xrdp channel server for display 10 (pid 417765) exit code 0 and signal number 0
[20220404-00:18:16] [INFO ] cleanup_sockets:
[20220404-00:18:16] [INFO ] Process 417758 has exited
[20220404-00:18:16] [INFO ] ++ terminated session:  username bruce, display :10.0, session_pid 417758, ip ::ffff:192.168.29.37:51004 - socket: 12
[20220404-00:19:38] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 41574
[20220404-00:19:39] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20220404-00:19:39] [INFO ] ++ created session (access granted): username bruce, ip ::ffff:192.168.29.37:51030 - socket: 12
[20220404-00:19:39] [INFO ] starting Xorg session...
[20220404-00:19:39] [INFO ] Starting session: session_pid 418416, display :10.0, width 1680, height 1050, bpp 24, client ip ::ffff:192.168.29.37:51030 - socket: 12, user name bruce
[20220404-00:19:39] [INFO ] [session start] (display 10): calling auth_start_session from pid 418416
[20220404-00:19:39] [ERROR] sesman_data_in: scp_process_msg failed
[20220404-00:19:39] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220404-00:19:39] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20220404-00:19:39] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20220404-00:19:39] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20220404-00:19:39] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20220404-00:19:39] [INFO ] Session started successfully for user bruce on display 10
[20220404-00:19:39] [INFO ] Starting the xrdp channel server for display 10
[20220404-00:19:39] [INFO ] Starting the default window manager on display 10: /etc/xrdp/startwm.sh
[20220404-00:19:39] [INFO ] Session in progress on display 10, waiting until the window manager (pid 418417) exits to end the session
[20220404-00:19:39] [WARN ] Window manager (pid 418417, display 10) exited quickly (0 secs). This could indicate a window manager config problem
[20220404-00:19:39] [INFO ] Calling auth_stop_session and auth_end from pid 418416
[20220404-00:19:39] [INFO ] Terminating X server (pid 418418) on display 10
[20220404-00:19:39] [INFO ] Terminating the xrdp channel server (pid 418423) on display 10
[20220404-00:19:39] [INFO ] X server on display 10 (pid 418418) returned exit code 0 and signal number 0
[20220404-00:19:39] [INFO ] xrdp channel server for display 10 (pid 418423) exit code 0 and signal number 0
[20220404-00:19:39] [INFO ] cleanup_sockets:
[20220404-00:19:39] [INFO ] Process 418416 has exited
[20220404-00:19:39] [INFO ] ++ terminated session:  username bruce, display :10.0, session_pid 418416, ip ::ffff:192.168.29.37:51030 - socket: 12
[20220404-00:25:24] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 41576
[20220404-00:25:24] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20220404-00:25:24] [INFO ] ++ created session (access granted): username bruce, ip ::ffff:192.168.29.37:51075 - socket: 12
[20220404-00:25:24] [INFO ] starting Xorg session...
[20220404-00:25:24] [INFO ] Starting session: session_pid 421634, display :10.0, width 1680, height 1050, bpp 24, client ip ::ffff:192.168.29.37:51075 - socket: 12, user name bruce
[20220404-00:25:24] [INFO ] [session start] (display 10): calling auth_start_session from pid 421634
[20220404-00:25:24] [ERROR] sesman_data_in: scp_process_msg failed
[20220404-00:25:24] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220404-00:25:24] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20220404-00:25:24] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20220404-00:25:24] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20220404-00:25:24] [INFO ] Session started successfully for user bruce on display 10
[20220404-00:25:24] [INFO ] Starting the xrdp channel server for display 10
[20220404-00:25:24] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20220404-00:25:24] [INFO ] Session in progress on display 10, waiting until the window manager (pid 421635) exits to end the session
[20220404-00:25:24] [INFO ] Starting the default window manager on display 10: /etc/xrdp/startwm.sh
[20220404-00:25:24] [WARN ] Window manager (pid 421635, display 10) exited quickly (0 secs). This could indicate a window manager config problem
[20220404-00:25:24] [INFO ] Calling auth_stop_session and auth_end from pid 421634
[20220404-00:25:24] [INFO ] Terminating X server (pid 421636) on display 10
[20220404-00:25:24] [INFO ] Terminating the xrdp channel server (pid 421641) on display 10
[20220404-00:25:24] [INFO ] X server on display 10 (pid 421636) returned exit code 0 and signal number 0
[20220404-00:25:24] [INFO ] xrdp channel server for display 10 (pid 421641) exit code 0 and signal number 0
[20220404-00:25:24] [INFO ] cleanup_sockets:
[20220404-00:25:24] [INFO ] Process 421634 has exited
[20220404-00:25:24] [INFO ] ++ terminated session:  username bruce, display :10.0, session_pid 421634, ip ::ffff:192.168.29.37:51075 - socket: 12
[20220404-00:51:42] [INFO ] sesman_main_loop: sesman asked to terminate
[20220404-00:52:16] [INFO ] starting xrdp-sesman with pid 308
[20220404-01:13:20] [INFO ] sesman_main_loop: sesman asked to terminate
[20220404-01:13:54] [INFO ] starting xrdp-sesman with pid 331
[20220404-01:17:02] [INFO ] sesman_main_loop: sesman asked to terminate
[20220404-01:17:37] [INFO ] starting xrdp-sesman with pid 317
[20220404-01:23:31] [INFO ] sesman_main_loop: sesman asked to terminate
[20220404-01:24:11] [INFO ] starting xrdp-sesman with pid 357
[20220404-01:28:48] [INFO ] sesman_main_loop: sesman asked to terminate
[20220404-01:29:23] [INFO ] starting xrdp-sesman with pid 315
[20220404-01:38:37] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 45554
[20220404-01:38:37] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20220404-01:38:37] [INFO ] ++ created session (access granted): username bruce, ip ::ffff:192.168.29.37:51824 - socket: 12
[20220404-01:38:37] [INFO ] starting Xorg session...
[20220404-01:38:37] [INFO ] Starting session: session_pid 9476, display :10.0, width 1680, height 1050, bpp 24, client ip ::ffff:192.168.29.37:51824 - socket: 12, user name bruce
[20220404-01:38:37] [INFO ] [session start] (display 10): calling auth_start_session from pid 9476
[20220404-01:38:37] [ERROR] sesman_data_in: scp_process_msg failed
[20220404-01:38:37] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220404-01:38:37] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20220404-01:38:37] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20220404-01:38:37] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20220404-01:38:37] [INFO ] Session started successfully for user bruce on display 10
[20220404-01:38:37] [INFO ] Starting the xrdp channel server for display 10
[20220404-01:38:37] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20220404-01:38:37] [INFO ] Session in progress on display 10, waiting until the window manager (pid 9477) exits to end the session
[20220404-01:38:37] [INFO ] Starting the default window manager on display 10: /etc/xrdp/startwm.sh
[20220404-01:38:37] [WARN ] Window manager (pid 9477, display 10) exited quickly (0 secs). This could indicate a window manager config problem
[20220404-01:38:37] [INFO ] Calling auth_stop_session and auth_end from pid 9476
[20220404-01:38:37] [INFO ] Terminating X server (pid 9478) on display 10
[20220404-01:38:37] [INFO ] Terminating the xrdp channel server (pid 9483) on display 10
[20220404-01:38:37] [INFO ] X server on display 10 (pid 9478) returned exit code 0 and signal number 0
[20220404-01:38:37] [INFO ] xrdp channel server for display 10 (pid 9483) exit code 0 and signal number 0
[20220404-01:38:37] [INFO ] cleanup_sockets:
[20220404-01:38:37] [INFO ] Process 9476 has exited
[20220404-01:38:37] [INFO ] ++ terminated session:  username bruce, display :10.0, session_pid 9476, ip ::ffff:192.168.29.37:51824 - socket: 12
[20220404-11:29:40] [INFO ] starting xrdp-sesman with pid 348
[20220404-11:33:38] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 37340
[20220404-11:33:38] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20220404-11:33:38] [INFO ] ++ created session (access granted): username bruce, ip ::ffff:192.168.29.37:53366 - socket: 12
[20220404-11:33:38] [INFO ] starting Xorg session...
[20220404-11:33:38] [INFO ] Starting session: session_pid 3638, display :10.0, width 1680, height 1050, bpp 24, client ip ::ffff:192.168.29.37:53366 - socket: 12, user name bruce
[20220404-11:33:38] [INFO ] [session start] (display 10): calling auth_start_session from pid 3638
[20220404-11:33:38] [ERROR] sesman_data_in: scp_process_msg failed
[20220404-11:33:38] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220404-11:33:38] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20220404-11:33:38] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20220404-11:33:38] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20220404-11:33:38] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20220404-11:33:38] [INFO ] Session started successfully for user bruce on display 10
[20220404-11:33:38] [INFO ] Starting the xrdp channel server for display 10
[20220404-11:33:38] [INFO ] Starting the default window manager on display 10: /etc/xrdp/startwm.sh
[20220404-11:33:38] [INFO ] Session in progress on display 10, waiting until the window manager (pid 3639) exits to end the session
[20220404-11:33:38] [WARN ] Window manager (pid 3639, display 10) exited quickly (0 secs). This could indicate a window manager config problem
[20220404-11:33:38] [INFO ] Calling auth_stop_session and auth_end from pid 3638
[20220404-11:33:38] [INFO ] Terminating X server (pid 3640) on display 10
[20220404-11:33:38] [INFO ] Terminating the xrdp channel server (pid 3645) on display 10
[20220404-11:33:38] [INFO ] X server on display 10 (pid 3640) returned exit code 0 and signal number 0
[20220404-11:33:38] [INFO ] xrdp channel server for display 10 (pid 3645) exit code 0 and signal number 0
[20220404-11:33:38] [INFO ] cleanup_sockets:
[20220404-11:33:38] [INFO ] Process 3638 has exited
[20220404-11:33:38] [INFO ] ++ terminated session:  username bruce, display :10.0, session_pid 3638, ip ::ffff:192.168.29.37:53366 - socket: 12

ksajan avatar Apr 04 '22 06:04 ksajan

Hi @ksajan

Your logs above are a bit confused and are showing at least two problems.

Can you do the following:-

sudo systemctl stop xrdp xrdp-sesman
sudo rm /var/log/xrdp*.log
sudo reboot

Then try to log in again once and repost the logs?

Thanks.

matt335672 avatar Apr 04 '22 08:04 matt335672

@matt335672 xrdp.log

[20220404-16:21:55] [INFO ] address [0.0.0.0] port [3389] mode 1
[20220404-16:21:55] [INFO ] listening to port 3389 on 0.0.0.0
[20220404-16:21:55] [INFO ] xrdp_listen_pp done
[20220404-16:21:57] [INFO ] starting xrdp with pid 321
[20220404-16:21:57] [INFO ] address [0.0.0.0] port [3389] mode 1
[20220404-16:21:57] [INFO ] listening to port 3389 on 0.0.0.0
[20220404-16:21:57] [INFO ] xrdp_listen_pp done
[20220404-16:23:21] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.29.37 port 55467
[20220404-16:23:21] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20220404-16:23:21] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20220404-16:23:21] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL]
[20220404-16:23:31] [INFO ] Connected client computer name: Sajans-MacBook-
[20220404-16:23:31] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
[20220404-16:23:31] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
[20220404-16:23:31] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000409]
[20220404-16:23:31] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options []
[20220404-16:23:31] [INFO ] TLS connection established from ::ffff:192.168.29.37 port 55467: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
[20220404-16:23:31] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[20220404-16:23:31] [INFO ] xrdp_process_offscreen_bmpcache: support level 0 cache size 0 MB cache entries 0
[20220404-16:23:31] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
[20220404-16:23:31] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20220404-16:23:31] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20220404-16:23:31] [INFO ] connecting to sesman on 127.0.0.1:3350
[20220404-16:23:31] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20220404-16:23:31] [INFO ] sesman connect ok
[20220404-16:23:31] [INFO ] sending login info to session manager. Please wait...
[20220404-16:23:31] [INFO ] xrdp_wm_log_msg: login successful for user bruce on display 10
[20220404-16:23:31] [INFO ] login successful for user bruce on display 10
[20220404-16:23:31] [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
[20220404-16:23:31] [INFO ] started connecting
[20220404-16:23:31] [INFO ] lib_mod_connect: connecting via UNIX socket

xrdp-sasman.log

[20220404-16:21:55] [INFO ] address [0.0.0.0] port [3389] mode 1
[20220404-16:21:55] [INFO ] listening to port 3389 on 0.0.0.0
[20220404-16:21:55] [INFO ] xrdp_listen_pp done
[20220404-16:21:57] [INFO ] starting xrdp with pid 321
[20220404-16:21:57] [INFO ] address [0.0.0.0] port [3389] mode 1
[20220404-16:21:57] [INFO ] listening to port 3389 on 0.0.0.0
[20220404-16:21:57] [INFO ] xrdp_listen_pp done
[20220404-16:23:21] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.29.37 port 55467
[20220404-16:23:21] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20220404-16:23:21] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20220404-16:23:21] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL]
[20220404-16:23:31] [INFO ] Connected client computer name: Sajans-MacBook-
[20220404-16:23:31] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
[20220404-16:23:31] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
[20220404-16:23:31] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000409]
[20220404-16:23:31] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options []
[20220404-16:23:31] [INFO ] TLS connection established from ::ffff:192.168.29.37 port 55467: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
[20220404-16:23:31] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[20220404-16:23:31] [INFO ] xrdp_process_offscreen_bmpcache: support level 0 cache size 0 MB cache entries 0
[20220404-16:23:31] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
[20220404-16:23:31] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20220404-16:23:31] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20220404-16:23:31] [INFO ] connecting to sesman on 127.0.0.1:3350
[20220404-16:23:31] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20220404-16:23:31] [INFO ] sesman connect ok
[20220404-16:23:31] [INFO ] sending login info to session manager. Please wait...
[20220404-16:23:31] [INFO ] xrdp_wm_log_msg: login successful for user bruce on display 10
[20220404-16:23:31] [INFO ] login successful for user bruce on display 10
[20220404-16:23:31] [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
[20220404-16:23:31] [INFO ] started connecting
[20220404-16:23:31] [INFO ] lib_mod_connect: connecting via UNIX socket
[bruce@batman ~]$ sudo cat /var/log/xrdp-sesman.log
[20220404-16:21:55] [INFO ] starting xrdp-sesman with pid 315
[20220404-16:23:31] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 52356
[20220404-16:23:31] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20220404-16:23:31] [INFO ] ++ created session (access granted): username bruce, ip ::ffff:192.168.29.37:55467 - socket: 12
[20220404-16:23:31] [INFO ] starting Xorg session...
[20220404-16:23:31] [INFO ] Starting session: session_pid 1256, display :10.0, width 1680, height 1050, bpp 24, client ip ::ffff:192.168.29.37:55467 - socket: 12, user name bruce
[20220404-16:23:31] [INFO ] [session start] (display 10): calling auth_start_session from pid 1256
[20220404-16:23:31] [ERROR] sesman_data_in: scp_process_msg failed
[20220404-16:23:31] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20220404-16:23:31] [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20220404-16:23:41] [WARN ] Timed out waiting for X server on display 10 to startup
[20220404-16:23:41] [INFO ] Session started successfully for user bruce on display 10
[20220404-16:23:41] [INFO ] Starting the xrdp channel server for display 10
[20220404-16:23:41] [INFO ] Session in progress on display 10, waiting until the window manager (pid 1257) exits to end the session
[20220404-16:23:41] [WARN ] Timed out waiting for X server on display 10 to startup
[20220404-16:23:41] [ERROR] There is no X server active on display 10
[20220404-16:23:41] [ERROR] A fatal error has occured attempting to start the window manager on display 10, aborting connection
[20220404-16:23:41] [WARN ] Window manager (pid 1257, display 10) exited quickly (0 secs). This could indicate a window manager config problem
[20220404-16:23:41] [INFO ] Calling auth_stop_session and auth_end from pid 1256
[20220404-16:23:41] [INFO ] Terminating X server (pid 1258) on display 10
[20220404-16:23:41] [INFO ] Terminating the xrdp channel server (pid 1260) on display 10
[20220404-16:23:41] [INFO ] X server on display 10 (pid 1258) returned exit code 1 and signal number 0
[20220404-16:23:41] [INFO ] xrdp channel server for display 10 (pid 1260) exit code 0 and signal number 0
[20220404-16:23:41] [INFO ] cleanup_sockets:
[20220404-16:23:41] [INFO ] Process 1256 has exited
[20220404-16:23:41] [INFO ] ++ terminated session:  username bruce, display :10.0, session_pid 1256, ip ::ffff:192.168.29.37:55467 - socket: 12

ksajan avatar Apr 04 '22 10:04 ksajan

Thanks @ksajan - that's a lot clearer now. It looks like your X server is failing to start for some reason. I take it you've installed xorgxrdp? Assuming you have, can you post the contents of /home/bruce/.xorgxrdp.10.log?

Thanks.

matt335672 avatar Apr 04 '22 18:04 matt335672

@matt335672 Yes I did install xorgxrdp. Here's the log file. Sorry if it's too long.

[  5508.018]
X.Org X Server 1.21.1.3
X Protocol Version 11, Revision 0
[  5508.018] Current Operating System: Linux batman 5.17.1-arch1-1 #1 SMP PREEMPT Mon, 28 Mar 2022 20:55:33 +0000 x86_64
[  5508.018] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=fc35912f-3809-463d-826b-41ec1ac753b0 rw loglevel=3 quiet
[  5508.018]
[  5508.018] Current version of pixman: 0.40.0
[  5508.018] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[  5508.018] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  5508.018] (++) Log file: ".xorgxrdp.10.log", Time: Mon Apr  4 18:46:05 2022
[  5508.018] (++) Using config file: "/etc/X11/xrdp/xorg.conf"
[  5508.018] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  5508.018] (**) Option "defaultserverlayout" "X11 Server"
[  5508.018] (**) ServerLayout "X11 Server"
[  5508.018] (**) |-->Screen "Screen (xrdpdev)" (0)
[  5508.018] (**) |   |-->Monitor "Monitor"
[  5508.019] (**) |   |-->Device "Video Card (xrdpdev)"
[  5508.019] (**) |-->Input Device "xrdpMouse"
[  5508.019] (**) |-->Input Device "xrdpKeyboard"
[  5508.019] (**) Option "DontVTSwitch" "on"
[  5508.019] (**) Option "AutoAddDevices" "off"
[  5508.019] (**) Not automatically adding devices
[  5508.019] (==) Automatically enabling devices
[  5508.019] (==) Automatically adding GPU devices
[  5508.019] (==) Automatically binding GPU devices
[  5508.019] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  5508.019] (WW) The directory "/usr/share/fonts/misc" does not exist.
[  5508.019] 	Entry deleted from font path.
[  5508.019] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[  5508.019] 	Entry deleted from font path.
[  5508.019] 	(Run 'mkfontdir' on "/usr/share/fonts/TTF").
[  5508.019] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/OTF".
[  5508.019] 	Entry deleted from font path.
[  5508.019] 	(Run 'mkfontdir' on "/usr/share/fonts/OTF").
[  5508.019] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[  5508.019] 	Entry deleted from font path.
[  5508.019] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[  5508.019] 	Entry deleted from font path.
[  5508.019] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[  5508.019] 	Entry deleted from font path.
[  5508.019] (==) FontPath set to:

[  5508.019] (==) ModulePath set to "/usr/lib/xorg/modules"
[  5508.019] (II) Module ABI versions:
[  5508.019] 	X.Org ANSI C Emulation: 0.4
[  5508.019] 	X.Org Video Driver: 25.2
[  5508.019] 	X.Org XInput driver : 24.4
[  5508.019] 	X.Org Server Extension : 10.0
[  5508.020] (EE) systemd-logind: failed to get session: PID 93272 does not belong to any known session
[  5508.021] (II) xfree86: Adding drm device (/dev/dri/card0)
[  5508.021] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[  5508.023] (--) PCI:*(0@0:2:0) 8086:0126:1028:0492 rev 9, Mem @ 0xe1400000/4194304, 0xd0000000/268435456, I/O @ 0x00004000/64, BIOS @ 0x????????/131072
[  5508.023] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[  5508.023] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[  5508.023] (II) LoadModule: "dbe"
[  5508.024] (II) Module "dbe" already built-in
[  5508.024] (II) LoadModule: "ddc"
[  5508.024] (II) Module "ddc" already built-in
[  5508.024] (II) LoadModule: "extmod"
[  5508.024] (II) Module "extmod" already built-in
[  5508.024] (II) LoadModule: "glx"
[  5508.024] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  5508.025] (II) Module glx: vendor="X.Org Foundation"
[  5508.025] 	compiled for 1.21.1.3, module version = 1.0.0
[  5508.025] 	ABI class: X.Org Server Extension, version 10.0
[  5508.025] (II) LoadModule: "int10"
[  5508.025] (II) Loading /usr/lib/xorg/modules/libint10.so
[  5508.025] (II) Module int10: vendor="X.Org Foundation"
[  5508.025] 	compiled for 1.21.1.3, module version = 1.0.0
[  5508.025] 	ABI class: X.Org Video Driver, version 25.2
[  5508.025] (II) LoadModule: "record"
[  5508.025] (II) Module "record" already built-in
[  5508.025] (II) LoadModule: "vbe"
[  5508.025] (II) Loading /usr/lib/xorg/modules/libint10.so
[  5508.025] (II) Module int10: vendor="X.Org Foundation"
[  5508.025] 	compiled for 1.21.1.3, module version = 1.0.0
[  5508.025] 	ABI class: X.Org Video Driver, version 25.2
[  5508.025] (II) LoadModule: "xorgxrdp"
[  5508.025] (II) Loading /usr/lib/xorg/modules/libxorgxrdp.so
[  5508.026] (II) Module XORGXRDP: vendor="X.Org Foundation"
[  5508.026] 	compiled for 1.21.1.3, module version = 0.2.18
[  5508.026] 	ABI class: X.Org Video Driver, version 25.2
[  5508.026] xorgxrdpSetup:
[  5508.026] (II) LoadModule: "fb"
[  5508.026] (II) Module "fb" already built-in
[  5508.026] (II) LoadModule: "xrdpdev"
[  5508.026] (II) Loading /usr/lib/xorg/modules/drivers/xrdpdev_drv.so
[  5508.026] (II) Module XRDPDEV: vendor="X.Org Foundation"
[  5508.026] 	compiled for 1.21.1.3, module version = 0.2.18
[  5508.026] 	ABI class: X.Org Video Driver, version 25.2
[  5508.026] xrdpdevSetup:
[  5508.026] (II) LoadModule: "xrdpmouse"
[  5508.026] (II) Loading /usr/lib/xorg/modules/input/xrdpmouse_drv.so
[  5508.026] (II) Module XRDPMOUSE: vendor="X.Org Foundation"
[  5508.026] 	compiled for 1.21.1.3, module version = 0.2.18
[  5508.026] 	Module class: X.Org XInput Driver
[  5508.026] 	ABI class: X.Org XInput driver, version 24.4
[  5508.026] rdpmousePlug:
[  5508.026] (II) LoadModule: "xrdpkeyb"
[  5508.026] (II) Loading /usr/lib/xorg/modules/input/xrdpkeyb_drv.so
[  5508.026] (II) Module XRDPKEYB: vendor="X.Org Foundation"
[  5508.026] 	compiled for 1.21.1.3, module version = 0.2.18
[  5508.026] 	Module class: X.Org XInput Driver
[  5508.026] 	ABI class: X.Org XInput driver, version 24.4
[  5508.026] rdpkeybPlug:
[  5508.026] rdpIdentify:
[  5508.026] (II) XRDPDEV: driver for xrdp: XRDPDEV
[  5508.026] rdpDriverFunc: op 10
[  5508.026] (WW) Falling back to old probe method for XRDPDEV
[  5508.026] rdpProbe:
[  5508.026] (II) Loading sub module "fb"
[  5508.026] (II) LoadModule: "fb"
[  5508.026] (II) Module "fb" already built-in
[  5508.026] (II) XRDPDEV(0): using default device
[  5508.026] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  5508.026] rdpPreInit:
[  5508.026] (**) XRDPDEV(0): Depth 24, (--) framebuffer bpp 32
[  5508.026] (==) XRDPDEV(0): RGB weight 888
[  5508.026] (==) XRDPDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[  5508.026] (==) XRDPDEV(0): Default visual is TrueColor
[  5508.026] (==) XRDPDEV(0): DPI set to (96, 96)
[  5508.026] (II) XRDPDEV(0): 	mode "640x480" ok
[  5508.026] (II) XRDPDEV(0): 	mode "800x600" ok
[  5508.026] (II) XRDPDEV(0): Virtual size is 800x600 (pitch 800)
[  5508.026] (**) XRDPDEV(0):  Default mode "800x600": 36.0 MHz (scaled from 0.0 MHz), 35.2 kHz, 56.2 Hz
[  5508.026] (II) XRDPDEV(0): Modeline "800x600"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[  5508.026] rdpScreenInit: virtualX 800 virtualY 600 rgbBits 8 depth 24
[  5508.026] rdpScreenInit: pfbMemory bytes 1920000
[  5508.026] rdpScreenInit: pfbMemory 0x7f9ee916f010
[  5508.026] rdpSimdInit: assigning yuv functions
[  5508.026] rdpSimdInit: cpuid ax 1 cx 0 return ax 0x000206a7 bx 0x01100800 cx 0x1fbae3ff dx 0xbfebfbff
[  5508.026] rdpSimdInit: sse2 amd64 yuv functions assigned
[  5508.026] (==) XRDPDEV(0): Backing store enabled
[  5508.027] rdpClientConInit: disconnect idle session after [0] sec
[  5508.027] rdpClientConInit: kill disconnected [0] timeout [0] sec
[  5508.027] rdpXvInit: depth 24
[  5508.027] rdpScreenInit: out
[  5508.027] (II) Initializing extension Generic Event Extension
[  5508.027] (II) Initializing extension SHAPE
[  5508.027] (II) Initializing extension MIT-SHM
[  5508.027] (II) Initializing extension XInputExtension
[  5508.027] (II) Initializing extension XTEST
[  5508.027] (II) Initializing extension BIG-REQUESTS
[  5508.027] (II) Initializing extension SYNC
[  5508.027] (II) Initializing extension XKEYBOARD
[  5508.027] (II) Initializing extension XC-MISC
[  5508.028] (II) Initializing extension SECURITY
[  5508.028] (II) Initializing extension XFIXES
[  5508.028] (II) Initializing extension RENDER
[  5508.028] (II) Initializing extension RANDR
[  5508.028] (II) Initializing extension COMPOSITE
[  5508.028] (II) Initializing extension DAMAGE
[  5508.028] (II) Initializing extension MIT-SCREEN-SAVER
[  5508.028] (II) Initializing extension DOUBLE-BUFFER
[  5508.028] (II) Initializing extension RECORD
[  5508.029] (II) Initializing extension DPMS
[  5508.029] (II) Initializing extension Present
[  5508.029] (II) Initializing extension DRI3
[  5508.029] (II) Initializing extension X-Resource
[  5508.029] (II) Initializing extension XVideo
[  5508.029] (II) Initializing extension XVideo-MotionCompensation
[  5508.029] (II) Initializing extension GLX
[  5508.029] (II) AIGLX: Screen 0 is not DRI2 capable
[  5508.055] (II) IGLX: Loaded and initialized swrast
[  5508.055] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[  5508.055] (II) Initializing extension XFree86-VidModeExtension
[  5508.055] (II) Initializing extension XFree86-DGA
[  5508.055] (II) Initializing extension XFree86-DRI
[  5508.055] (II) Initializing extension DRI2
[  5508.055] rdpCreateScreenResources:
[  5508.077] (II) Using input driver 'XRDPMOUSE' for 'xrdpMouse'
[  5508.077] (**) Option "CorePointer"
[  5508.077] (**) xrdpMouse: always reports core events
[  5508.077] rdpmousePreInit: drv 0x55654a928190 info 0x55654abeefb0, flags 0x0
[  5508.077] (II) XINPUT: Adding extended input device "xrdpMouse" (type: Mouse, id 6)
[  5508.077] rdpmouseControl: what 0
[  5508.077] rdpmouseDeviceInit:
[  5508.077] rdpmouseCtrl:
[  5508.077] rdpRegisterInputCallback: type 1 proc 0x7f9eea5712c0
[  5508.077] (**) xrdpMouse: (accel) keeping acceleration scheme 1
[  5508.077] (**) xrdpMouse: (accel) acceleration profile 0
[  5508.077] (**) xrdpMouse: (accel) acceleration factor: 2.000
[  5508.077] (**) xrdpMouse: (accel) acceleration threshold: 4
[  5508.077] rdpmouseControl: what 1
[  5508.077] rdpmouseDeviceOn:
[  5508.077] (II) Using input driver 'XRDPKEYB' for 'xrdpKeyboard'
[  5508.077] (**) Option "CoreKeyboard"
[  5508.077] (**) xrdpKeyboard: always reports core events
[  5508.077] rdpkeybPreInit: drv 0x55654a927b70 info 0x55654abf2100, flags 0x0
[  5508.077] (II) XINPUT: Adding extended input device "xrdpKeyboard" (type: Keyboard, id 7)
[  5508.077] rdpkeybControl: what 0
[  5508.077] rdpkeybDeviceInit:
[  5508.093] rdpkeybChangeKeyboardControl:
[  5508.093] rdpkeybChangeKeyboardControl: autoRepeat on
[  5508.093] rdpRegisterInputCallback: type 0 proc 0x7f9eea56c920
[  5508.093] rdpkeybControl: what 1
[  5508.093] rdpkeybDeviceOn:
[  5508.107] (II) config/udev: Adding input device Power Button (/dev/input/event3)
[  5508.107] (II) AutoAddDevices is off - not adding device.
[  5508.108] (II) config/udev: Adding input device Video Bus (/dev/input/event7)
[  5508.108] (II) AutoAddDevices is off - not adding device.
[  5508.108] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[  5508.108] (II) AutoAddDevices is off - not adding device.
[  5508.108] (II) config/udev: Adding input device Lid Switch (/dev/input/event0)
[  5508.108] (II) AutoAddDevices is off - not adding device.
[  5508.109] (II) config/udev: Adding input device Sleep Button (/dev/input/event2)
[  5508.109] (II) AutoAddDevices is off - not adding device.
[  5508.110] (II) config/udev: Adding input device HDA Intel PCH Dock Mic (/dev/input/event9)
[  5508.110] (II) AutoAddDevices is off - not adding device.
[  5508.110] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event10)
[  5508.110] (II) AutoAddDevices is off - not adding device.
[  5508.110] (II) config/udev: Adding input device HDA Intel PCH Dock Line Out (/dev/input/event11)
[  5508.110] (II) AutoAddDevices is off - not adding device.
[  5508.111] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event12)
[  5508.111] (II) AutoAddDevices is off - not adding device.
[  5508.111] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event13)
[  5508.111] (II) AutoAddDevices is off - not adding device.
[  5508.111] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=7 (/dev/input/event14)
[  5508.111] (II) AutoAddDevices is off - not adding device.
[  5508.112] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=8 (/dev/input/event15)
[  5508.112] (II) AutoAddDevices is off - not adding device.
[  5508.112] (II) config/udev: Adding input device Dell WMI hotkeys (/dev/input/event6)
[  5508.112] (II) AutoAddDevices is off - not adding device.
[  5508.113] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event4)
[  5508.113] (II) AutoAddDevices is off - not adding device.
[  5508.113] (II) config/udev: Adding input device AlpsPS/2 ALPS GlidePoint (/dev/input/event8)
[  5508.113] (II) AutoAddDevices is off - not adding device.
[  5508.114] (II) config/udev: Adding input device AlpsPS/2 ALPS GlidePoint (/dev/input/mouse0)
[  5508.114] (II) AutoAddDevices is off - not adding device.
[  5508.114] (II) config/udev: Adding input device PC Speaker (/dev/input/event5)
[  5508.114] (II) AutoAddDevices is off - not adding device.
[  5508.120] rdpDeferredRandR:
[  5508.120] rdpResizeSession: width 1024 height 768
[  5508.120]   calling RRScreenSizeSet
[  5508.120] rdpRRScreenSetSize: width 1024 height 768 mmWidth 271 mmHeight 203
[  5508.120] rdpRRGetInfo:
[  5508.120]   screen resized to 1024x768
[  5508.122]   RRScreenSizeSet ok 1
[  5508.122] rdpResizeSession: width 1680 height 1050
[  5508.122]   calling RRScreenSizeSet
[  5508.122] rdpRRScreenSetSize: width 1680 height 1050 mmWidth 445 mmHeight 278
[  5508.122] rdpRRGetInfo:
[  5508.122]   screen resized to 1680x1050
[  5508.125]   RRScreenSizeSet ok 1
[  5508.125] rdpClientConGotConnection:
[  5508.125] rdpClientConGotConnection: g_sck_accept ok new_sck 7
[  5508.125] rdpClientConGetConnection: idle_disconnect_timeout set to non-positive value, idle timer turned off
[  5508.125] rdpAddClientConToDev: adding first clientCon 0x55654ac4a4e0
[  5508.125] rdpClientConProcessMsgVersion: version 0 0 0 1
[  5508.125] rdpClientConProcessScreenSizeMsg: set width 1680 height 1050 bpp 32
[  5508.125] rdpClientConProcessScreenSizeMsg: shmemid 131081 shmemptr 0x7f9edd438000
[  5508.125] rdpClientConProcessMsgClientInput: invalidate x 0 y 0 cx 1680 cy 1050
[  5508.194] rdpInDeferredRepeatCallback:
[  5508.194] rdpkeybChangeKeyboardControl:
[  5508.194] rdpkeybChangeKeyboardControl: autoRepeat off
[  5508.308] rdpmouseControl: what 2
[  5508.308] rdpmouseDeviceOff:
[  5508.308] rdpkeybControl: what 2
[  5508.308] rdpkeybDeviceOff:
[  5508.309] rdpkeybControl: what 3
[  5508.309] rdpkeybUnInit: drv 0x55654a927b70 info 0x55654abf2100, flags 0x0
[  5508.309] rdpUnregisterInputCallback: proc 0x7f9eea56c920
[  5508.309] rdpmouseControl: what 3
[  5508.309] rdpmouseUnInit: drv 0x55654a928190 info 0x55654abeefb0, flags 0x0
[  5508.309] rdpUnregisterInputCallback: proc 0x7f9eea5712c0
[  5508.310] rdpCloseScreen:
[  5508.310] xorgxrdpDownDown:
[  5508.310] xorgxrdpDownDown: 1
[  5508.310] rdpClientConDeinit:
[  5508.310] rdpClientConDeinit: disconnecting clientCon
[  5508.310] rdpClientConDisconnect:
[  5508.310] rdpRemoveClientConFromDev: removing clientCon 0x55654ac4a4e0
[  5508.310] rdpClientConDeinit: deleting file /tmp/.xrdp/xrdp_display_10
[  5508.310] rdpClientConDeinit: deleting file /tmp/.xrdp/xrdp_disconnect_display_10
[  5508.310] (II) Server terminated successfully (0). Closing log file.

ksajan avatar Apr 04 '22 19:04 ksajan

Sadly, that all looks quite normal.

The X server starts shutting down with this line:-

[  5508.308] rdpmouseControl: what 2

Up until that point it's barely been up, so it's hard to see why it should be shutting down so quickly.

A couple of questions for you:-

  1. I don't understand this comment. Can you add a bit more about it please?

    First when I didn't made gateway the rdp was showing blackscreen. I tried what is mentioned in arch wiki and added gateway also then I started getting SSL error.

  2. Make sure that bruce is not logged in on the console of batman.
  3. Does the X server seem to run OK if you enter this command from an ssh session when logged in as bruce.
    /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
    

Thanks.

matt335672 avatar Apr 05 '22 10:04 matt335672

  1. In the RDP app in macOS there is a setting to preconfigure the login password and all. So, I don't preconfigure the password and username. And directly use Ip then it prompts for username and password. So if I type only username then it takes me xrdp screen for authentication. So after I enter there password and all it stays there with blue screen and doesn't get timeout or close it automatically. But If I do configure that it will automatically close after 3 tries that I can see when I run sudo systemctl status xrdp saying some SSL error. The same error that I mentioned in my first comment in the issue.

ksajan avatar Apr 07 '22 14:04 ksajan

X.Org X Server 1.21.1.3
X Protocol Version 11, Revision 0
Current Operating System: Linux batman 5.17.1-arch1-1 #1 SMP PREEMPT Mon, 28 Mar 2022 20:55:33 +0000 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=fc35912f-3809-463d-826b-41ec1ac753b0 rw loglevel=3 quiet

Current version of pixman: 0.40.0
	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: ".xorgxrdp.10.log", Time: Thu Apr  7 20:27:32 2022
(++) Using config file: "/etc/X11/xrdp/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
xorgxrdpSetup:
xrdpdevSetup:
rdpmousePlug:
rdpkeybPlug:
rdpIdentify:
rdpDriverFunc: op 10
rdpProbe:
rdpPreInit:
rdpScreenInit: virtualX 800 virtualY 600 rgbBits 8 depth 24
rdpScreenInit: pfbMemory bytes 1920000
rdpScreenInit: pfbMemory 0x7f2fc611c010
rdpSimdInit: assigning yuv functions
rdpSimdInit: cpuid ax 1 cx 0 return ax 0x000206a7 bx 0x03100800 cx 0x1fbae3ff dx 0xbfebfbff
rdpSimdInit: sse2 amd64 yuv functions assigned
rdpClientConInit: disconnect idle session after [0] sec
rdpClientConInit: kill disconnected [0] timeout [0] sec
rdpXvInit: depth 24
rdpScreenInit: out
rdpCreateScreenResources:
rdpmousePreInit: drv 0x55bbbb1e13e0 info 0x55bbbb4a8680, flags 0x0
rdpmouseControl: what 0
rdpmouseDeviceInit:
rdpmouseCtrl:
rdpRegisterInputCallback: type 1 proc 0x7f2fc751e2c0
rdpmouseControl: what 1
rdpmouseDeviceOn:
rdpkeybPreInit: drv 0x55bbbb1e1390 info 0x55bbbb4ab7d0, flags 0x0
rdpkeybControl: what 0
rdpkeybDeviceInit:
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat on
rdpRegisterInputCallback: type 0 proc 0x7f2fc7519920
rdpkeybControl: what 1
rdpkeybDeviceOn:
rdpDeferredRandR:
rdpResizeSession: width 1024 height 768
  calling RRScreenSizeSet
rdpRRScreenSetSize: width 1024 height 768 mmWidth 271 mmHeight 203
rdpRRGetInfo:
  screen resized to 1024x768
  RRScreenSizeSet ok 1
rdpInDeferredRepeatCallback:
rdpkeybChangeKeyboardControl:
rdpkeybChangeKeyboardControl: autoRepeat off

This is what I get when I type this command while ssh to my computer.

ksajan avatar Apr 07 '22 14:04 ksajan

?Have you made sure that bruce is not logged in to the console?

matt335672 avatar Apr 08 '22 10:04 matt335672

I did. I logged out and whent to tty. Is that not correct?

ksajan avatar Apr 09 '22 15:04 ksajan

That should be fine.

I'm still struggling to understand the problem here. The sysman log file says the X server isn't starting, and yet the X server appears to be working.

Are you running a firewall on the system on localhost by any chance?

matt335672 avatar Apr 09 '22 16:04 matt335672

Hi, I had a very similar issue.

For me, switching in /etc/X11/Xwrapper.config from "allowed_users=console" to "allowed_users= anybody" did the trick.

wlchs avatar Apr 22 '22 21:04 wlchs

@matt335672 No I am not. If there is any by default on my server-side then I don't know. But having a firewall on my client-side that is MacBook will have an effect on this?

ksajan avatar Apr 23 '22 02:04 ksajan

@wlchs for me this file doesn't exist. Should I make one?

ksajan avatar Apr 23 '22 02:04 ksajan

Sorry - been away for a few days.

For both of you, I cannot stress enough that there should be absolutely no need to mess with /etc/X11/Xwrapper.config on any system. You can get the Xorg server working this way, but it's far better to simply put the correct path to the unprivileged Xorg in sesman.ini in the correct place. It's far more secure.

@ksajan - the problem @wichs describes fixes the X server not starting at all. I don't think you have this problem. What desktop are you trying to start?

matt335672 avatar Apr 28 '22 12:04 matt335672

No more info from posters - closing this.

matt335672 avatar Sep 08 '22 08:09 matt335672