X2Go Bug report logs - #457
Fwd: polkit-gnome-authentication-agent-1 fails to start on specific distros

version graph

Package: x2goserver; Maintainer for x2goserver is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2goserver is src:x2goserver.

Reported by: Michael DePaulo <mikedep333@gmail.com>

Date: Sat, 22 Mar 2014 15:45:01 UTC

Severity: normal

Found in version 4.0.1.13

Full log


Message #5 received at submit@bugs.x2go.org (full text, mbox, reply):

Received: (at submit) by bugs.x2go.org; 22 Mar 2014 15:44:36 +0000
From mikedep333@gmail.com  Sat Mar 22 16:44:35 2014
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM,
	T_DKIM_INVALID autolearn=ham version=3.3.2
Received: from mail-la0-f45.google.com (mail-la0-f45.google.com [209.85.215.45])
	by ymir (Postfix) with ESMTPS id AD82F5DA7B
	for <submit@bugs.x2go.org>; Sat, 22 Mar 2014 16:44:35 +0100 (CET)
Received: by mail-la0-f45.google.com with SMTP id hr17so2472940lab.4
        for <submit@bugs.x2go.org>; Sat, 22 Mar 2014 08:44:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type;
        bh=wSElP7fbVKlTQvf04HHAvsxmrM1WCLFhoyuO+/MvMbY=;
        b=tGOOQxVEjBYtqp2K7FZd9Qg1Xc6Qf3rZ2NUjE4fx7JAakiBWuVHGV9ea1fvPBncyVb
         xp45tFWB4kFWpmyCdY1QrHrFM0ycrUmR6c9q86yaVQgygU2XACsxutU/+NaFAD2+CZb+
         YLVHw+JB7BEnKTLkIC9zOPqV7lZoAy0pWVxPTv/ZQJQ2p6on7MjlDYQTWcVCOsG9m32o
         G++52Ti/wVpemYwc3btrGcztVJ/LR0HKbI4diEUYA5TJAQTON0Jgp50KaGMzP7//ngKd
         abLL5sMrURjIetIyIXbLAybKxJAZtu8m60BeKbwGpf4RTVKKwaTI93hv2HHqSxNogZgx
         5INg==
MIME-Version: 1.0
X-Received: by 10.112.22.130 with SMTP id d2mr1966010lbf.33.1395503074833;
 Sat, 22 Mar 2014 08:44:34 -0700 (PDT)
Received: by 10.114.176.105 with HTTP; Sat, 22 Mar 2014 08:44:34 -0700 (PDT)
In-Reply-To: <CAMKht8iU9UAqcxRF-CgF6cvK=ADzwYEfrZTamTOVVUnsi4wnBA@mail.gmail.com>
References: <CAMKht8iU9UAqcxRF-CgF6cvK=ADzwYEfrZTamTOVVUnsi4wnBA@mail.gmail.com>
Date: Sat, 22 Mar 2014 11:44:34 -0400
Message-ID: <CAMKht8i6Yq-exedt6JtRAKxCwEZUmPhckKfMp48qjj_56vWD7Q@mail.gmail.com>
Subject: Fwd: polkit-gnome-authentication-agent-1 fails to start on specific distros
From: Michael DePaulo <mikedep333@gmail.com>
To: submit@bugs.x2go.org
Content-Type: text/plain; charset=ISO-8859-1
Package: x2goserver
Version: 4.0.1.13

Notes:

1. I am not sure if this is a bug in x2goserver, x2goserver-xsession,
or in nx-libs.

2. This bug is probably in X2Go's integration with ConsoleKit (or lack
thereof.) PolicyKit depends on ConsoleKit (and on systemd-logind in
newer distros.)

3. RHEL7 beta (systemd-logind) is not affected and pkexec commands do
work. However, PolicyKit authentication within apps fails. I will file
a separate bug about this.

4. I also tested Ubuntu 12.04.4 LTS 32-bit (ConsoleKit) with Unity and
with MATE 1.6. On that distro, polkit-gnome-authentication-agent-1
(Unity) & polkit-mate-authentication-agent-1 do start, but pkexec
commands fail for another reason (the app complains that it cannot
open the display.) A simple workaround for this case is to export
XAUTHORITY 1st, I will file a separate bug about this.

5. polkit-gnome-authentication-agent-1 is started as gdm, but it
should be started as the user also.

Test system:
CentOS 6.5 64-bit
x2goserver: 4.0.1.13
x2goserver-xsession: 4.0.1.13 (same behavior when this package is not installed)
nx-libs: 3.5.0.22
GNOME
(This distro uses ConsoleKit, not systemd-logind)

[batmin@mothership-el6 ~]$ pkexec gpk-application
Error executing command as another user: No authentication agent was found.
[batmin@mothership-el6 ~]$ ps -ef | grep agent
gdm        653     1  0 11:06 ?        00:00:00 /usr/bin/spice-vdagent
gdm        671   645  0 11:06 ?        00:00:00
/usr/libexec/polkit-gnome-authentication-agent-1
batmin    1246     1  7 11:08 ?        00:00:01
/usr/lib64/nx/../x2go/bin/x2goagent -extension XFIXES -nolisten tcp
-dpi 96 -D -auth /home/batmin/.Xauthority -geometry 1024x768 -name
X2GO-batmin-52-1395500884_stDGNOME_dp32 :52
root      1532     1  0 Mar21 ?        00:00:01 /usr/sbin/spice-vdagentd
batmin    1710     1  0 11:08 ?        00:00:00 /usr/bin/spice-vdagent
batmin    2032  2015  0 11:08 pts/0    00:00:00 grep agent
[batmin@mothership-el6 ~]$ /usr/libexec/polkit-gnome-authentication-agent-1

(polkit-gnome-authentication-agent-1:2035): polkit-gnome-1-WARNING **:
Unable to determine the session we are in: Remote Exception invoking
org.freedesktop.ConsoleKit.Manager.GetSessionForUnixProcess() on
/org/freedesktop/ConsoleKit/Manager at name
org.freedesktop.ConsoleKit:
org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup
session information for process '2035'
org.freedesktop.ConsoleKit.Manager.GeneralError
Unable%20to%20lookup%20session%20information%20for%20process%20%272035%27
[batmin@mothership-el6 ~]


Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Nov 21 15:10:58 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.