You are not logged in.

#1 2013-01-03 23:07:42

moted
Member
Registered: 2010-06-25
Posts: 14

gnome-shell crash and no session id in VNC session

I've been unable to successfully start a usable gnome-session with gnome-shell when connecting through VNC.  If I manually login with gnome-session it will start and function without problems.

Linux 3.6.11-1-ARCH x86_64 GNU/Linux
tigervnc 1.2.0-9
gnome-shell 3.6.2-1
polkit 0.107-4
polkit-gnome 0.105-1
systemd 196-2

~/.vnc/xstartup

#!/bin/sh

export XKL_XMODMAP_DISABLE=1
autocutsel -fork 
exec gnome-session

/etc/systemd/system/vncserver.service

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

[Service]
Type=forking
User=ryan
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/usr/bin/vncserver :1 -geometry 1440x900 -alwaysshared -dpi 96 -fp /usr/share/fonts/misc
ExecStop=/usr/bin/vncserver -kill :1

[Install]
WantedBy=multi-user.target

~/.vnc/athos\:1.log

Xvnc TigerVNC 1.2.0 - built Nov  5 2012 00:19:04
Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11203000, The X.Org Foundation


Thu Jan  3 14:47:12 2013
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5901
 vncext:      created VNC server for screen 0
gnome-session[1440]: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is getting used at login.
gnome-session[1440]: WARNING: Could not parse desktop file /home/ryan/.config/autostart/xfconf-migration-4.6.desktop: Key file does not have key 'Name'
gnome-session[1440]: WARNING: could not read /home/ryan/.config/autostart/xfconf-migration-4.6.desktop
GNOME_KEYRING_CONTROL=/home/ryan/.cache/keyring-JVf85K
GPG_AGENT_INFO=/home/ryan/.cache/keyring-JVf85K/gpg:0:1
GNOME_KEYRING_PID=1470
GNOME_KEYRING_CONTROL=/home/ryan/.cache/keyring-JVf85K
GPG_AGENT_INFO=/home/ryan/.cache/keyring-JVf85K/gpg:0:1
GNOME_KEYRING_CONTROL=/home/ryan/.cache/keyring-JVf85K
GPG_AGENT_INFO=/home/ryan/.cache/keyring-JVf85K/gpg:0:1
GNOME_KEYRING_CONTROL=/home/ryan/.cache/keyring-JVf85K
GPG_AGENT_INFO=/home/ryan/.cache/keyring-JVf85K/gpg:0:1
SSH_AUTH_SOCK=/home/ryan/.cache/keyring-JVf85K/ssh

(gnome-settings-daemon:1477): power-plugin-WARNING **: Failed set DPMS mode: Display is not DPMS capable

(gnome-settings-daemon:1477): media-keys-plugin-WARNING **: Unable to inhibit keypresses: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Operation not permitted

(gnome-settings-daemon:1477): color-plugin-WARNING **: failed to get edid: unable to get EDID for output

(gnome-settings-daemon:1477): color-plugin-WARNING **: failed to create device: GDBus.Error:org.freedesktop.ColorManager.Failed: failed to obtain org.freedesktop.color-manager.create-device auth

(gnome-settings-daemon:1477): color-plugin-WARNING **: could not find device: Failed to FindDeviceByProperty: GDBus.Error:org.freedesktop.ColorManager.Failed: property match 'XRANDR_name'='default' does not exist
Initializing tracker-store...
Tracker-Message: Setting up monitor for changes to config file:'/home/ryan/.config/tracker/tracker-store.cfg'
Tracker-Message: Setting up monitor for changes to config file:'/home/ryan/.config/tracker/tracker-store.cfg'
Starting log:
  File:'/home/ryan/.local/share/tracker/tracker-store.log'
Initializing tracker-miner-fs...
gnome-session[1440]: WARNING: Failed to start app: Unable to start application: Failed to execute child process "/usr/bin/avant-window-navigator" (No such file or directory)
Tracker-Message: Setting up monitor for changes to config file:'/home/ryan/.config/tracker/tracker-miner-fs.cfg'
Starting log:
  File:'/home/ryan/.local/share/tracker/tracker-miner-fs.log'
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Compat map for group 2 redefined
>                   Using new definition
> Warning:          Compat map for group 3 redefined
>                   Using new definition
> Warning:          Compat map for group 4 redefined
>                   Using new definition
Errors from xkbcomp are not fatal to the X server
Failed to play sound: File or data not found

