Error Details

When attempting to start an XRDP session, you may encounter the following error messages in your logs:


Jun 21 09:42:27 tecadmin-web xrdp-sesman[19218]: [INFO ] starting Xorg session...
Jun 21 09:42:27 tecadmin-web xrdp-sesman[19218]: [INFO ] Starting session: session_pid 19243, display :10.0, width 1360, height 768, bpp 24, client ip ::ffff:192.168.1.10:60591 - socket: 12, user name tecadmin
Jun 21 09:42:27 tecadmin-web xrdp-sesman[19243]: [INFO ] [session start] (display 10): calling auth_start_session from pid 19243
Jun 21 09:42:27 tecadmin-web xrdp-sesman[19218]: [ERROR] sesman_data_in: scp_process_msg failed
Jun 21 09:42:27 tecadmin-web xrdp[19240]: [INFO ] xrdp_wm_log_msg: login successful for display 10
Jun 21 09:42:27 tecadmin-web xrdp[19240]: [INFO ] login successful for display 10
Jun 21 09:42:27 tecadmin-web xrdp-sesman[19218]: [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
Jun 21 09:42:27 tecadmin-web systemd[1]: Started Session c7 of User tecadmin.
Jun 21 09:42:27 tecadmin-web xrdp[19240]: [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
Jun 21 09:42:27 tecadmin-web xrdp-sesman[19245]: [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
Jun 21 09:42:27 tecadmin-web xrdp[19240]: [DEBUG] xrdp_wm_log_msg: started connecting

Understanding the Error

The key error messages here are:

  • [ERROR] sesman_data_in: scp_process_msg failed
  • [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans

These errors indicate that there is an issue with the session management process within XRDP. Specifically, the session manager is having trouble processing messages and maintaining connections, which causes it to fail.

Possible Solution

After some investigation, a solution was found involving the configuration file /etc/X11/Xwrapper.config. By changing the allowed_users parameter, you can allow any user to start the X server, which resolves the issue.

Steps to Fix:
  1. Open the configuration file /etc/X11/Xwrapper.config with a text editor of your choice. You might need superuser permissions to edit this file.
    
    sudo nano /etc/X11/Xwrapper.config
    
    
  2. Look for the line that says:
    
    #allowed_users=console
    
    
  3. Change this line to:
    
    allowed_users=anybody
    
    
  4. Save the file and exit the text editor.
Important Note

Make sure you are not using the same user for both the XRDP session and the physical console of the machine. This can cause conflicts. For more information on this, you can refer to the XRDP Tips and FAQ.

By following these steps, you should be able to resolve the XRDP session start errors and successfully start your XRDP sessions.