Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#562026: kdm cannot open ConsoleKit session on first login attempt

25 views
Skip to first unread message

Sergiy Yegorov

unread,
Dec 21, 2009, 7:40:02 PM12/21/09
to
Package: kdm
Version: 4:4.3.4-1
Severity: normal

-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (1001, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-1-amd64-prapor (SMP w/2 CPU cores)
Locale: LANG=uk_UA.UTF-8, LC_CTYPE=uk_UA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to uk_UA.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages kdm depends on:
ii consolekit 0.4.1-2 framework for defining and trackin
ii debconf [debconf-2.0] 1.5.28 Debian configuration management sy
ii kdebase-runtime 4:4.3.4-2 runtime components from the offici
ii kdebase-workspace-kgreet-plug 4:4.3.4-1 KDE greet libraries for authentica
ii kdelibs5 4:4.3.4-1 core libraries for all KDE 4 appli
ii libc6 2.10.2-2 GNU C Library: Shared libraries
ii libck-connector0 0.4.1-2 ConsoleKit libraries
ii libdbus-1-3 1.2.16-2 simple interprocess messaging syst
ii libkworkspace4 4:4.3.4-1 Library for the kdebase workspace
ii libpam0g 1.1.0-4 Pluggable Authentication Modules l
ii libqimageblitz4 1:0.0.4-4 QImageBlitz image effects library
ii libqt4-svg 4:4.6.0-1 Qt 4 SVG module
ii libqt4-xml 4:4.6.0-1 Qt 4 XML module
ii libqtcore4 4:4.6.0-1 Qt 4 core module
ii libqtgui4 4:4.6.0-1 Qt 4 GUI module
ii libstdc++6 4.4.2-5 The GNU Standard C++ Library v3
ii libx11-6 2:1.3.2-1 X11 client-side library
ii libxau6 1:1.0.5-1 X11 authorisation library
ii libxdmcp6 1:1.0.3-1 X11 Display Manager Control Protoc
ii libxtst6 2:1.1.0-1 X11 Testing -- Resource extension
ii lsb-base 3.2-23 Linux Standard Base 3.2 init scrip

Versions of packages kdm recommends:
ii kde-window-manager [x-window- 4:4.3.4-1 the KDE 4 window manager (KWin)
ii kdebase 5:55 the K Desktop Environment, base ap
ii konsole [x-terminal-emulator] 4:4.3.4-1 X terminal emulator for KDE 4
ii logrotate 3.7.8-4 Log rotation utility
ii xserver-xorg-core [xserver] 2:1.6.5-1 Xorg X server - core server
ii xterm [x-terminal-emulator] 251-1 X terminal emulator

Versions of packages kdm suggests:
ii kdepasswd 4:4.3.4-1 password changer for KDE 4

-- debconf information:
kdm/stop_running_server_with_children: false
* shared/default-x-display-manager: kdm
kdm/daemon_name: /usr/bin/kdm


Messages in /var/log/daemon.log
Dec 22 00:59:25 excelsior kdm: :0[2294]: Cannot open ConsoleKit session: Unable to open session: Method "OpenSessionWithParameters" with signature "a(sv)" on interface "org.freedesktop.ConsoleKit.Manager" doesn't exist
Dec 22 00:59:25 excelsior kdm: :0[2294]: Client start failed
Dec 22 00:59:25 excelsior kdm: :0[2294]: Cannot close ConsoleKit session: Unable to close session: no session open

On second login attempt - no problems.
Bug reproduced on 3 different installations.

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

George Kiagiadakis

unread,
Dec 24, 2009, 7:20:02 AM12/24/09
to
On Tue, Dec 22, 2009 at 1:08 AM, Sergiy Yegorov <pra...@unixzone.org.ua> wrote:
> Messages in /var/log/daemon.log
> Dec 22 00:59:25 excelsior kdm: :0[2294]: Cannot open ConsoleKit session: Unable to open session: Method "OpenSessionWithParameters" with signature "a(sv)" on interface "org.freedesktop.ConsoleKit.Manager" doesn't exist
> Dec 22 00:59:25 excelsior kdm: :0[2294]: Client start failed
> Dec 22 00:59:25 excelsior kdm: :0[2294]: Cannot close ConsoleKit session: Unable to close session: no session open
>
> On second login attempt - no problems.
> Bug reproduced on 3 different installations.


I can reliably reproduce this bug on my laptop. Looks like consolekit
has changed its dbus interface, as the service
"org.freedesktop.ConsoleKit.Manager" doesn't exist indeed. There is
only "org.freedesktop.ConsoleKit". I will investigate further...

George Kiagiadakis

unread,
Dec 24, 2009, 10:40:01 AM12/24/09
to
reassign 562026 libck-connector0 0.4.1-2
thanks

On Thu, Dec 24, 2009 at 2:02 PM, George Kiagiadakis
<kiagiadak...@gmail.com> wrote:
> On Tue, Dec 22, 2009 at 1:08 AM, Sergiy Yegorov <pra...@unixzone.org.ua> wrote:
>> Messages in /var/log/daemon.log
>> Dec 22 00:59:25 excelsior kdm: :0[2294]: Cannot open ConsoleKit session: Unable to open session: Method "OpenSessionWithParameters" with signature "a(sv)" on interface "org.freedesktop.ConsoleKit.Manager" doesn't exist
>> Dec 22 00:59:25 excelsior kdm: :0[2294]: Client start failed
>> Dec 22 00:59:25 excelsior kdm: :0[2294]: Cannot close ConsoleKit session: Unable to close session: no session open
>>
>> On second login attempt - no problems.
>> Bug reproduced on 3 different installations.
>
>
> I can reliably reproduce this bug on my laptop. Looks like consolekit
> has changed its dbus interface, as the service
> "org.freedesktop.ConsoleKit.Manager" doesn't exist indeed. There is
> only "org.freedesktop.ConsoleKit". I will investigate further...
>

After investigation, it seems that the dbus interface is ok.
org.freedesktop.ConsoleKit.Manager is an interface, not a service, and
the mentioned method with that signature exists.

Facts:
- It only happens right after boot.
- If you login to a tty prior to logging in with kdm, kdm works from
the first time.
- Running ps auxf from the kdm init script, I can see that consolekit
is not running right before kdm starts, so it must be kdm that first
uses it and activates the daemon. (I suspect the error has to do with
first-time activation)
- kdm does not use dbus directly, it uses the libck-connector library,
so the problem is obviously not kdm's fault. Thus, I am reassigning
this bug to libck-connector0.
- I am also using linux 2.6.32

The related code is here:
http://websvn.kde.org/branches/KDE/4.3/kdebase/workspace/kdm/backend/client.c?revision=986143&view=markup
(line 1325)

ili111

unread,
Jan 2, 2010, 1:50:01 PM1/2/10
to
A temporay fix waiting for the final one,(which wil be on debian
repository) would be to edit the /etc/init.d/kdm script and modify the
following lines:

case "$1" in
start)
if [ -e $DEFAULT_DISPLAY_MANAGER_FILE ] &&
[ "$HEED_DEFAULT_DISPLAY_MANAGER" = "true" ] &&
[ "$(cat $DEFAULT_DISPLAY_MANAGER_FILE)" != "$DAEMON" ]; then
echo "Not starting K Display Manager (kdm); it is not the default
display manager."
else
echo -n "Starting K Display Manager: kdm"
# added by user
if [ "$(ps -e|grep /usr/sbin/console-kit-daemon)" = "" ];then
echo "."
/usr/sbin/console-kit-daemon&
fi
#enf of modification
start-stop-daemon --start --quiet $SSD_ARGS -- $ARG || echo -n "
already running"
echo "."
fi
;;


the missing daemon is started by the kdm script if it's missing

0 new messages