** (nm-applet:1525): WARNING **: Could not initialize NMClient /org/freedesktop/NetworkManager: Rejected send message, 2 matched rules; type="method_call", sender=":1.104" (uid=1000 pid=1525 comm="nm-applet ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=356 comm="/usr/sbin/NetworkManager --no-daemon ")
** Message: applet now removed from the notification area
Remmina plugin XDMCP (type=Protocol) registered.
Remmina plugin RDP (type=Protocol) registered.
Remmina plugin RDPF (type=File) registered.
Remmina plugin RDPS (type=Preference) registered.
Remmina plugin telepathy (type=Entry) registered.
Remmina plugin GKEYRING (type=Secret) registered.
NX: detected keyboard type pc105/us
Remmina plugin NX (type=Protocol) registered.
Remmina plugin VNC (type=Protocol) registered.
Remmina plugin VNCI (type=Protocol) registered.
Remmina plugin SFTP (type=Protocol) registered.
Remmina plugin SSH (type=Protocol) registered.

(evolution-alarm-notify:1529): camel-CRITICAL **: camel_provider_list: Could not load /usr/lib/evolution-data-server/camel-providers/libcamelexchange.so: libcamel-1.2.so.33: cannot open shared object file: No such file or directory

(transmission-gtk:1537): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(transmission-gtk:1537): Gtk-CRITICAL **: gtk_icon_set_new_from_pixbuf: assertion `pixbuf != NULL' failed

(transmission-gtk:1537): Gtk-CRITICAL **: gtk_icon_theme_add_builtin_icon: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(transmission-gtk:1537): Gtk-CRITICAL **: gtk_icon_factory_add: assertion `icon_set != NULL' failed

(transmission-gtk:1537): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(transmission-gtk:1537): Gtk-CRITICAL **: gtk_icon_set_unref: assertion `icon_set != NULL' failed

(gnome-shell:1509): Bluetooth-WARNING **: Could not open RFKILL control device, please verify your installation
Window manager warning: Log level 16: Could not initialize NMClient /org/freedesktop/NetworkManager: Rejected send message, 2 matched rules; type="method_call", sender=":1.107" (uid=1000 pid=1509 comm="/usr/bin/gnome-shell ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=356 comm="/usr/sbin/NetworkManager --no-daemon ")
    JS ERROR: !!!   Exception was: Polkit.Error: No session for pid 1509
    JS ERROR: !!!     message = '"No session for pid 1509"'
    JS ERROR: !!!     fileName = '"/usr/share/gnome-shell/js/ui/components/polkitAgent.js"'
    JS ERROR: !!!     lineNumber = '329'
    JS ERROR: !!!     stack = '"0 anonymous()@/usr/share/gnome-shell/js/ui/components/polkitAgent.js:329
1 wrapper()@/usr/share/gjs-1.0/lang.js:204
2 anonymous("name" = ""polkitAgent"")@/usr/share/gnome-shell/js/ui/components/__init__.js:56
3 wrapper(""polkitAgent"")@/usr/share/gjs-1.0/lang.js:204
4 anonymous("name" = ""polkitAgent"", 1, [object Array])@/usr/share/gnome-shell/js/ui/components/__init__.js:22
5 anonymous()@/usr/share/gnome-shell/js/ui/components/__init__.js:21
6 wrapper()@/usr/share/gjs-1.0/lang.js:204
7 anonymous()@/usr/share/gnome-shell/js/ui/components/__init__.js:13
8 wrapper()@/usr/share/gjs-1.0/lang.js:204
9 anonymous()@/usr/share/gjs-1.0/lang.js:145
10 anonymous()@/usr/share/gjs-1.0/lang.js:239
11 start()@/usr/share/gnome-shell/js/ui/main.js:150
12 <TOP LEVEL>@<main>:1
"'
Window manager warning: Log level 32: Execution of main.js threw exception: Polkit.Error: No session for pid 1509
gnome-session[1440]: WARNING: Detected that screensaver has left the bus
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Compat map for group 2 redefined
>                   Using new definition
> Warning:          Compat map for group 3 redefined
>                   Using new definition
> Warning:          Compat map for group 4 redefined
>                   Using new definition
Errors from xkbcomp are not fatal to the X server

(gnome-shell:1642): Bluetooth-WARNING **: Could not open RFKILL control device, please verify your installation
Window manager warning: Log level 16: Could not initialize NMClient /org/freedesktop/NetworkManager: Rejected send message, 2 matched rules; type="method_call", sender=":1.111" (uid=1000 pid=1642 comm="/usr/bin/gnome-shell ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination="org.freedesktop.NetworkManager" (uid=0 pid=356 comm="/usr/sbin/NetworkManager --no-daemon ")
    JS ERROR: !!!   Exception was: Polkit.Error: No session for pid 1642
    JS ERROR: !!!     message = '"No session for pid 1642"'
    JS ERROR: !!!     fileName = '"/usr/share/gnome-shell/js/ui/components/polkitAgent.js"'
    JS ERROR: !!!     lineNumber = '329'
    JS ERROR: !!!     stack = '"0 anonymous()@/usr/share/gnome-shell/js/ui/components/polkitAgent.js:329
1 wrapper()@/usr/share/gjs-1.0/lang.js:204
2 anonymous("name" = ""polkitAgent"")@/usr/share/gnome-shell/js/ui/components/__init__.js:56
3 wrapper(""polkitAgent"")@/usr/share/gjs-1.0/lang.js:204
4 anonymous("name" = ""polkitAgent"", 1, [object Array])@/usr/share/gnome-shell/js/ui/components/__init__.js:22
5 anonymous()@/usr/share/gnome-shell/js/ui/components/__init__.js:21
6 wrapper()@/usr/share/gjs-1.0/lang.js:204
7 anonymous()@/usr/share/gnome-shell/js/ui/components/__init__.js:13
8 wrapper()@/usr/share/gjs-1.0/lang.js:204
9 anonymous()@/usr/share/gjs-1.0/lang.js:145
10 anonymous()@/usr/share/gjs-1.0/lang.js:239
11 start()@/usr/share/gnome-shell/js/ui/main.js:150
12 <TOP LEVEL>@<main>:1
"'
Window manager warning: Log level 32: Execution of main.js threw exception: Polkit.Error: No session for pid 1642
gnome-session[1440]: WARNING: Detected that screensaver has left the bus
gnome-session[1440]: WARNING: App 'gnome-shell.desktop' respawning too quickly
gnome-session[1440]: WARNING: Unable to inhibit system: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Operation not permitted

(gnome-settings-daemon:1477): libnotify-WARNING **: Failed to connect to proxy
Failed to receive server caps.

Thu Jan  3 14:48:25 2013
 Connections: accepted: 10.10.1.144::38203
 SConnection: Client needs protocol version 3.8
 SConnection: Client requests security type VncAuth(2)
 VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888
 VNCSConnST:  Client pixel format depth 24 (32bpp) little-endian rgb888

journalctl _PID=1440

Jan 03 14:47:15 athos gnome-session[1440]: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is getting used at login.
Jan 03 14:47:15 athos gnome-session[1440]: WARNING: Could not parse desktop file /home/ryan/.config/autostart/xfconf-migration-4.6.desktop: Key file does not have key 'Name'
Jan 03 14:47:15 athos gnome-session[1440]: WARNING: could not read /home/ryan/.config/autostart/xfconf-migration-4.6.desktop
Jan 03 14:47:16 athos gnome-session[1440]: WARNING: Failed to start app: Unable to start application: Failed to execute child process "/usr/bin/avant-window-navigator" (No such file or directory)
Jan 03 14:47:17 athos gnome-session[1440]: WARNING: Detected that screensaver has left the bus
Jan 03 14:47:18 athos gnome-session[1440]: WARNING: Detected that screensaver has left the bus
Jan 03 14:47:18 athos gnome-session[1440]: WARNING: App 'gnome-shell.desktop' respawning too quickly
Jan 03 14:47:30 athos gnome-session[1440]: WARNING: Unable to inhibit system: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Operation not permitted

When I connect to a new session I can see GDM and login as the proper user.  Once I've logged in gnome-shell will immediately crash giving me the "ooops" black screen.  Transmission automatically gets started by the session and it's active and available without borders.  I'm really not sure where to go with this one as I'm by no means an expert in either GNOME or systemd/session management.  Any ideas would be appreciated.

Offline

#2 2013-01-05 15:39:09

earthson
Member
Registered: 2013-01-05
Posts: 1

Re: gnome-shell crash and no session id in VNC session

I have the same issue.

It works fine without systemd.

Offline

#3 2013-01-23 21:33:16

moted
Member
Registered: 2010-06-25
Posts: 14

Re: gnome-shell crash and no session id in VNC session

Just to follow up on this, if I force my gnome-session to use fallback mode it seems to work.  I'm guessing this is likely due glx issues with Xorg and TigerVNC.  Eventually I plan on building the svn version in the AUR because it has the required patches.

Offline

Board footer

Powered by FluxBB