View previous topic :: View next topic |
Author |
Message |
dman777 Veteran
Joined: 10 Jan 2007 Posts: 1004
|
Posted: Thu Jan 23, 2020 3:30 pm Post subject: Why is VNC Server running on :1? Haven't started it |
|
|
I am installed tigervnc as a server on my headless server.
However, when I went to start a vnc session I saw that one was already running. Why is this? And how can I kill it?
Code: | develop /home/one/gitlab/whacs.cs.unitmanager.client # /etc/init.d/tigervnc status
* status: stopped
one@develop: ~/gitlab/whacs.cs.unitmanager.client (master)
$ vncserver :1 -localhost
A VNC server is already running as :1
one@develop: ~/gitlab/whacs.cs.unitmanager.client (master)
$ vncserver -kill :1
Can't find file /home/one/.vnc/develop:1.pid
You'll have to kill the Xvnc process manually
|
_________________ <h5>Checkout <em>#grandmasboy</em> on <em>freenode</em>...chat with jayP bot from the movie!</h5> |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Fri Jan 24, 2020 2:58 am Post subject: |
|
|
Perhaps knowing its command line and process ancestry would provide a hint about its origins. What does ps tell you about the existing VNC server? Are you sure a VNC server is the origin of the conflict? It is traditional to start them with somewhat higher display numbers, leaving very low numbers for additional X servers. |
|
Back to top |
|
|
pgu l33t
Joined: 30 Jul 2009 Posts: 721 Location: Oslo, Norway
|
Posted: Wed Jul 13, 2022 5:41 am Post subject: |
|
|
I'm having this issue too.
Code: | $ vncserver :12
A VNC server is already running as :12 |
But no output from any of these:
$ ps auxc|grep -i vnc
Code: | $ ps auxc|grep -i xvfb
$ netstat -l |grep :5912 |
Is there a file which keeps track of the display numbers so when vncserver crashes it leaves behind the display context file somewhere?
It does not seem to be in ~/.vnc:
Code: | $ ls -a ~/.vnc
. .. passwd
|
|
|
Back to top |
|
|
Ralphred Guru
Joined: 31 Dec 2013 Posts: 501
|
Posted: Wed Jul 13, 2022 2:39 pm Post subject: |
|
|
Do you have a stale socket in /tmp/.X11-unix/X12 |
|
Back to top |
|
|
pgu l33t
Joined: 30 Jul 2009 Posts: 721 Location: Oslo, Norway
|
Posted: Thu Jul 14, 2022 8:05 am Post subject: |
|
|
Ralphred wrote: | Do you have a stale socket in /tmp/.X11-unix/X12 |
No:
Code: | # ls -a /tmp/.X11-unix/
. .. |
|
|
Back to top |
|
|
|