Bug 732642 - kdm login after sysvinit: Warning: Cannot open ConsoleKit session...
Summary: kdm login after sysvinit: Warning: Cannot open ConsoleKit session...
Status: RESOLVED WONTFIX
Alias: None
Product: openSUSE 12.1
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: x86-64 Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Holger Macht
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-24 14:56 UTC by Harald Koenig
Modified: 2012-02-17 11:23 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
screen shot (message box) (21.93 KB, image/png)
2011-11-24 14:56 UTC, Harald Koenig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Koenig 2011-11-24 14:56:07 UTC
Created attachment 463963 [details]
screen shot (message box)

this is a 11.4 system, updated 1st to 12.1-late-beta and now to 12.1-final.

when booting via sysvinit, after login with kdm (using xfce) I get that message box "Warning: Cannot open ConsoleKit session..." (see attached PNG).

when booting with systemd, that message does not show up (but right now postfix does not start with systemd, only with sysvinit...)
Comment 1 David Kerkhof 2011-11-26 17:51:31 UTC
I have the same problem in 12.1 with most logins, using KDE. When this happens networkmanager is not available and I have to restart it, with a crash of plasma as a result. So the only way is to log out, restart networkmanager and log in as user again.
On another computer I had the same error but then they disappeared, have seen it there only once more. But on the other one it happens 2 out of 3 boots. This really needs fixing, please.
Comment 2 Dr. Werner Fink 2011-11-28 07:56:06 UTC
Why I've been asigned to this bug? If below sysvinit is a service not
started this belongs to the service.

For the postfix problem below systemd: do the commands

     systemctl enable postfix.service
     systemctl start postfix.service

help?
Comment 3 David Kerkhof 2011-11-28 08:37:43 UTC
For me the postfix is not the problem, I can not use systemd because it doesn't work with an encrypted /tmp.

