Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]lightdm: immediate log out after log in
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 668
Location: Switzerland

PostPosted: Wed Aug 24, 2016 8:59 am    Post subject: [SOLVED]lightdm: immediate log out after log in Reply with quote

Hi
On a new installation:
Code:
Linux pteropus 4.4.6-gentoo #1 SMP Tue Aug 23 15:32:04 CEST 2016 x86_64 Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz GenuineIntel GNU/Linux

i added lightdm and xfce.
dbus, consolekit and xdm are in rc-update:
Code:
           consolekit | boot                                   
                 dbus |      default                           
                  xdm |      default                           

(in xdm i have DISPLAYMANAGER="lightdm")

When i boot the computer i get the lightdm greeter, but after logging in, the greeter disappears and it looks like X is restarted (short flash of the nvidia splash screen), and the greeter reappears.
/var/log/lightdm/lightdm.log:
Code:
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.16.7, UID=0 PID=3455
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading 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: Registered seat module unity
[+0.00s] WARNING: Failed to get list of logind seats: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedeskt
op.login1 was not provided by any .service files
[+0.00s] DEBUG: Adding default seat
[+0.00s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.00s] DEBUG: Seat seat0: Starting
[+0.00s] DEBUG: Seat seat0: Creating greeter session
[+0.00s] DEBUG: Seat seat0: Creating display server of type x
[+0.00s] DEBUG: Could not run plymouth --ping: Failed to execute child process "plymouth" (No such file or directory)
[+0.00s] DEBUG: Using VT 7
[+0.00s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.00s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+0.00s] DEBUG: DisplayServer x-0: Writing X server authority to /var/run/lightdm/root/:0
[+0.00s] DEBUG: DisplayServer x-0: Launching X Server
[+0.01s] DEBUG: Launching process 3469: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.01s] DEBUG: DisplayServer x-0: 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
[+0.01s] WARNING: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The
 name org.freedesktop.Accounts was not provided by any .service files
[+0.01s] DEBUG: Loading user config from /etc/lightdm/users.conf
[+0.01s] DEBUG: User jody added
[+1.39s] DEBUG: Got signal 10 from process 3469
[+1.39s] DEBUG: DisplayServer x-0: Got signal from X server :0
[+1.39s] DEBUG: DisplayServer x-0: Connecting to XServer :0
[+1.39s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+1.39s] DEBUG: Session pid=3521: Started with service 'lightdm-greeter', username 'root'
[+1.40s] DEBUG: Session pid=3521: Authentication complete with return value 0: Success
[+1.40s] DEBUG: Seat seat0: Session authenticated, running command
[+1.40s] DEBUG: Session pid=3521: Running command /usr/sbin/lightdm-gtk-greeter
[+1.40s] DEBUG: Creating shared data directory /var/lib/lightdm-data/root
[+1.40s] DEBUG: Session pid=3521: Logging to /var/log/lightdm/x-0-greeter.log
[+1.42s] DEBUG: Activating VT 7
[+1.42s] DEBUG: Activating ConsoleKit session aim-pteropus.uzh.ch-1472019214.436922-169999687
[+1.42s] WARNING: Error activating ConsoleKit session: GDBus.Error:org.freedesktop.ConsoleKit.Session.Error.AlreadyActive: Session
already active
[+1.66s] DEBUG: Session pid=3521: Greeter connected version=1.16.7 resettable=false
[+1.85s] DEBUG: Session pid=3521: Greeter start authentication for jody
[+1.85s] DEBUG: Session pid=3555: Started with service 'lightdm', username 'jody'
[+1.86s] DEBUG: Session pid=3555: Got 1 message(s) from PAM
[+1.86s] DEBUG: Session pid=3521: Prompt greeter with 1 message(s)
[+14.03s] DEBUG: Session pid=3521: Continue authentication
[+14.26s] DEBUG: Session pid=3555: Authentication complete with return value 0: Success
[+14.26s] DEBUG: Session pid=3521: Authenticate result for user jody: Success
[+14.26s] DEBUG: Session pid=3521: User jody authorized
[+14.26s] DEBUG: Session pid=3521: Greeter sets language en_US.utf8
[+14.30s] DEBUG: Session pid=3521: Greeter requests session Xsession
[+14.30s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+14.30s] DEBUG: Session pid=3521: Sending SIGTERM
[+14.35s] DEBUG: Session pid=3521: Greeter closed communication channel
[+14.35s] DEBUG: Session pid=3521: Exited with return value 0
[+14.35s] DEBUG: Seat seat0: Session stopped
[+14.35s] DEBUG: Seat seat0: Greeter stopped, running session
[+14.35s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+14.35s] DEBUG: Session pid=3555: Running command /etc/lightdm/Xsession /etc/X11/Sessions/Xsession
[+14.35s] DEBUG: Creating shared data directory /var/lib/lightdm-data/jody
[+14.35s] DEBUG: Session pid=3555: Logging to .xsession-errors
[+14.36s] DEBUG: Activating VT 7
[+14.36s] DEBUG: Activating ConsoleKit session aim-pteropus.uzh.ch-1472019227.386500-1148928918
[+14.36s] DEBUG: Session pid=3555: Exited with return value 1
[+14.36s] DEBUG: Seat seat0: Session stopped
[+14.36s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+14.36s] DEBUG: Sending signal 15 to process 3469
[+15.11s] DEBUG: Process 3469 exited with return value 0
[+15.11s] DEBUG: DisplayServer x-0: X server stopped
[+15.11s] DEBUG: Releasing VT 7
[+15.11s] DEBUG: DisplayServer x-0: Removing X server authority /var/run/lightdm/root/:0
[+15.11s] DEBUG: Seat seat0: Display server stopped
[+15.11s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+15.11s] DEBUG: Seat seat0: Creating greeter session
[+15.11s] DEBUG: Seat seat0: Creating display server of type x
[+15.11s] DEBUG: Using VT 7
[+15.11s] DEBUG: Seat seat0: Starting local X display on VT 7
[+15.11s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+15.11s] DEBUG: DisplayServer x-0: Writing X server authority to /var/run/lightdm/root/:0
[+15.11s] DEBUG: DisplayServer x-0: Launching X Server
[+15.11s] DEBUG: Launching process 3590: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+15.11s] DEBUG: DisplayServer x-0: Waiting for ready signal from X server :0
[+16.18s] DEBUG: Got signal 10 from process 3590
[+16.18s] DEBUG: DisplayServer x-0: Got signal from X server :0
[+16.18s] DEBUG: DisplayServer x-0: Connecting to XServer :0
[+16.18s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+16.18s] DEBUG: Session pid=3611: Started with service 'lightdm-greeter', username 'root'
[+16.19s] DEBUG: Session pid=3611: Authentication complete with return value 0: Success
[+16.19s] DEBUG: Seat seat0: Session authenticated, running command
[+16.19s] DEBUG: Session pid=3611: Running command /usr/sbin/lightdm-gtk-greeter
[+16.19s] DEBUG: Creating shared data directory /var/lib/lightdm-data/root
[+16.19s] DEBUG: Session pid=3611: Logging to /var/log/lightdm/x-0-greeter.log
[+16.20s] DEBUG: Activating VT 7
[+16.20s] DEBUG: Activating ConsoleKit session aim-pteropus.uzh.ch-1472019229.221919-200196802
[+16.20s] WARNING: Error activating ConsoleKit session: GDBus.Error:org.freedesktop.ConsoleKit.Session.Error.AlreadyActive: Session already active
[+16.34s] DEBUG: Session pid=3611: Greeter connected version=1.16.7 resettable=false
[+16.50s] DEBUG: Session pid=3611: Greeter start authentication for jody
[+16.50s] DEBUG: Session pid=3645: Started with service 'lightdm', username 'jody'
[+16.52s] DEBUG: Session pid=3645: Got 1 message(s) from PAM
[+16.52s] DEBUG: Session pid=3611: Prompt greeter with 1 message(s)

From this log i can see that my log-in attempt was successful, but immediately after that the session is closed
Code:
[+14.26s] DEBUG: Session pid=3555: Authentication complete with return value 0: Success
[+14.26s] DEBUG: Session pid=3521: Authenticate result for user jody: Success
[+14.26s] DEBUG: Session pid=3521: User jody authorized
[+14.26s] DEBUG: Session pid=3521: Greeter sets language en_US.utf8
[+14.30s] DEBUG: Session pid=3521: Greeter requests session Xsession
[+14.30s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+14.30s] DEBUG: Session pid=3521: Sending SIGTERM
[+14.35s] DEBUG: Session pid=3521: Greeter closed communication channel
[+14.35s] DEBUG: Session pid=3521: Exited with return value 0
[+14.35s] DEBUG: Seat seat0: Session stopped
[+14.35s] DEBUG: Seat seat0: Greeter stopped, running session

There are also a few wrnings/errors but i don't know if they are the problem:
Code:
[+0.00s] WARNING: Failed to get list of logind seats: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.login1 was not provided by any .service files
[+0.01s] WARNING: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
[+1.42s] WARNING: Error activating ConsoleKit session: GDBus.Error:org.freedesktop.ConsoleKit.Session.Error.AlreadyActive: Session already active
[+16.20s] WARNING: Error activating ConsoleKit session: GDBus.Error:org.freedesktop.ConsoleKit.Session.Error.AlreadyActive: Session already active


When i log in as root, it looks somewhat different:
Code:
[+147.80s] DEBUG: Session pid=3527: Continue authentication
[+148.02s] DEBUG: Session pid=3572: Authentication complete with return value 0: Success
[+148.02s] DEBUG: Session pid=3527: Authenticate result for user root: Success
[+148.02s] DEBUG: Session pid=3527: User root authorized
[+148.03s] DEBUG: Session pid=3527: Greeter sets language en_US.utf8
[+148.09s] DEBUG: Session pid=3527: Greeter requests session Xsession
[+148.09s] DEBUG: Seat seat0: Returning to existing user session root
[+148.09s] DEBUG: Unlocking ConsoleKit session aim-pteropus.uzh.ch-1472021666.426667-478587543
[+148.09s] DEBUG: Activating VT 7
[+148.09s] DEBUG: Activating ConsoleKit session aim-pteropus.uzh.ch-1472021666.426667-478587543
[+148.09s] WARNING: Error activating ConsoleKit session: GDBus.Error:org.freedesktop.ConsoleKit.Session.Error.AlreadyActive: Session already active
[+148.09s] DEBUG: Session pid=3572: Exited with return value 0
[+148.09s] DEBUG: Seat seat0: Session stopped

On the other hand, when i type 'startxcfe4' (after having stopped xdm), XFCE starts without complaint. When i switch back to the console (Ctr-Alt-F1) i see
Code:
(polkit-gnome-authentication-agent-1:4465):polkit-gnome-1-WARNING **: Unable to determine the session we are in: GDBus.Error:org.freedesktop.ConsoleKit.Manager.Error.General: Uable to lookup session information for process '4465'


Any idea why this happens and how this can be fixed?

Thanks
Jody


Last edited by jody on Mon Aug 29, 2016 9:37 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30894
Location: here

PostPosted: Wed Aug 24, 2016 7:23 pm    Post subject: Reply with quote

Can help this?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 668
Location: Switzerland

PostPosted: Thu Aug 25, 2016 8:56 am    Post subject: Reply with quote

@fedeliallalinea: thank you that helped a bit.
Indeed my .Xauthority had wrong permissions. I changed that and now loghtdm is not restarted when i log in.
However, neither is xfce started - after log in i see some strange borderless windows (some of them seem to be terminals).

Now i have to find out why xfce is not started...
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Thu Aug 25, 2016 9:58 am    Post subject: Reply with quote

What are the contents of /etc/lightdm/lightdm.conf, excluding comments?:

Code:
grep -v ^# /etc/lightdm/lightdm.conf

Also, what files do you have in that directory?:

Code:
ls -la /etc/lightdm

_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 668
Location: Switzerland

PostPosted: Thu Aug 25, 2016 10:39 am    Post subject: Reply with quote

Hi Fitzcarraldo

/etc/lightdm/lightdm.conf:
Code:
[LightDM]
session-wrapper=/etc/lightdm/Xsession
[Seat:*]
session-wrapper=/etc/lightdm/Xsession

[XDMCPServer]

[VNCServer]


/etc/lightdm:
Code:
drwxr-xr-x  2 root root 4096 Aug 23 15:51 .
drwxr-xr-x 69 root root 4096 Aug 25 10:32 ..
-rw-r--r--  1 root root   40 Aug 23 15:51 keys.conf
-rw-r--r--  1 root root 6710 Aug 23 15:51 lightdm.conf
-rw-r--r--  1 root root  698 Aug 23 15:51 lightdm-gtk-greeter.conf
-rw-r--r--  1 root root  453 Aug 23 15:51 users.conf
-rwxr-xr-x  1 root root 1819 Aug 23 15:51 Xsession


I have not been able to find out how Lightdm is supposed to know about xfce4's existence, can you elucidate?
Thanks
Jody
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Thu Aug 25, 2016 4:05 pm    Post subject: Reply with quote

In the top right of the Lightdm window, you have an icon you can click on who allow you to select the desktop environment or the window manager you want from the ones who are installed. This icon have the logo of the one who is selected. You need to set the appropriate choice for you before login.
_________________
Paul
Back to top
View user's profile Send private message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 668
Location: Switzerland

PostPosted: Mon Aug 29, 2016 9:37 am    Post subject: Reply with quote

Thanks Logicien - that worked!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum