Bug#756760: systemd: stale session prevents hibernation of workstation

2014-08-05 Thread Martin Steigerwald
This message contains a digitally signed email which can be read by opening 
the attachment.
-- 
 


teamix GmbH
Südwestpark 43
90449 Nürnberg 

fon:  +49 911 30999 0
fax:  +49 911 30999 99
mail: i...@teamix.de
web:  http://www.teamix.de
blog: http://blog.teamix.de

Amtsgericht Nürnberg, HRB 18320
Geschäftsführer: Oliver Kügow, Richard Müller


---BeginMessage---
Am Freitag, 1. August 2014, 23:57:15 schrieb Michael Biebl:
 reassign 756760 systemd-shim
 thanks
 
 Am 01.08.2014 um 14:50 schrieb Martin Steigerwald:
  Package: systemd
  Version: 208-1
  Severity: important
  
  Dear Maintainer,
  
  I tried to hibernate but got same annoying authorization requester
  *after* KDE locked its desktop as described in bug #747939.
  
  This time not due to a second KDE session but due to stale sessions:
  
  ms@mango:~ loginctl
  
 SESSIONUID USER SEAT
 
   2   2012 ms   seat0
  
  84  0 root seat0
  87  0 root seat0
 
 ..
 
  systemd is still at 208-1 as I won't upgrade it at the cost of removing
  sysvinit-core.
 
 If you are still using sysvinit-core, this means it's a bug in
 systemd-shim. Re-assigning accordingly.
 Most likely a duplicate of [1]

No, I am using systemd. sysvinit-core is just installed as a fallback.
But, cgmanager runs as well:

mango:~# ps aux | grep systemd
root 1  0.0  0.0 195776  4656 ?Ss   Aug01   0:05 /bin/systemd
root   209  0.0  0.1 316024 18320 ?Ss   Aug01   0:04 
/lib/systemd/systemd-journald
root   244  0.0  0.0  35452  2200 ?Ss   Aug01   0:00 
/lib/systemd/systemd-udevd
root  6769  0.0  0.0  15108   156 ?SAug01   0:00 
/sbin/cgmanager --daemon -m name=systemd
message+  6781  0.0  0.0  45316  3096 ?Ss   Aug01   0:00 
/usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile 
--systemd-activation
root  6797  0.0  0.0  28588  1656 ?Ss   Aug01   0:00 
/lib/systemd/systemd-logind
ms7681  0.0  0.0  38036  2428 ?Ss   Aug01   0:00 
/lib/systemd/systemd --user
root  7688  0.0  0.0  38036  2424 ?Ss   Aug01   0:00 
/lib/systemd/systemd --user
root 17063  0.0  0.0  12640   944 pts/1S+   09:48   0:00 grep systemd

Hmmm, I thought I told systemd not to start cgmanager, well maybe I did so
just on laptop.

