LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 01-29-2014, 12:06 PM   #1
DirtDad
LQ Newbie
 
Registered: Jan 2014
Posts: 2

Rep: Reputation: Disabled
Real VNC server fails to start, Xvnc-core: client 1 rejected from local host


I set up 3 nodes in a cluster to work fine, but I messed up the VNC install/setup on one of them somehow, I am stumped for now.

On the server (RHEL 6.4) I start vncserver (5.1) I get no errors to stdout:

[root@abc vnc]# vncserver
VNC(R) Server 5.1.0 (r115125)
Built on Dec 6 2013 14:44:55
Copyright (C) 2002-2013 RealVNC Ltd.
VNC is a registered trademark of RealVNC Ltd. in the U.S. and in other
countries.
...
Log file is /root/.vnc/abc:1.log
New desktop is abc:1 (10.67.2.84:1)

But vncserver fails to start. ps -ef shows no vnc anything running.

The log shows:

VNC(R) Server 5.1.0 (r115125)
Built on Dec 6 2013 14:47:40
Copyright (C) 2002-2013 RealVNC Ltd.
...
AUDIT: Wed Jan 29 08:45:06 2014: 17398 Xvnc-core: client 1 rejected from local host
No protocol specified
VNC(R) Server 5.1.0 (r115125)
Built on Dec 6 2013 14:44:51
Copyright (C) 2002-2013 RealVNC Ltd.
VNC is a registered trademark of RealVNC Ltd. in the U.S. and in other
countries.
<11> 2014-01-29T16:45:06.990Z abc
vncserverui-virtual[17399]: vncserverui: unable to open display ":1"

AUDIT: Wed Jan 29 08:45:07 2014: 17398 Xvnc-core: client 1 rejected from local host
No protocol specified
xsetroot: unable to open display ':1'

AUDIT: Wed Jan 29 08:45:07 2014: 17398 Xvnc-core: client 1 rejected from local host
AUDIT: Wed Jan 29 08:45:07 2014: 17398 Xvnc-core: client 1 rejected from local host
AUDIT: Wed Jan 29 08:45:07 2014: 17398 Xvnc-core: client 1 rejected from local host
AUDIT: Wed Jan 29 08:45:07 2014: 17398 Xvnc-core: client 1 rejected from local host
AUDIT: Wed Jan 29 08:45:07 2014: 17398 Xvnc-core: client 1 rejected from local host
AUDIT: Wed Jan 29 08:45:07 2014: 17398 Xvnc-core: client 1 rejected from local host
AUDIT: Wed Jan 29 08:45:07 2014: 17398 Xvnc-core: client 1 rejected from local host
...
<13> 2014-01-29T16:45:08.022Z abc
Xvnc[17398]: ServerManager: Server stopped

Once I delete ~/.Xauthority I can run Xvnc directly:

[root@abc vnc]# /usr/bin/Xvnc-core :1 -auth /root/.Xauthority -pn

This works, but I get no window manager to speak of. I can stop and start that repeatedly and connect to it with VNC viewer that is OK. But vncserver still fails. Once I run vncserver I have to delete ~/.Xauthority before I can run Xnvc-core. It is like vncserver is corrupting the .Xauthority file. Xvnc-core is not. I can stop and start Xvnc-core repeatedly without deleting .Xauthority The error I get from Xvnc-core after running vncserver without deleting .Xauthority is:

<11> 2014-01-29T16:40:10.152Z abc vncserverui-virtual[16453]: vncserverui: unable to open display ":1"


That is all I can come up with for now. Any suggestions?

Last edited by DirtDad; 01-29-2014 at 12:10 PM.
 
Old 03-07-2014, 05:59 AM   #2
yitpong
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Rep: Reputation: 0
This probably related to your xauth.

1. Release any stale locks to your Xauthority
% xauth -b list

2. Check if your entries has the same key for "hostnameort" and "hostname/unixort"
% xauth list
abc:1 MIT-MAGIC-COOKIE-1 xxxxxxxxxxxxxxxxxxxxx
abc/unix:1 MIT-MAGIC-COOKIE-1 xxxxxxxxxxxxxxxxxxxxx
abc.fdqn/unix:1 MIT-MAGIC-COOKIE-1 xxxxxxxxxxxxxxxxxxxxx

3. Insert any missing entries
% xauth add abc/unix:1 MIT-MAGIC-COOKIE-1 xxxxxxxxxxxxxxxxxxxxx

4. Restart your vncserver
% vncserver -kill :1
% vncserver :1
 
Old 03-26-2014, 07:44 AM   #3
willl_d
LQ Newbie
 
Registered: May 2007
Location: Vienna, VA
Distribution: RHEL, Fedora, Ubuntu, AIX, Mint, Solaris
Posts: 14

Rep: Reputation: 1
Thanks for the tip

I've been struggling with VNC Enterprise Edition for the last day or so. I'm using vncserver-virtuald which basically listens for new VNC connections on a port, and when a new VNC request is sent, it spawns a vnc server for the user requesting it and transfer the connection there.

Youy tip lead me to figure out that the process isn't adding the FQDN/unix:<display> to the xauth list.

Of course, now I have to figure out why that's not happening but at least I'm getting somewhere!

Thanks again!
 
Old 03-26-2014, 08:53 AM   #4
willl_d
LQ Newbie
 
Registered: May 2007
Location: Vienna, VA
Distribution: RHEL, Fedora, Ubuntu, AIX, Mint, Solaris
Posts: 14

Rep: Reputation: 1
And in case anyone else comes across this, here's the solution, though I think it's ugly.

http://kb.realvnc.com/questions/298/...n+Virtual+Mode
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xvnc couldn't start-->trying to run vnc..... pablovschby Linux - Networking 14 10-20-2012 04:19 AM
[SOLVED] postfix client host rejected ilvista Linux - Server 1 03-27-2012 08:29 AM
VNC Client/Server install question for Fedora Core 4 rafiqul Linux - Newbie 13 01-17-2006 08:37 AM
nVidia: client 6 rejected from local host johnny2 Linux - Hardware 0 02-01-2005 05:09 PM
Postfix error: Client host rejected: cannot find your hostname. olegarr Linux - Networking 2 06-28-2003 04:38 PM


All times are GMT -5. The time now is 06:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration