In my last article I have shared step by step guide to configure VNC server in Linux.
This is a common error related to vncserver. Once you are trying to start your vncserver you might get this error. This generally occurs if you have not followed proper configuration step before starting the service. So this leaves you with very few option to solve. Either you can manually kill the process or you can follow proper configuration steps and use a different login session no. for vncserver.
# service vncserver restart Shutting down VNC server: 2:root [FAILED] Starting VNC server: 2:root A VNC server is already running as :2 [FAILED]
# vncserver -kill :2 Can't find file /root/.vnc/server.example.com:2.pid You'll have to kill the Xvnc process manually
# vi /etc/sysconfig/vncservers VNCSERVERS="3:root"
# service vncserver restart Shutting down VNC server: 3:root [FAILED] Starting VNC server: 3:root New 'server.example.com:3 (root)' desktop is server.example.com:3 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/server.example.com:3.log [ OK ]