My Oracle Support Banner

Oracle Linux 7 - VNC Display Configuration Fails with Error "XDG_CURRENT_DESKTOP=GNOME environment variable: Could not connect: Connection refused" (Doc ID 2664139.1)

Last updated on APRIL 30, 2020

Applies to:

Linux OS - Version Oracle Linux 7.6 and later
Linux x86-64

Symptoms

Installed tigervnc package "tigervnc-server-1.8.0-19.0.1.el7.x86_64" and configured VNC display as per KM "2102424.1".
Starting the vnc service failed with following errors,

--messages--
Apr 9 08:34:02 localhost vncserver: New 'localhost:2 (root)' desktop localhost:2
Apr 9 08:34:02 localhost vncserver: Starting applications specified in /home/tesuser/.vnc/xstartup
Apr 9 08:34:02 localhost vncserver: Log file is /home/testuser/.vnc/localhost:2.log
Apr 9 08:34:02 localhost systemd: Started Session 202 of user root.
Apr 9 08:34:02 localhost vncserver: Killing Xvnc process ID 4065
Apr 9 08:34:02 localhost journal: cannot open display: :2
Apr 9 08:34:02 localhost journal: cannot open display: :2
Apr 9 08:34:02 localhost gnome-session: gnome-session-binary[4089]: WARNING: software acceleration check failed: Child process exited with code 1
Apr 9 08:34:02 localhost gnome-session-binary[4089]: WARNING: software acceleration check failed: Child process exited with code 1
Apr 9 08:34:02 localhost journal: Cannot open display:

--/home/testuser/.vnc/localhost:log--
Thu Apr 9 08:33:59 2020
 vncext: VNC extension running!
 vncext: Listening for VNC connections on all interface(s), port 5902
 vncext: created VNC server for screen 0

(imsettings-check:4143): IMSettings-WARNING **: 08:34:02.528: Could not connect: Connection refused
(imsettings-check:4143): GLib-GIO-CRITICAL **: 08:34:02.528:g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed
/usr/bin/xmbind: Can't open display
** (process:4089): WARNING **: 08:34:02.571: Could not make bus activated clients aware of XDG_CURRENT_DESKTOP=GNOME environment variable:
 Could not connect: Connection refused
/home/testuser/.vnc/xstartup: line 5: 4089 Terminated 
/etc/X11/xinit/xinitrc
Killing Xvnc process ID 4065
Xvnc process ID 4065 already killed
  
--vncserver_testuser.service---

[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=simple
WorkingDirectory=/home/testuser/
User=root
Group=root
PAMName=login

# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/usr/bin/vncserver %i
ExecStop=/usr/bin/vncserver -kill %it

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.