Additional user(s) that log out of a any session still show as being logged in

Bug #1203357 reported by Doug McMahon
50
This bug affects 10 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Triaged
Medium
Unassigned
Session Menu
Confirmed
Undecided
Charles Kerr
indicator-session (Ubuntu)
Triaged
Medium
Unassigned
unity-greeter (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Test case:
Create a new user
Log out, log in to new user

Log out from new user, log back in to orig user
New user will still be shown as logged in in the session indicator even though they aren't

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: indicator-session 12.10.5+13.10.20130717-0ubuntu1
ProcVersionSignature: Ubuntu 3.10.0-4.13-generic 3.10.1
Uname: Linux 3.10.0-4-generic x86_64
ApportVersion: 2.11-0ubuntu1
Architecture: amd64
Date: Sat Jul 20 14:33:09 2013
InstallationDate: Installed on 2013-07-13 (6 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130712)
MarkForUpload: True
SourcePackage: indicator-session
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Doug McMahon (mc3man) wrote :
Charles Kerr (charlesk)
Changed in indicator-session:
assignee: nobody → Charles Kerr (charlesk)
Revision history for this message
Doug McMahon (mc3man) wrote :

Now is in any session, unity, gnome*

summary: - Additional user(s) that log out of a gnome* session still show as being
+ Additional user(s) that log out of a any session still show as being
logged in
description: updated
Changed in indicator-session (Ubuntu):
status: New → Confirmed
Revision history for this message
Duke (duke1995) wrote :

Bugs that are similar to the one described above.

* Log in as User1
* Log out as User1
* Log in as User2
* [User2] Open the session menu: User1 has a check mark behind his name indicating he is logged in (although he's not)
* [User2] Remove a file from the desktop
* [User2] Open the session menu: User1 no longer has a check mark behind his name

* Log in as User1
* Log in as User2
* Log out as User2
* Reopen session from User1
* Open the session menu: User2 has a check mark behind his name indicating he is logged in (although he's not)
* Log in as User3
* Log out as User3
* Reopen session from User1
* Open the session menu: now User3 has a check mark behind his name indicating he is logged in (although he's not) but User2 no longer has a check mark behind his name (although the check mark was there before)

Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue there is rather due the way sessions are closed than indicator-session itself, you can check the status with:

$ loginctl list-users
-> lists the connected users

$ loginctl user-status <username>
-> lists the status of the session for that user

The issue there seems to be that some processes are still running after the session close (indicators, pulseaudio in some times) which makes the session still be open for logind...

Not sure there is a bug in the indicators that make them not exit properly though (on my system I've indicator-session-service still running under the lightdm user atm, even being logged in with no active greeter)

Revision history for this message
Duke (duke1995) wrote :

Another scenario that appears to cover the same bug (See also: https://answers.launchpad.net/ubuntu/+question/237638) :

When I log in and then log out, on the login screen there is a small triangle before my user name indicating I am still logged in (although I no longer am). However this triangle stays there until I restart my computer. Even though the logged-in symbol in the session menu disappears in certain cases (see comment #4 above), the triangle before the user name on the login screen always stays there.

It looks like whether the user is still logged in is determined in another way in the session menu (the logged-in symbol) and on the login screen (the small triangle). Can somebody confirm that ?

Revision history for this message
Duke (duke1995) wrote :

About the scenario described above (see comment #6):

When I check the state with loginctl (see comment #5):

$ loginctl list-users

There are no users listed, but those that had logged in before still have a triangle before their name on the login screen indicating they are still logged in (even though they have logged out now).

Revision history for this message
Duke (duke1995) wrote :

This bug had been marked as a duplicate of bug #1245295 "Greeter indicates session is logged into after logout" (https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1245295).
However a fix has been released for bug #1245295 (that effectively fixes the bug with the greeter) but the bug described above still occurs from time to time (but not always), so I removed bug #1245295 as a duplicate of this bug.

Revision history for this message
Duke (duke1995) wrote :

The problem occurs at the moment.
I was logged in as 'duke' but logged out (via the session menu) and then logged in as 'administrator'.
In the session menu both users have a check mark behind their names, even though user 'duke' is no longer logged in.
Here's the output of loginctl:

administrator@desktop-pc:~$ loginctl list-users
       UID USER
      1002 duke
      1000 administrator

2 users listed.
administrator@desktop-pc:~$ loginctl user-status duke
duke (1002)
           Since: Tue 2013-12-10 16:37:31 CET; 3h 17min ago
           State: closing
        Sessions: *c2
          CGroup: systemd:/user/1002.user
                  └─c2.session
                    ├─1951 /usr/bin/pulseaudio --start --log-target=syslog
                    ├─1984 /usr/lib/pulseaudio/pulse/gconf-helper
                    └─5506 /usr/lib/x86_64-linux-gnu/indicator-sound/indicator-sound-service
administrator@desktop-pc:~$

Any idea what I can do to prevent this?

Thanks a lot in advance.

Revision history for this message
Duke (duke1995) wrote :

I have the same problem at the moment.
User 'administrator' is logged out but still has a check mark behind his name in the session menu (I am currently logged in as 'duke').
However on the greeter user 'administrator' has no little triangle on the left of his name.

The output of loginctl is similar to the previous one:

duke@desktop-pc:~$ loginctl list-users
       UID USER
      1000 administrator
      1001 duke

2 users listed.
duke@desktop-pc:~$ loginctl user-status administrator
administrator (1000)
           Since: za 2013-12-21 09:24:53 CET; 4h 13min ago
           State: closing
        Sessions: *c2
          CGroup: systemd:/user/1000.user
                  └─c2.session
                    ├─1905 /usr/bin/pulseaudio --start --log-target=syslog
                    ├─1992 /usr/lib/pulseaudio/pulse/gconf-helper
                    └─7162 /usr/lib/x86_64-linux-gnu/indicator-sound/indicator-sound-service

Any idea why these processes are still running and what can be done to solve this problem?

Kind regards.

Revision history for this message
Duke (duke1995) wrote :

In some cases, when a logged out user still has a check mark behind his name, running the 'loginctl list-users' command seems to trigger the disappearance of the check mark. It looks like the session menu (session indicator) is not always notified when a user is no longer logged in.

Scenario:

* User 'administrator' is logged out and user 'duke' is logged in, but both users have a check mark behind their names in the session menu

* Run 'loginctl list-users' in the console

duke@desktop-pc:~$ loginctl list-users
       UID USER
      1001 duke

1 users listed.

* In the session menu the check mark behind logged out user 'administrator' has now disappeared.

Revision history for this message
Duke (duke1995) wrote :

In the case when some processes are still running for a user even if the user is no longer logged in (see e.g. comment #10):
- In the session menu the check mark behind the name of the logged out user is still there
- However on the greeter there is no little triangle before the name of the logged out user
So apparently the session menu and the greeter are not using the same information to determine whether a user is logged in or not. Can somebody confirm this, and if so, any idea why it is so?

affects: unity-greeter → unity-greeter (Ubuntu)
Changed in unity-greeter (Ubuntu):
status: New → Confirmed
affects: indicator-sound → hundredpapercuts
Changed in hundredpapercuts:
status: New → Triaged
Changed in indicator-session (Ubuntu):
importance: Undecided → Medium
Changed in unity-greeter (Ubuntu):
importance: Undecided → Medium
Changed in hundredpapercuts:
importance: Undecided → Medium
Changed in indicator-session:
status: New → Confirmed
Changed in unity-greeter (Ubuntu):
status: New → Confirmed
Changed in indicator-session (Ubuntu):
status: Confirmed → Triaged
Changed in unity-greeter (Ubuntu):
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.