I will stop cgmanager, disable it, reboot and check whether this makes stale
sessions go away.

 [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756076

Thanks,
Martin

signature.asc
Description: This is a digitally signed message part.
---End Message---


Bug#756760: systemd: stale session prevents hibernation of workstation

2014-08-01 Thread Martin Steigerwald
Package: systemd
Version: 208-1
Severity: important

Dear Maintainer,

I tried to hibernate but got same annoying authorization requester
*after* KDE locked its desktop as described in bug #747939.

This time not due to a second KDE session but due to stale sessions:

ms@mango:~ loginctl
   SESSIONUID USER SEAT
 2   2012 ms   seat0
84  0 root seat0
87  0 root seat0

3 sessions listed.


Only session 2 is still active.

ms@mango:~ loginctl show-session 84
Id=84
Timestamp=Do 2014-07-31 11:43:23 CEST
TimestampMonotonic=32260639796
VTNr=1
TTY=/dev/tty1
Remote=no
Service=login
Scope=session-84.scope
Leader=6864
Audit=84
Type=tty
Class=user
Active=no
State=closing
IdleHint=yes
IdleSinceHint=1406800104196886
IdleSinceHintMonotonic=0
Name=root

ms@mango:~ loginctl show-session 87
Id=87
Timestamp=Do 2014-07-31 11:45:48 CEST
TimestampMonotonic=32405528582
VTNr=1
TTY=/dev/tty1
Remote=no
Service=login
Scope=session-87.scope
Leader=21739
Audit=87
Type=tty
Class=user
Active=no
State=closing
IdleHint=yes
IdleSinceHint=1406800104196886
IdleSinceHintMonotonic=0
Name=root

tty is definately logged out. So I do not only have one, but two stale
sessions on TTY1 while when switching to it with Ctrl-Alt-F1 I get a nice
login prompt displayed, so definately logged out. In any case two sessions
on the same TTY do not make any sense.

who totally agrees with that there is no body logged in on TTY1 anymore:

ms@mango:~ who
ms   :0   2014-07-30 10:43
ms   pts/12014-07-31 15:36 (:0)
ms   pts/02014-07-30 10:44 (:0)
ms   pts/82014-08-01 14:37 (:0)
ms   pts/22014-07-30 10:44 (:0)
ms   pts/32014-07-30 10:44 (:0)
ms   pts/62014-07-31 17:58 (:0)
ms   pts/42014-07-30 10:44 (:0)
ms   pts/52014-07-30 10:44 (:0)
ms   pts/13   2014-07-30 10:44 (:0)
ms   pts/72014-07-30 10:44 (:0)
ms   pts/92014-07-30 10:44 (:0)
ms   pts/10   2014-07-30 10:44 (:0)
ms   pts/12   2014-07-30 10:44 (:0)
ms   pts/16   2014-07-30 10:44 (:0)


I will be using the same work-around as on my laptop and just allow
hibernation with mutiple sessions within policykit.

This is definately not yet end-user ready.

systemd is still at 208-1 as I won't upgrade it at the cost of removing
sysvinit-core. I do not yet trust systemd and systemd debian integration
enough to rely on it as only option on my production systems.

Ciao,
Martin

-- Package-specific info:

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages systemd depends on:
ii  acl  2.2.52-1
ii  adduser  3.113+nmu3
ii  initscripts  2.88dsf-53.2
ii  libacl1  2.2.52-1
ii  libaudit11:2.3.7-1
ii  libblkid12.25-5
ii  libc62.19-7
ii  libcap2  1:2.24-3
ii  libcap2-bin  1:2.24-3
ii  libcryptsetup4   2:1.6.4-4
ii  libdbus-1-3  1.8.6-1
ii  libgcrypt11  1.5.3-5
ii  libkmod2 18-1
ii  liblzma5 5.1.1alpha+20120614-2
ii  libpam0g 1.1.8-3
ii  libselinux1  2.3-1
ii  libsystemd-daemon0   208-1
ii  libsystemd-journal0  208-1
ii  libsystemd-login0208-1
ii  libudev1 208-6
ii  libwrap0 7.6.q-25
ii  sysv-rc  2.88dsf-53.2
ii  udev 208-6
ii  util-linux   2.25-5

Versions of packages systemd recommends:
ii  libpam-systemd  208-1

Versions of packages systemd suggests:
pn  systemd-ui  none

-- no debconf information

--
Martin Steigerwald
Consultant / Trainer

teamix GmbH
Südwestpark 43
90449 Nürnberg

fon:  +49 911 30999 55
fax:  +49 911 30999 99
mail: martin.steigerw...@teamix.de
web:  http://www.teamix.de
blog: http://blog.teamix.de

Amtsgericht Nürnberg, HRB 18320
Geschäftsführer: Oliver Kügow, Richard Müller


[OVERRIDDEN] /etc/systemd/system/multi-user.target.wants → 
/lib/systemd/system/multi-user.target.wants

Only in /etc/systemd/system/multi-user.target.wants: ModemManager.service
Only in /etc/systemd/system/multi-user.target.wants: NetworkManager.service
Only in /etc/systemd/system/multi-user.target.wants: acpid.service
Only in /etc/systemd/system/multi-user.target.wants: anacron.service
Only in /etc/systemd/system/multi-user.target.wants: atd.service
Only in /etc/systemd/system/multi-user.target.wants: avahi-daemon.service
Only in /etc/systemd/system/multi-user.target.wants: cron.service
Only in /etc/systemd/system/multi-user.target.wants: cups-browsed.service
Only in /lib/systemd/system/multi-user.target.wants: dbus.service
Only in 

Bug#756760: systemd: stale session prevents hibernation of workstation

2014-08-01 Thread Michael Biebl
reassign 756760 systemd-shim
thanks

Am 01.08.2014 um 14:50 schrieb Martin Steigerwald:
 Package: systemd
 Version: 208-1
 Severity: important
 
 Dear Maintainer,
 
 I tried to hibernate but got same annoying authorization requester
 *after* KDE locked its desktop as described in bug #747939.
 
 This time not due to a second KDE session but due to stale sessions:
 
 ms@mango:~ loginctl
SESSIONUID USER SEAT
  2   2012 ms   seat0
 84  0 root seat0
 87  0 root seat0
 

..

 systemd is still at 208-1 as I won't upgrade it at the cost of removing
 sysvinit-core.

If you are still using sysvinit-core, this means it's a bug in
systemd-shim. Re-assigning accordingly.
Most likely a duplicate of [1]


[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756076

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature