Logout not working in Cairo Dock

Bug #1448418 reported by pramathesh ambasta
60
This bug affects 10 people
Affects Status Importance Assigned to Milestone
cairo-dock (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

I am running cairo-dock 3.4 on a fresh clean install of Ubuntu 15.04.

The logout menu in the dock does not work. That is, it does nothing if the "Logout" menu item is clicked.

However, Restart and Shutdown work properly.

On clicking the Logout item, nothing happens.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: cairo-dock 3.4.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.19.0-15.15-generic 3.19.3
Uname: Linux 3.19.0-15-generic x86_64
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
CompositingMetacity: No value set for `/apps/metacity/general/compositing_manager'
CurrentDesktop: Unity
Date: Sat Apr 25 15:43:16 2015
InstallationDate: Installed on 2015-04-24 (0 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
PackageArchitecture: all
PciDisplay: 00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 0b) (prog-if 00 [VGA controller])
RelatedPackageVersions:
 xserver-xorg 1:7.7+7ubuntu4
 libgl1-mesa-glx 10.5.2-0ubuntu1
 libdrm2 2.4.60-2
 xserver-xorg-video-intel 2:2.99.917-1~exp1ubuntu2build1
 xserver-xorg-video-ati 1:7.5.0-1ubuntu2
SourcePackage: cairo-dock
UpgradeStatus: No upgrade log present (probably fresh install)
WM: No value set for `/desktop/gnome/applications/window_manager/current'
glxinfo: Error: [Errno 2] No such file or directory: 'glxinfo'
system: distro = Ubuntu, architecture = x86_64, kernel = 3.19.0-15-generic

Revision history for this message
pramathesh ambasta (pramathesh-ambasta) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cairo-dock (Ubuntu):
status: New → Confirmed
Revision history for this message
Robert M. Muncrief (rmuncrief-9) wrote :

I have the same problem as pramathesh. In addition if you enable logout and shutdown in the main menu neither work. I have tried the various "delay start up" solutions found on the Internet but none work.

There is also a problem if you attempt to use the GLX mode. The entire dock will intermittently jerk, freeze, go back to normal, jerk, freeze, etc. I have tried the included fglrx and fglrx-update drivers with and without acceleration within Unity, Cairo Dock Sessions, and in Ubuntu Mate 15.04. I am using a Radeon HD 6450 GPU. I am installing and setting up Cairo Dock the same way I do in Ubuntu 14.04 with the same hardware and it works perfectly. I have been attempting to use Cairo Dock since Ubuntu 15.04 beta and the problems have been identical and consistent.

I use all of my operating systems on ESXi 5.5 with GPU, audio, and USB pass-through so it's easy for me to switch things around and try different scenarios. I am willing to try any tests and solutions proposed, just let me know what you'd like to try. I'm an active supporter and fan of Cairo Dock so I am eager to see these problems solved so I can move on from 14.04.

Changed in cairo-dock (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Matthieu Baerts (matttbe) wrote :

Hello and thank you for this bug report!

Can you check if one of these commands work?

    $ gnome-session-quit --logout
    $ dbus-send --session --type=method_call --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:0
    $ dbus-send --session --type=method_call --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:1

Regards,

Matt

Changed in cairo-dock (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
pramathesh ambasta (pramathesh-ambasta) wrote :

Hi. Thanks for your response

Output of gnome-session-quit --logout:

** (gnome-session-quit:2450): WARNING **: Failed to call logout: Logout interface is only available during the Running phase

Output of dbus-send --session --type=method_call --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:0:

Error org.gnome.SessionManager.NotInRunning: Logout interface is only available during the Running phase

Output of dbus-send --session --type=method_call --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:1:

Error org.gnome.SessionManager.NotInRunning: Logout interface is only available during the Running phase

Hope this is helpful

Revision history for this message
pramathesh ambasta (pramathesh-ambasta) wrote :

Don't know whether this is helpful but cairo-dock logout works when I launch a peoper gnome session and run cairo-dock inside it

Revision history for this message
Matthieu Baerts (matttbe) wrote :

Thank you

It seems there is a permission problem. I'm not sure I'll have time to have a look at this in the next days but I'll try.

If anybody else has some clues to fix this bug, feel free to share them with us. (or maybe we should contact GNOME devs because other commands with dbus-send don't work either on a Cairo-Dock session)

Changed in cairo-dock (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Yves (ylaisne) wrote :

 ubuntu 15.04 i'm also unable to logout of a cairo-dock session,
so i'm unable to start with another session
 i can start another session with ctl-alt-F1, but
when powering up i'm always with cairo-dock session
don't know how to change it.

Revision history for this message
Matthieu Baerts (matttbe) wrote :

@Yves: sorry for the delay! As workaround, you can disable the auto-login feature from User Account menu (via the Control Center or this command: unity-control-center user-accounts)

@all: we didn't find time to fix this bug yet... If someone find a way to fix this permission problem, feel free to share it with us :-)
Or if someone has time to contact GNOME/Unity devs (via IRC, Launchpad or GNOME's bugzilla) to find a solution, don't be shy ;-)

Revision history for this message
Philippe Le Toquin (ppmt) wrote :

I have installed 15.10 and logout was working properly but it suddenly stopped working. I am not sure what caused that

I get the same message as the people above.

Revision history for this message
sudhir kesharwani (sudhir-kesharwani) wrote :

i am having same issue on Ubuntu 16.04 LTS, looks like i am stuck on the cairo session. I am not able to logout, any workaround.

Revision history for this message
Jan de Haan (jdehaan) wrote :

Me too on 16.04. Work around :
sudo shutdown -h now
or
sudo service lightdm restart

Revision history for this message
idistech (gary-idistech) wrote :

Ditto on #16.04

Tests from #4 produce the same results.

Revision history for this message
Antoine (antoine-monmayrant+ubuntuone) wrote :

Same bug here.
The bug is present on both Xubuntu 16.04 and Ubuntu LiveUSB 16.04 (was OK on both Xubuntu/Ubuntu 14.04).
Workaround for Xubuntu: Ctrl+Alt+Backspace kills the X server (does not work on Ubuntu).

Trying commands in #4:

$ gnome-session-quit --logout
** (gnome-session-quit:25437): WARNING **: Failed to call logout: GDBus.Error:org.gnome.SessionManager.NotInRunning: Logout interface is only available during the Running phase

$ dbus-send --session --type=method_call --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:0
Error org.gnome.SessionManager.NotInRunning: Logout interface is only available during the Running phase

$ dbus-send --session --type=method_call --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:1
Error org.gnome.SessionManager.NotInRunning: Logout interface is only available during the Running phase

I hope it helps,

Do not hesitate if you want me to run some more tests,

Antoine

Revision history for this message
Reinier Kleipool (reinier-6) wrote :

I have the same problem as Antoine in
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"

Hope someone finds a solution for it. I use service lightdm restart as work around...

Kind Regards,
Reinier

Revision history for this message
Jaripekka Juhala (juhala) wrote :

The third command line given in post #4

dbus-send --session --type=method_call --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:1

actually DOES WORK if no other method has been used since login (the other two lines from post #4 or log out menu). It immedeately logs out, no dialog is presented.

I've tested the behaviour on my laptop (Thinkpad X61 Tablet) with an installed up-to-date Ubuntu Gnome 16.04, Ubuntu Gnome live cd 16.04.1, and Ubuntu live cd 16.04.1. In addition I've tested this on another, more modern computer (i5 etc.) with the live cd:s. It works always, unless one of the other methods is used first. In that case it behaves just as in the earlier posts.

For live cd:s I installed packages cairo-dock, compiz, and unity-settings-daemon. Ubuntu cd needed adding universe to sources.list to find cairo-dock. Then I created a new test user, logged out from the current session, and logged in with the test user. I tried the different command lines and log out menu, and if failed, forced logout ('killall gdm-x-session' or 'killall -9 gnome-session-binary') and tried again.

First and second command lines in post #4 seem to do something, as first run of either of these after login completes without error, though it does not actually log out.

Unfortunately it seems that currently editing log out applet settings to add a custom command line for logout does nothing, so no clean workaround there. (Command line for shutdown command doesn't work either, but switch user does.)

Hope this helps :)

command output examples:

$ gnome-session-quit --logout
1st run:
[nothing]
run after any method except the 3rd line:
** (gnome-session-quit:4081): WARNING **: Failed to call logout: GDBus.Error:org.gnome.SessionManager.NotInRunning: Logout interface is only available during the Running phase

$ dbus-send --session --type=method_call --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:0
1st run:
method return time=1471195552.785564 sender=:1.6 -> destination=:1.87 serial=122 reply_serial=2
run after any method except the 3rd line:
Error org.gnome.SessionManager.NotInRunning: Logout interface is only available during the Running phase

$ dbus-send --session --type=method_call --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:0
1st run (in addition to actually logging out):
method return time=1471187571.534848 sender=:1.5 -> destination=:1.82 serial=115 reply_serial=2
run after any other method:
Error org.gnome.SessionManager.NotInRunning: Logout interface is only available during the Running phase

Revision history for this message
Dominique Dejammes (dominique-dejammes) wrote :

Hi all,

I am having the same issue on Ubuntu 16.04 LTS. I am not able to logout.
Juhala actually gave me an interesting clue.

I notice that:
   gnome-session-quit --logout doesn't work

BUT
   gnome-session-quit --logout --no-prompt works well.

So may be, it doesn't work because the system is waiting for a confirmation dialog to be closed.
That's why the first time you launched the previous command, nothing happens and the next times, the following error occurs:
   Error org.gnome.SessionManager.NotInRunning: Logout interface is only available during the Running phase

On my environment, there is a workaround if you don't mind not having a confirmation dialog before logout. You have to deactivate the prompt. In order to implement that, you can add the following line :

   gsettings set org.gnome.SessionManager logout-prompt false

at the end of ~/.bashrc

Revision history for this message
Nazar Mokrynskyi (nazar-pc) wrote :

This seems to be deeper related to GNOME3 stack.
If you use any WM that is Mutter or Mutter-derived - gnome-session-quit works fine. As soon as you do `compiz --replace` it stops working.

Very typical for GNOME3 stack to put everything into WM (like display management, keyboard/hotkeys management and a lot of other stuff).

I'm not using Cairo-Dock session, I have my own custom session and this is also an issue for me. Don't know how to fix it yet (I'm on Ubuntu 17.04 already).

Revision history for this message
miguelquiros (mquiros) wrote :

Hello. I have experienced this bug after updating from Ubuntu 14 to Ubuntu 16 (it did not exist in Ubuntu 14).
Following what it is said in this thread, I have created an script in $HOME/bin with the contents:

gnome-session-quit --logout --no-prompt

To logout, I open a terminal and execute this script (whit a shorter name and easier to remember than the full command). As previously told, it only works if no attempt to logout by other method has been issued before. Perhaps a button in the dock associated to this script might be created to make things easier (how???)

For me, the bug exist if the session is open with cairo-dock but not if it is open with plain metacity.

If the problem is just a dialogue box not appearing, at is seems, why is that difficult to solve this bug which seems to survive through several Ubuntu updates?

Revision history for this message
miguelquiros (mquiros) wrote :

Hello again. I think I have found a better workaround. First install the package dconf-editor if not already installed. Then open a terminal and type dconf-editor.
Navigate to apps -> indicator-session and check the box "supress-logout-restart-shutdown".
Close dconf-editor and since then, I have a working logout option (without confirmation dialogue of course).
It worked for me. Hope it also works for other.

Revision history for this message
Nazar Mokrynskyi (nazar-pc) wrote :

I can't find supress-logout-restart-shutdown on my system anywhere. I don't even have this package installed at all, but I do have this problem.
It seems to be caused by Compiz, not Cairo Dock.

Revision history for this message
Gaétan QUENTIN (gaetan-quentin) wrote :

ubuntu 17.04, cairo-dock 3.4.1: logout does nothing.

gnome-session-quit --logout --no-prompt --force works fine

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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