[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

vncserver: cannot restart on same display



  how come it is not possible to run vncserver reusing the display
number? the following should work:

  vncserver :1
  vncserver -kill :1
  vncserver :1

  the first two work, the third one does not, her's the error mesage
from vncserver (which is a perl wrapper):

billteam:~> vncserver :2
ELVIS: cannot bind to 6000 + 2 [Address already in use]
A VNC server is already running as :2
billteam:~> 

  (I added the ELVIS message)

  Xvnc complains about existing lock file (even though Xvnc that was
running on given display is gone). here's the message from Xvnc when I
manually remove /tmp/.X1-lock:

billteam:~> Xvnc :1
_XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't
already running

  lsof | greo 6001 doesn't show anything. I verified that vnc is not
running after vncserver -kill

  the probem seems to exist only for :1, I can kill vnc on :2 and then
start Xvnc :2 again (but not vncserver).

  I have seen this problem on two machines (so far).

  any ideas on what's going on?

	erik



Reply to: