Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-07-17 21:37:48

DavidBiesack
Member
Registered: 2012-06-09
Posts: 14

Failed to run action "Log Out"

I downloaded, built, and installed xfce4 4.10 (PREFIX=/local) and am running xfce4-panel (system is Xubuntu 13.04, running lightdm. I login with either an xubuntu or xfce session). I added the action buttons to my panel, but the logout button causes this dialog:

    Failed to run action "Log Out"

    The name org.xfce.SessionManager was
    not provided by any .service files

and logging out fails. I can't find a root cause. xfce4-panel preferences confirms I'm running 4.10

(I've reverted to killing my .xinit to logout, but I'd rather get standard logout and related display manager handlers so I can gracefully shutdown virtualbox virtual machines etc. at logout).

What causes this, and how to fix?

Offline

#2 2013-07-23 02:34:01

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Failed to run action "Log Out"

Out of curiosity, why did you build Xfce 4.10? Xubuntu 13.04 comes wilth Xfce 4.10 bundled in.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2013-07-23 13:37:21

DavidBiesack
Member
Registered: 2012-06-09
Posts: 14

Re: Failed to run action "Log Out"

I was having the problem and I checked the --version on something and I thought I had an older version. I can't remember which tool it was, tho. I had the problem before I built it, tho (that was one of the reasons I built it, as it appeared I had an older install). But the /usr/bin/xfce4-* apps all report 4.10 or 4.10.2 now, so my xubuntu system is "up to date".

What .service file is missing? I'm not very familiar with X session management and these .service files.

Offline

#4 2013-07-23 15:39:59

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Failed to run action "Log Out"

Is xfce4-session running?

ps -ef  |grep xfce4-session

Are there any messages in ~/.xsession-errors related to this?

Did the logout work before you built Xfce?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2013-07-23 17:13:27

DavidBiesack
Member
Registered: 2012-06-09
Posts: 14

Re: Failed to run action "Log Out"

no, it is not running

ps -ef  |grep xfce4-session
sasdjb   22645 22626  0 12:56 pts/0    00:00:00 grep xfce4-session

my .xsession-errors shows

(xfdesktop:19757): GLib-WARNING **: (/build/buildd/glib2.0-2.36.0/./glib/gerror.c:390):g_error_new_valist: runtime check failed: (domain != 0)
Failed to connect to session manager: Failed to connect to the session manager: SESSION_MANAGER environment variable not defined

Here is my lightdm log, if that helps:

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.6.0, UID=0 PID=4081
[+0.00s] DEBUG: Loaded configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registered seat module xlocal
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Adding default seat
[+0.00s] DEBUG: Starting seat
[+0.00s] DEBUG: Starting new display for greeter
[+0.00s] DEBUG: Starting local X display
[+0.00s] DEBUG: Using VT 7
[+0.00s] DEBUG: Activating VT 7
[+0.01s] DEBUG: Logging to /var/log/lightdm/x-0.log
[+0.01s] DEBUG: Writing X server authority to /var/run/lightdm/root/:0
[+0.01s] DEBUG: Launching X Server
[+0.01s] DEBUG: Launching process 4087: /usr/bin/X :0 -core -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.01s] DEBUG: Waiting for ready signal from X server :0
[+0.01s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+1.75s] DEBUG: Got signal 10 from process 4087
[+1.75s] DEBUG: Got signal from X server :0
[+1.75s] DEBUG: Connecting to XServer :0
[+1.75s] DEBUG: Starting greeter
[+1.75s] DEBUG: Started session 4095 with service 'lightdm-greeter', username 'lightdm'
[+1.78s] DEBUG: Session 4095 authentication complete with return value 0: Success
[+1.78s] DEBUG: Greeter authorized
[+1.78s] DEBUG: Logging to /var/log/lightdm/x-0-greeter.log
[+1.78s] DEBUG: Session 4095 running command /usr/lib/lightdm/lightdm-greeter-session /usr/sbin/lightdm-gtk-greeter
[+1.86s] DEBUG: Greeter connected version=1.6.0
[+1.86s] DEBUG: Greeter connected, display is ready
[+1.86s] DEBUG: New display ready, switching to it
[+1.86s] DEBUG: Activating VT 7
[+2.30s] DEBUG: Greeter start authentication
[+2.30s] DEBUG: Started session 4174 with service 'lightdm', username '(null)'
[+2.31s] DEBUG: Session 4174 got 1 message(s) from PAM
[+2.31s] DEBUG: Prompt greeter with 1 message(s)
[+5.28s] DEBUG: Continue authentication
[+5.28s] DEBUG: Session 4174 got 1 message(s) from PAM
[+5.28s] DEBUG: Prompt greeter with 1 message(s)
[+7.68s] DEBUG: Continue authentication
[+7.71s] DEBUG: Session 4174 authentication complete with return value 0: Success
[+7.71s] DEBUG: Authenticate result for user sasdjb: Success
[+7.75s] DEBUG: User sasdjb authorized
[+7.78s] DEBUG: Greeter requests session xfce
[+7.78s] DEBUG: Using session xfce
[+7.78s] DEBUG: Stopping greeter
[+7.78s] DEBUG: Session 4095: Sending SIGTERM
[+7.82s] DEBUG: Greeter closed communication channel
[+7.82s] DEBUG: Session 4095 exited with return value 0
[+7.82s] DEBUG: Greeter quit
[+7.82s] DEBUG: Launching process 4207: /usr/local/bin/lightdm-session-setup
[+7.85s] DEBUG: Process 4207 exited with return value 0
[+7.85s] DEBUG: Exit status of /usr/local/bin/lightdm-session-setup: 0
[+7.91s] DEBUG: Dropping privileges to uid 394
[+7.91s] DEBUG: Calling setresgid
[+7.91s] DEBUG: Calling setresuid
[+7.92s] DEBUG: Restoring privileges
[+7.92s] DEBUG: Calling setresuid
[+7.92s] DEBUG: Calling setresgid
[+7.93s] DEBUG: Dropping privileges to uid 394
[+7.93s] DEBUG: Calling setresgid
[+7.93s] DEBUG: Calling setresuid
[+7.93s] DEBUG: Writing /u/sasdjb/.dmrc
[+7.94s] DEBUG: Restoring privileges
[+7.94s] DEBUG: Calling setresuid
[+7.94s] DEBUG: Calling setresgid
[+8.01s] DEBUG: Starting session xfce as user sasdjb
[+8.01s] DEBUG: Session 4174 running command /usr/sbin/lightdm-session startxfce4
[+8.04s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+129.32s] DEBUG: Session 4174 exited with return value 15
[+129.32s] DEBUG: Launching process 5176: /usr/local/bin/lightdm-session-cleanup
[+129.34s] DEBUG: Process 5176 exited with return value 0
[+129.34s] DEBUG: Exit status of /usr/local/bin/lightdm-session-cleanup: 0
[+129.34s] DEBUG: User session quit
[+129.34s] DEBUG: Stopping display
[+129.34s] DEBUG: Sending signal 15 to process 4087
[+129.38s] DEBUG: Process 4087 exited with return value 0
[+129.38s] DEBUG: X server stopped
[+129.38s] DEBUG: Removing X server authority /var/run/lightdm/root/:0
[+129.38s] DEBUG: Releasing VT 7
[+129.38s] DEBUG: Display server stopped
[+129.38s] DEBUG: Switching to greeter
[+129.38s] DEBUG: Starting new display for greeter
[+129.38s] DEBUG: Starting local X display
[+129.38s] DEBUG: Using VT 7
[+129.38s] DEBUG: Activating VT 7
[+129.39s] DEBUG: Logging to /var/log/lightdm/x-0.log
[+129.39s] DEBUG: Writing X server authority to /var/run/lightdm/root/:0
[+129.39s] DEBUG: Launching X Server
[+129.39s] DEBUG: Launching process 5195: /usr/bin/X :0 -core -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+129.39s] DEBUG: Waiting for ready signal from X server :0
[+131.13s] DEBUG: Got signal 10 from process 5195
[+131.13s] DEBUG: Got signal from X server :0
[+131.13s] DEBUG: Connecting to XServer :0
[+131.14s] DEBUG: Starting greeter
[+131.14s] DEBUG: Started session 5203 with service 'lightdm-greeter', username 'lightdm'
[+131.16s] DEBUG: Session 5203 authentication complete with return value 0: Success
[+131.16s] DEBUG: Greeter authorized
[+131.16s] DEBUG: Logging to /var/log/lightdm/x-0-greeter.log
[+131.16s] DEBUG: Session 5203 running command /usr/lib/lightdm/lightdm-greeter-session /usr/sbin/lightdm-gtk-greeter
[+131.24s] DEBUG: Greeter connected version=1.6.0
[+131.24s] DEBUG: Greeter connected, display is ready
[+131.24s] DEBUG: New display ready, switching to it
[+131.24s] DEBUG: Activating VT 7
[+131.68s] DEBUG: Greeter start authentication
[+131.68s] DEBUG: Started session 5282 with service 'lightdm', username '(null)'
[+131.69s] DEBUG: Session 5282 got 1 message(s) from PAM
[+131.69s] DEBUG: Prompt greeter with 1 message(s)
[+184.06s] DEBUG: Continue authentication
[+184.06s] DEBUG: Session 5282 got 1 message(s) from PAM
[+184.06s] DEBUG: Prompt greeter with 1 message(s)
[+186.27s] DEBUG: Continue authentication
[+186.30s] DEBUG: Session 5282 authentication complete with return value 0: Success
[+186.30s] DEBUG: Authenticate result for user sasdjb: Success
[+186.32s] DEBUG: User sasdjb authorized
[+186.35s] DEBUG: Greeter requests session xfce
[+186.35s] DEBUG: Using session xfce
[+186.35s] DEBUG: Stopping greeter
[+186.35s] DEBUG: Session 5203: Sending SIGTERM
[+186.40s] DEBUG: Greeter closed communication channel
[+186.40s] DEBUG: Session 5203 exited with return value 0
[+186.40s] DEBUG: Greeter quit
[+186.40s] DEBUG: Launching process 5311: /usr/local/bin/lightdm-session-setup
[+186.40s] DEBUG: Process 5311 exited with return value 0
[+186.40s] DEBUG: Exit status of /usr/local/bin/lightdm-session-setup: 0
[+186.42s] DEBUG: Dropping privileges to uid 394
[+186.42s] DEBUG: Calling setresgid
[+186.42s] DEBUG: Calling setresuid
[+186.42s] DEBUG: Restoring privileges
[+186.42s] DEBUG: Calling setresuid
[+186.42s] DEBUG: Calling setresgid
[+186.44s] DEBUG: Dropping privileges to uid 394
[+186.44s] DEBUG: Calling setresgid
[+186.44s] DEBUG: Calling setresuid
[+186.44s] DEBUG: Writing /u/sasdjb/.dmrc
[+186.44s] DEBUG: Restoring privileges
[+186.44s] DEBUG: Calling setresuid
[+186.44s] DEBUG: Calling setresgid
[+186.46s] DEBUG: Starting session xfce as user sasdjb
[+186.46s] DEBUG: Session 5282 running command /usr/sbin/lightdm-session startxfce4
[+186.49s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session1
[+10442.14s] DEBUG: Session 5282 exited with return value 15
[+10442.14s] DEBUG: Launching process 19033: /usr/local/bin/lightdm-session-cleanup
[+10442.15s] DEBUG: Process 19033 exited with return value 0
[+10442.15s] DEBUG: Exit status of /usr/local/bin/lightdm-session-cleanup: 0
[+10442.15s] DEBUG: User session quit
[+10442.15s] DEBUG: Stopping display
[+10442.15s] DEBUG: Sending signal 15 to process 5195
[+10442.20s] DEBUG: Process 5195 exited with return value 0
[+10442.20s] DEBUG: X server stopped
[+10442.20s] DEBUG: Removing X server authority /var/run/lightdm/root/:0
[+10442.20s] DEBUG: Releasing VT 7
[+10442.20s] DEBUG: Display server stopped
[+10442.20s] DEBUG: Switching to greeter
[+10442.20s] DEBUG: Starting new display for greeter
[+10442.20s] DEBUG: Starting local X display
[+10442.20s] DEBUG: Using VT 7
[+10442.20s] DEBUG: Activating VT 7
[+10442.20s] DEBUG: Logging to /var/log/lightdm/x-0.log
[+10442.20s] DEBUG: Writing X server authority to /var/run/lightdm/root/:0
[+10442.20s] DEBUG: Launching X Server
[+10442.20s] DEBUG: Launching process 19039: /usr/bin/X :0 -core -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+10442.20s] DEBUG: Waiting for ready signal from X server :0
[+10443.93s] DEBUG: Got signal 10 from process 19039
[+10443.93s] DEBUG: Got signal from X server :0
[+10443.93s] DEBUG: Connecting to XServer :0
[+10443.94s] DEBUG: Starting greeter
[+10443.94s] DEBUG: Started session 19048 with service 'lightdm-greeter', username 'lightdm'
[+10443.96s] DEBUG: Session 19048 authentication complete with return value 0: Success
[+10443.96s] DEBUG: Greeter authorized
[+10443.96s] DEBUG: Logging to /var/log/lightdm/x-0-greeter.log
[+10443.96s] DEBUG: Session 19048 running command /usr/lib/lightdm/lightdm-greeter-session /usr/sbin/lightdm-gtk-greeter
[+10444.04s] DEBUG: Greeter connected version=1.6.0
[+10444.04s] DEBUG: Greeter connected, display is ready
[+10444.04s] DEBUG: New display ready, switching to it
[+10444.04s] DEBUG: Activating VT 7
[+10444.50s] DEBUG: Greeter start authentication
[+10444.50s] DEBUG: Started session 19127 with service 'lightdm', username '(null)'
[+10444.51s] DEBUG: Session 19127 got 1 message(s) from PAM
[+10444.51s] DEBUG: Prompt greeter with 1 message(s)

and my ~/.dmrc file:

# see also /etc/lightdm/lightdm.conf

[Desktop]
Session=xfce
Langlist=en_US:en
LCMess=en_US.UTF-8
Language=C

and /etc/lightdm/lightdm.conf

[SeatDefaults]
greeter-session=lightdm-gtk-greeter
user-session=xfce

Last edited by DavidBiesack (2013-07-23 17:20:02)

Offline

#6 2013-07-23 19:32:02

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: Failed to run action "Log Out"

You need to have xfce4-session running. Is it installed?

apt-cache policy xfce4-session

Is it possible that another session manager is running?

ps -ef | grep session

And finally, does it help if you clear out your sessions cache? The best way to do this is to log out of the GUI, go to the first tty (Ctrl+Alt+F1), log in to the text console, then:

cd $HOME/.cache
rm -rf sessions

...be extra careful with the "rm -rf" command.

Then Ctrl+Alt+F7 and log back in to the GUI and test.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Board footer

Powered by FluxBB