Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why is VNC Server running on :1? Haven't started it
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dman777
Veteran
Veteran


Joined: 10 Jan 2007
Posts: 1004

PostPosted: Thu Jan 23, 2020 3:30 pm    Post subject: Why is VNC Server running on :1? Haven't started it Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Fri Jan 24, 2020 2:58 am    Post subject: Reply with quote

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
View user's profile Send private message
pgu
l33t
l33t


Joined: 30 Jul 2009
Posts: 721
Location: Oslo, Norway

PostPosted: Wed Jul 13, 2022 5:41 am    Post subject: Reply with quote

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
View user's profile Send private message
Ralphred
Guru
Guru


Joined: 31 Dec 2013
Posts: 501

PostPosted: Wed Jul 13, 2022 2:39 pm    Post subject: Reply with quote

Do you have a stale socket in /tmp/.X11-unix/X12
Back to top
View user's profile Send private message
pgu
l33t
l33t


Joined: 30 Jul 2009
Posts: 721
Location: Oslo, Norway

PostPosted: Thu Jul 14, 2022 8:05 am    Post subject: Reply with quote

Ralphred wrote:
Do you have a stale socket in /tmp/.X11-unix/X12


No:
Code:
# ls -a  /tmp/.X11-unix/
.  ..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum