Oracle Linux 7.4: gnome desktop not started when vncserver is started with systemctl

765 views
Skip to first unread message

martin...@ora-solutions.net

unread,
Mar 23, 2018, 9:24:51 AM3/23/18
to TigerVNC User Discussion/Support
Dear TigerVNC Group,

i have problems with starting GNOME Desktop with vncserver when vncserver process is started by systemctl on Oracle Linux 7.4 (comparable to RHEL7U4 or CentOS 7.4).

This is the messages file when starting up vncserver with systemctl.


Mar 22 21:35:34 hostname systemd: Starting Remote desktop service (VNC)...
Mar 22 21:35:34 hostname vncserver: Can't find file /home/myuser/.vnc/hostname.intra:1.pid
Mar 22 21:35:34 hostname vncserver: You'll have to kill the Xvnc process manually
Mar 22 21:35:37 hostname vncserver: New 'hostname.intra:1 (myuser)' desktop is hostname.intra:1
Mar 22 21:35:37 hostname vncserver: Starting applications specified in /home/myuser/.vnc/xstartup
Mar 22 21:35:37 hostname vncserver: Log file is /home/myuser/.vnc/hostname.intra:1.log
Mar 22 21:35:37 hostname systemd: Started Remote desktop service (VNC).
Mar 22 21:35:37 hostname gnome-session: gnome-session-binary[7707]: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is getting used at login.
Mar 22 21:35:37 hostname gnome-session-binary[7707]: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is getting used at login.
Mar 22 21:35:37 hostname gnome-session: generating cookie with syscall
Mar 22 21:35:37 hostname gnome-session: generating cookie with syscall
Mar 22 21:35:37 hostname gnome-session: generating cookie with syscall
Mar 22 21:35:37 hostname gnome-session: generating cookie with syscall
Mar 22 21:35:37 hostname gnome-keyring-secrets.desktop: GNOME_KEYRING_CONTROL=/home/myuser/.cache/keyring-JKSMGZ
Mar 22 21:35:37 hostname gnome-keyring-ssh.desktop: GNOME_KEYRING_CONTROL=/home/myuser/.cache/keyring-JKSMGZ
Mar 22 21:35:37 hostname gnome-keyring-ssh.desktop: SSH_AUTH_SOCK=/home/myuser/.cache/keyring-JKSMGZ/ssh
Mar 22 21:35:37 hostname gnome-keyring-pkcs11.desktop: GNOME_KEYRING_CONTROL=/home/myuser/.cache/keyring-JKSMGZ
Mar 22 21:35:37 hostname gnome-keyring-pkcs11.desktop: SSH_AUTH_SOCK=/home/myuser/.cache/keyring-JKSMGZ/ssh
Mar 22 21:35:37 hostname pulseaudio[7909]: [pulseaudio] pid.c: Stale PID file, overwriting.
Mar 22 21:35:37 hostname dbus-daemon: dbus[932]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
Mar 22 21:35:37 hostname dbus[932]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
Mar 22 21:35:37 hostname journal: JS WARNING: [resource:///org/gnome/shell/ui/extensionSystem.js 301]: octal literals and octal escape sequences are deprecated
Mar 22 21:35:37 hostname journal: JS WARNING: [resource:///org/gnome/shell/ui/extensionSystem.js 301]: octal literals and octal escape sequences are deprecated
Mar 22 21:35:37 hostname journal: JS WARNING: [resource:///org/gnome/shell/ui/extensionSystem.js 301]: octal literals and octal escape sequences are deprecated
Mar 22 21:35:37 hostname journal: JS WARNING: [resource:///org/gnome/shell/gdm/loginDialog.js 1027]: anonymous function does not always return a value
Mar 22 21:35:37 hostname journal: JS ERROR: Error: Argument 'string' (type utf8) may not be null#012_pack_variant@resource:///org/gnome/gjs/modules/overrides/GLib.js:104#012_pack_variant@resource:///org/gnome/gjs/modules/overrides/GLib.js:151#012@resource:///org/gnome/gjs/modules/overrides/GLib.js:261#012_proxyInvoker@resource:///org/gnome/gjs/modules/overrides/Gio.js:78#012_makeProxyMethod/<@resource:///org/gnome/gjs/modules/overrides/Gio.js:124#012LoginManagerSystemd<.getCurrentSessionProxy@resource:///org/gnome/shell/misc/loginManager.js:123#012wrapper@resource:///org/gnome/gjs/modules/lang.js:178#012ScreenShield<._init@resource:///org/gnome/shell/ui/screenShield.js:538#012wrapper@resource:///org/gnome/gjs/modules/lang.js:178#012_Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110#012Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/lang.js:213#012_initializeUI@resource:///org/gnome/shell/ui/main.js:167#012start@resource:///org/gnome/shell/ui/main.js:125#012@<main>:1
Mar 22 21:35:37 hostname journal: Execution of main.js threw exception: JS_EvaluateScript() failed
Mar 22 21:35:37 hostname gnome-session-binary[7707]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Mar 22 21:35:37 hostname gnome-session: gnome-session-binary[7707]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Mar 22 21:35:37 hostname journal: JS WARNING: [resource:///org/gnome/shell/ui/extensionSystem.js 301]: octal literals and octal escape sequences are deprecated
Mar 22 21:35:37 hostname journal: JS WARNING: [resource:///org/gnome/shell/ui/extensionSystem.js 301]: octal literals and octal escape sequences are deprecated
Mar 22 21:35:37 hostname journal: JS WARNING: [resource:///org/gnome/shell/ui/extensionSystem.js 301]: octal literals and octal escape sequences are deprecated
Mar 22 21:35:37 hostname journal: JS WARNING: [resource:///org/gnome/shell/gdm/loginDialog.js 1027]: anonymous function does not always return a value
Mar 22 21:35:38 hostname journal: JS ERROR: Error: Argument 'string' (type utf8) may not be null#012_pack_variant@resource:///org/gnome/gjs/modules/overrides/GLib.js:104#012_pack_variant@resource:///org/gnome/gjs/modules/overrides/GLib.js:151#012@resource:///org/gnome/gjs/modules/overrides/GLib.js:261#012_proxyInvoker@resource:///org/gnome/gjs/modules/overrides/Gio.js:78#012_makeProxyMethod/<@resource:///org/gnome/gjs/modules/overrides/Gio.js:124#012LoginManagerSystemd<.getCurrentSessionProxy@resource:///org/gnome/shell/misc/loginManager.js:123#012wrapper@resource:///org/gnome/gjs/modules/lang.js:178#012ScreenShield<._init@resource:///org/gnome/shell/ui/screenShield.js:538#012wrapper@resource:///org/gnome/gjs/modules/lang.js:178#012_Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110#012Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/lang.js:213#012_initializeUI@resource:///org/gnome/shell/ui/main.js:167#012start@resource:///org/gnome/shell/ui/main.js:125#012@<main>:1
Mar 22 21:35:38 hostname journal: Execution of main.js threw exception: JS_EvaluateScript() failed
Mar 22 21:35:38 hostname gnome-session-binary[7707]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Mar 22 21:35:38 hostname gnome-session-binary: Unrecoverable failure in required component org.gnome.Shell.desktop



When I compare log entries of starting vncserver on command line with starting vncserver via systemctl, I see that these line are only appearing in systemctl start.


Mar 22 21:35:38 hostname journal: JS ERROR: Error: Argument 'string' (type utf8) may not be null#012_pack_variant@resource:///org/gnome/gjs/modules/overrides/GLib.js:104#012_pack_variant@resource:///org/gnome/gjs/modules/overrides/GLib.js:151#012@resource:///org/gnome/gjs/modules/overrides/GLib.js:261#012_proxyInvoker@resource:///org/gnome/gjs/modules/overrides/Gio.js:78#012_makeProxyMethod/<@resource:///org/gnome/gjs/modules/overrides/Gio.js:124#012LoginManagerSystemd<.getCurrentSessionProxy@resource:///org/gnome/shell/misc/loginManager.js:123#012wrapper@resource:///org/gnome/gjs/modules/lang.js:178#012ScreenShield<._init@resource:///org/gnome/shell/ui/screenShield.js:538#012wrapper@resource:///org/gnome/gjs/modules/lang.js:178#012_Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110#012Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/lang.js:213#012_initializeUI@resource:///org/gnome/shell/ui/main.js:167#012start@resource:///org/gnome/shell/ui/main.js:125#012@<main>:1
Mar 22 21:35:38 hostname journal: Execution of main.js threw exception: JS_EvaluateScript() failed
Mar 22 21:35:38 hostname gnome-session-binary[7707]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Mar 22 21:35:38 hostname gnome-session-binary: Unrecoverable failure in required component org.gnome.Shell.desktop


Are there any hints to how this can be solved?

Regards
Martin

martin...@ora-solutions.net

unread,
Mar 23, 2018, 9:36:48 AM3/23/18
to TigerVNC User Discussion/Support
I just found this post and will try it out:

https://groups.google.com/forum/#!topic/tigervnc-users/oj5Py3JX-jw

Regards
martin

martin...@ora-solutions.net

unread,
Mar 23, 2018, 10:06:51 AM3/23/18
to TigerVNC User Discussion/Support
On Friday, March 23, 2018 at 2:24:51 PM UTC+1, martin...@ora-solutions.net wrote:
Problem solved!
Reply all
Reply to author
Forward
0 new messages