Monday, April 28, 2014

xrdp session unable to log on. Hang on sending login info to session manager for CentOS 5

I tried logging on to the linux box using the Remote Desktop Protocol and I was unable to log on. Instead, I had this message below and nothing happens. If I click the "ok" button, it returns to login screen.

connecting to sesman ip port 3350
sesman connect ok
sending login info to session manager, please wait…

I manage to solve the issue by

Step 1: Cleaning up the /tmp/.X11-unix

Step 2: Stop the VNC-Server and xrdp. Uninstall the VNCServer and xrdp to clean up all the processes
# service xrdp stop
# service vnc-server stop 

# yum remove vnc*
# yum remove xrdp

Step 3: Find and clean up the vncserver and xrdp orphan sessions
# ps -afe|grep vnc*
# kill -9 process_id_of_orphaned_vnc_process

# ps -afe|grep xrdp
# kill -9 process_id_of_orphaned_xrdp_process

Step 4: Yum install vnc-server and xrdp and start the services
# yum install vnc-server
# yum install xrdp

# service vnc-server start
# service xrdp start 
Try logging to the Linux Box using Remote Desktop Protocol again.

No comments: