Admin-Ahead Community

General Category => General Discussion => Topic started by: jominj on December 24, 2014, 06:43:05 am

Title: VNC Connection Error
Post by: jominj on December 24, 2014, 06:43:05 am
Connection to VNC server fails. While restarting the service from the server,  we get the following error:

[myuser@xxxxxx tmp]# service vncserver restart
Shutting down VNC server: 3:myuser                         [FAILED]
Starting VNC server: 3:myuser
Warning: xxx.xxx.xxx:3 is taken because of /tmp/.X3-lock
Remove this file if there is no X server xxx.xxx.xxx.xxx:3
A VNC server is already running as :3                         [FAILED]


This error is because of a lock file. To resolve this we have to remove the lock file and socket.

Code: [Select]
rm -rf /tmp/.X3-lock
rm -rf /tmp/.X11-unix/X3
Then restart the VNC service.
Code: [Select]
service vncserver restart