But this bug is, for me, about a crashing consolekit, as it appears, and in my case appears to be the result of something with network manager, although I am not sure which one is cause or result.
Comment 4 Holger Macht 2011-12-01 13:13:03 UTC
This sounds like a race condition. I am not able to reproduce this here, never got this error. Does this also happen with gdm? Could someone test that (setting /etc/sysconfig/displaymanager:DISPLAYMANAGER="gdm")?
Comment 5 David Kerkhof 2011-12-01 17:35:26 UTC
Assuming gdm means Gnome? I installed Gnome in the same system, logged in once using systemd, no problem, rebooted with sytem V, logged in into Gnome, same error.
But then in Gnome a message appears that something went wrong with the option to log out, which I did. Retried to log in and now was ok. So it seems to usually be once, this error, and loggin in the 2nd time solves the problem somehow. Hope this helps.
Comment 6 David Kerkhof 2011-12-01 17:36:16 UTC
Sorry , too late to select needed info thingy
Comment 7 David Kerkhof 2011-12-06 10:52:00 UTC
When I do "service network restart" I see after the networkmanager starts that it counts to 30. When I boot my system I think it is this that causes the error of consolekit because when I wait this time before I try to login it works, when I login immediately I get the error.
On my wife's netbook I usually don't get the error because it is much slower so the count down is already over when I can log in. I would really appreciate it if this bug got fixed.
Comment 8 Holger Macht 2011-12-08 13:17:17 UTC
IMHO, this sounds like a systemd related issue and no ConsoleKit problem. More concrete, I don't think systemd is directly responsible but rather the sequence in which the services are started. However, I don't know how to debug systemd, so assigning to the systemd maintainer.
Comment 9 Frederic Crozat 2011-12-08 13:23:24 UTC
should like bnc#728731 ?
Comment 10 David Kerkhof 2011-12-08 15:19:41 UTC
It would be nice to get this fixed for those using sys v. For me systemd is now fixed so I switched to systemd, where this bug does not happen.
Comment 11 Dr. Werner Fink 2011-12-09 09:51:16 UTC
(In reply to comment #8)

Holger? Are you aware that the problem occurs with SysVinit booted?
That is that one of the boot scripts used for ConsoleKit will not
work.
Comment 12 Holger Macht 2011-12-15 14:19:05 UTC
Ok, I mixed things up, so this is no systemd issue, thanks for the pointer. A couple of questions, though:

1. After installing GNOME, did you also set gdm as login manager? More preciecly, is /etc/sysconfig/displaymanager:DISPLAYMANAGER="gdm" set? (if not, set it and run SuSECconfig)

2. This only happens with automatic login, right? To test, and without disabling automatic login, you can boot with a '3' appended to the grub command line. Once booted, login as root and enter 'init 5' to bring X up. Also happening?

3. There is nothing obviously changed with the ConsoleKit package, at least nothing I think is related. Could you also give the output of 'rpm -qa | grep ConsoleKit'?

Thanks.
Comment 13 David Kerkhof 2011-12-15 16:58:10 UTC
1. Tried it again with gnome, set as you told, and then the error does NOT appear.

2. I do not auto log in since I have an encrypted home

3. ConsoleKit-x11-0.4.5-6.2.2.x86_64
ConsoleKit-32bit-0.4.5-6.2.2.x86_64
ConsoleKit-0.4.5-6.2.2.x86_64
Comment 14 Harald Koenig 2011-12-15 17:36:47 UTC
(In reply to comment #12)
> Ok, I mixed things up, so this is no systemd issue, thanks for the pointer. A
> couple of questions, though:
> 
> 1. After installing GNOME, did you also set gdm as login manager? More
> preciecly, is /etc/sysconfig/displaymanager:DISPLAYMANAGER="gdm" set? (if not,
> set it and run SuSECconfig)

I did not "install" gnome (neither I do use it): 

I updated from 11.4 to 12.1 with all of KDE/GNOME/XFCE being installed.
I *use* xfce4 at login, not gnome, and I don't use gdm:

$ grep DISPLAYMANAGER= /etc/sysconfig/displaymanager
DISPLAYMANAGER="kdm4"

using gdm is not really an option -- and right now I don't want to kill my session, so the gdm test might take some time (sometimes after Xmas is always a good 1st estimate;)

> 2. This only happens with automatic login, right?

no. I *never* use automatic logins!
this happens with normal login from kdm4 to xfce4, but only when booting with sysvinit (not really needed anymore right now since most systemd issues are solved or workarounds exist, but still sysvinit should work without errors and complains too).

> 3. There is nothing obviously changed with the ConsoleKit package, at least
> nothing I think is related. Could you also give the output of 'rpm -qa | grep
> ConsoleKit'?


ConsoleKit-devel-0.4.5-6.2.2.x86_64
ConsoleKit-x11-0.4.5-6.2.2.x86_64
ConsoleKit-0.4.5-6.2.2.x86_64
ConsoleKit-32bit-0.4.5-6.2.2.x86_64
Comment 15 Holger Macht 2011-12-16 10:22:27 UTC
(In reply to comment #13)
> 1. Tried it again with gnome, set as you told, and then the error does NOT
> appear.

Ok, interesting to hear that both of you are using kdm4 as login manager. Can you please attach /var/log/boot.log and /var/log/messages to this bug? Thanks.

> 2. I do not auto log in since I have an encrypted home

Ok, the reason I'm asking is that I suspect this error to happen if you boot and log in very fast. So, for clarification, does it also happen if you boot (includes entering password for encrypted home) and afterwards stay at the login prompt for about, let's say, one whole minute? 

> 3. ConsoleKit-x11-0.4.5-6.2.2.x86_64
> ConsoleKit-32bit-0.4.5-6.2.2.x86_64
> ConsoleKit-0.4.5-6.2.2.x86_64
Comment 16 David Kerkhof 2011-12-16 13:09:05 UTC
I use only kde, but installed gnome for this bug to try. Afterwards I overwrote everything with partimage to be back at my own system, so I am afraid I have no log files anymore. On my wife's netbook with a C50 CPU, which is much slower than my duo2core, I had the problem only a few times, and I think it is because I can log in much later, so I also had the feeling it had to do with time. But when I tried it on mine, it didn't make much of a difference. But when the error kept appearing, in the end I tried the following: I killed X, and retried, and usually the 2nd or 3rd time everything was ok.

btw the password for the encrypted home is entered during log in. I couldn't log in into my encrypted home using gdm, complained about not being able to write some .Ice...  Then I tried a non encrypted home login and that worked well. Rebooted and tried again, same thing.
Comment 17 Holger Macht 2012-01-25 09:44:13 UTC
What kind of crypto setup do you have? The one I know (might have changed meanwhile) asks for the password of the encrypted home partition during boot, not during login. Did you manage your encryption through YaST or manually?
Comment 18 David Kerkhof 2012-01-25 16:06:10 UTC
I actually have no idea how to find out which kind of crypto setup I have, all I did was set it up using Yast. And yes, I am asked at login, not during boot, which makes sense since I have more users on the same system using encrypted home.
Comment 19 Harald Koenig 2012-01-26 17:35:17 UTC
(In reply to comment #17)
> What kind of crypto setup do you have? The one I know (might have changed
> meanwhile) asks for the password of the encrypted home partition during boot,

correct, crypt-startup with passphrase happens at boot time in 
/etc/init.d/boot.crypto


> not during login. Did you manage your encryption through YaST or manually?

plain yast setup (from opensuse 11.0 (installed June 2008) upgraded through all versions though, no new 12.1 installation).
Comment 20 Jon Nelson 2012-02-02 02:50:30 UTC
I have the same problem.
KDE4, check.
autologin? check.
encrypted boot? check. (root device on encrypted partition)
using systemd "solves" the problem? check.
Comment 21 Holger Macht 2012-02-17 11:23:41 UTC
Ok, systemd seems to work fine for everybody now, and if not, we should fix the bugs there. Sorry, it's not realistic that I will find the time to look into this for systemV, so closing sooner than later.