View Issue Details

IDProjectCategoryView StatusLast Update
0015667CentOS-7tigervncpublic2019-04-09 08:41
Reporterht 
PrioritynormalSeverityblockReproducibilityalways
Status newResolutionopen 
Product Version7.6.1810 
Target VersionFixed in Version 
Summary0015667: defaultXStartup includes "vncserver -kill \$DISPLAY\n"
Description$ yum info tigervnc
Available Packages
Name : tigervnc
Arch : x86_64
Version : 1.8.0
Release : 13.el7
Size : 240 k
Repo : base/7/x86_64
Summary : A TigerVNC remote display system
URL : http://www.tigervnc.com
License : GPLv2+
Description : Virtual Network Computing (VNC) is a remote display system which
            : allows you to view a computing 'desktop' environment not only on the
            : machine where it is running, but from anywhere on the Internet and
            : from a wide variety of machine architectures. This package contains a
            : client which will allow you to connect to other desktops running a VNC
            : server.
Steps To Reproduce1. yum install tigervnc-server
2. Start vncserver

Expected result:
~/.vnc/xstartup looks like this:
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
/etc/X11/xinit/xinitrc

and the vncserver is running.

Observed behaviour:
~/.vnc/xstartup looks like this:
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
/etc/X11/xinit/xinitrc
vncserver -kill $DISPLAY

and vncserver gets terminated.
The log file in
~/.vnc/....log looks like this:
Xvnc TigerVNC 1.8.0 - built Nov 2 2018 19:05:14
Copyright (C) 1999-2017 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12001000, The X.Org Foundation


Fri Jan 4 08:31:48 2019
 vncext: VNC extension running!
 vncext: Listening for VNC connections on all interface(s), port 5901
 vncext: created VNC server for screen 0
/usr/bin/xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
Killing Xvnc process ID 23
XIO: fatal IO error 2 (No such file or directory) on X server ":1"
      after 90 requests (90 known processed) with 4 events remaining.
Additional InformationThe TigerVNC project already stated that it believes this is an CentOS bug:
"I'm afraid that is Red Hat's packaging and not ours. So you'll have to report the issue to them. We can't do anything about it."
https://github.com/TigerVNC/tigervnc/issues/773


Workaround:
Delete (or comment out) the line "vncserver -kill $DISPLAY"
TagsNo tags attached.
abrt_hash
URL

Activities

TrevorH

TrevorH

2019-01-04 22:14

manager   ~0033516

I've just tried this here by running

mv ~/.vnc/passwd ~/
rm -rf ~/.vnc
sudo yum remove -y \*tiger\*
sudo rm -f /etc/systemd/system/vncserver@.service
sudo yum install tigervnc-server
sudo cp -p /usr/lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@.service
sudo vi /etc/systemd/system/vncserver@.service
<change all '<USER>' to 'trevor'
mv ~/passwd ~/.vnc/passwd
sudo systemctl start vncserver@:1

Yes, my ~/.vnc/xstartup file contains that line. It doesn't affect anything and vnc works as expected. It looks to me more like you have an error with a missing font so X never starts and then it drops through and runs that kill command. Actually, looking in /etc/X11/xinit/xinitrc it would appear that it will only try to execute xterm if the other conditions it checks for there are not met. First it checks for the existence of $HOME/.Xclients (doesn't exist here, skips to next check), then checks for the existence of /etc/X11/xinit/Xclients which does exist and is supplied by xorg-x11-xinit - is that package installed? If xorg-x11-xinit is installed and that file exists then it runs it and checks for gnome or kde being installed and set as PERFERRED= in /etc/sysconfig/desktop.

I do not have xclock, xterm or twm installed (things that are run from /etc/X11/xinit/Xclients if they exist).
ht

ht

2019-01-07 08:58

reporter   ~0033527

I think the problem is not associated with the missing font. When I remove the "kill line" the vncserver starts without any troubles. With the "kill line" it does not start.
You can reproduce the problem with
http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1810.iso

$ yum install tigervnc-server
$ vncserver :1

The log files looks like this:
Xvnc TigerVNC 1.8.0 - built Nov 2 2018 19:05:14
Copyright (C) 1999-2017 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12001000, The X.Org Foundation


Mon Jan 7 09:38:15 2019
 vncext: VNC extension running!
 vncext: Listening for VNC connections on all interface(s), port 5901
 vncext: created VNC server for screen 0
Killing Xvnc process ID 13049

Issue History

Date Modified Username Field Change
2019-01-04 14:39 ht New Issue
2019-01-04 22:14 TrevorH Note Added: 0033516
2019-01-07 08:58 ht Note Added: 0033527