Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-06-17 02:18:36

zhex900
Member
Registered: 2014-06-17
Posts: 3

lightdm and xface FAIL TO LOGIN

Hi,

I am running a LMDE. My problem is trying to get xface to work with lightdm. I know its a lightdm config issue. After I login, it will ask me to login again. xface worked for mdm.

I can see other people have similar issues, but non of their solution worked for me.

cat /etc/lightdm/lightdm.conf
All other lines are commented out.

[SeatDefaults]
xserver-allow-tcp=false
greeter-session=lightdm-gtk-greeter
user-session=/usr/bin/startxfce4
user-session=--session

Here is the lightdm.log

[+0.04s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.04s] DEBUG: Starting Light Display Manager 1.6.3, UID=0 PID=2700
[+0.04s] DEBUG: Loaded configuration from /etc/lightdm/lightdm.conf
[+0.04s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.23s] DEBUG: Registered seat module xlocal
[+0.23s] DEBUG: Registered seat module xremote
[+0.23s] DEBUG: Adding default seat
[+0.23s] DEBUG: Starting seat
[+0.23s] DEBUG: Starting new display for greeter
[+0.23s] DEBUG: Starting local X display
[+0.24s] DEBUG: X server :0 will replace Plymouth
[+0.31s] DEBUG: Using VT 7
[+0.31s] DEBUG: Activating VT 7
[+0.31s] DEBUG: Logging to /var/log/lightdm/x-0.log
[+0.31s] DEBUG: Writing X server authority to /var/run/lightdm/root/:0
[+0.31s] DEBUG: Launching X Server
[+0.31s] DEBUG: Launching process 2785: /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch -background none
[+0.31s] DEBUG: Waiting for ready signal from X server :0
[+0.31s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.31s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+5.41s] DEBUG: Got signal 10 from process 2785
[+5.41s] DEBUG: Got signal from X server :0
[+5.41s] DEBUG: Stopping Plymouth, X server is ready
[+5.42s] DEBUG: Connecting to XServer :0
[+5.43s] DEBUG: Starting greeter
[+5.43s] DEBUG: Started session 3268 with service 'lightdm-greeter', username 'lightdm'
[+6.88s] DEBUG: Session 3268 authentication complete with return value 0: Success
[+6.88s] DEBUG: Greeter authorized
[+6.88s] DEBUG: Logging to /var/log/lightdm/x-0-greeter.log
[+6.93s] DEBUG: Session 3268 running command /usr/sbin/lightdm-gtk-greeter
[+8.38s] DEBUG: Greeter connected version=1.6.3
[+8.38s] DEBUG: Greeter connected, display is ready
[+8.38s] DEBUG: New display ready, switching to it
[+8.38s] DEBUG: Activating VT 7
[+14.55s] DEBUG: Greeter start authentication for zhex900
[+14.55s] DEBUG: Started session 3953 with service 'lightdm', username 'zhex900'
[+15.08s] DEBUG: Session 3953 got 1 message(s) from PAM
[+15.08s] DEBUG: Prompt greeter with 1 message(s)
[+21.74s] DEBUG: Continue authentication
[+21.76s] DEBUG: Session 3953 authentication complete with return value 0: Success
[+21.76s] DEBUG: Authenticate result for user zhex900: Success
[+21.77s] DEBUG: User zhex900 authorized
[+21.80s] DEBUG: Greeter requests session lightdm-xsession
[+21.80s] DEBUG: Using session lightdm-xsession
[+21.80s] DEBUG: Stopping greeter
[+21.80s] DEBUG: Session 3268: Sending SIGTERM
[+21.85s] DEBUG: Greeter closed communication channel
[+21.85s] DEBUG: Session 3268 exited with return value 0
[+21.85s] DEBUG: Greeter quit
[+21.85s] DEBUG: Dropping privileges to uid 1000
[+21.85s] DEBUG: Calling setresgid
[+21.85s] DEBUG: Calling setresuid
[+21.85s] DEBUG: Restoring privileges
[+21.85s] DEBUG: Calling setresuid
[+21.85s] DEBUG: Calling setresgid
[+21.86s] DEBUG: Dropping privileges to uid 1000
[+21.86s] DEBUG: Calling setresgid
[+21.86s] DEBUG: Calling setresuid
[+21.86s] DEBUG: Writing /home/zhex900/.dmrc
[+21.96s] DEBUG: Restoring privileges
[+21.96s] DEBUG: Calling setresuid
[+21.96s] DEBUG: Calling setresgid
[+22.01s] DEBUG: Starting session lightdm-xsession as user zhex900
[+22.01s] DEBUG: Session 3953 running command lightdm-session default
[+22.12s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+22.12s] DEBUG: Session 3953 exited with return value 1
[+22.12s] DEBUG: User session quit
[+22.12s] DEBUG: Stopping display
[+22.12s] DEBUG: Sending signal 15 to process 2785
[+22.47s] DEBUG: Process 2785 exited with return value 0
[+22.47s] DEBUG: X server stopped
[+22.47s] DEBUG: Removing X server authority /var/run/lightdm/root/:0
[+22.47s] DEBUG: Releasing VT 7
[+22.47s] DEBUG: Display server stopped
[+22.47s] DEBUG: Switching to greeter
[+22.47s] DEBUG: Starting new display for greeter
[+22.47s] DEBUG: Starting local X display
[+22.47s] DEBUG: Using VT 7
[+22.47s] DEBUG: Logging to /var/log/lightdm/x-0.log
[+22.47s] DEBUG: Writing X server authority to /var/run/lightdm/root/:0
[+22.47s] DEBUG: Launching X Server
[+22.47s] DEBUG: Launching process 4209: /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+22.47s] DEBUG: Waiting for ready signal from X server :0
[+22.73s] DEBUG: Got signal 10 from process 4209
[+22.73s] DEBUG: Got signal from X server :0
[+22.73s] DEBUG: Connecting to XServer :0
[+22.74s] DEBUG: Starting greeter
[+22.74s] DEBUG: Started session 4214 with service 'lightdm-greeter', username 'lightdm'
[+22.75s] DEBUG: Session 4214 authentication complete with return value 0: Success
[+22.75s] DEBUG: Greeter authorized
[+22.75s] DEBUG: Logging to /var/log/lightdm/x-0-greeter.log
[+22.75s] DEBUG: Session 4214 running command /usr/sbin/lightdm-gtk-greeter
[+22.81s] DEBUG: Greeter connected version=1.6.3
[+22.81s] DEBUG: Greeter connected, display is ready
[+22.81s] DEBUG: New display ready, switching to it
[+22.81s] DEBUG: Activating VT 7
[+22.95s] DEBUG: Greeter start authentication for zhex900
[+22.95s] DEBUG: Started session 4241 with service 'lightdm', username 'zhex900'
[+22.97s] DEBUG: Session 4241 got 1 message(s) from PAM
[+22.97s] DEBUG: Prompt greeter with 1 message(s)

cat x-0-greeter.log

** (lightdm-gtk-greeter:4223): WARNING **: Failed to open sessions directory: Error opening directory '/usr/share/lightdm/remote-sessions': No such file or directory
** (lightdm-gtk-greeter:4223): WARNING **: Could not get accounts property XKeyboardLayouts
** (lightdm-gtk-greeter:4223): WARNING **: Could not get accounts property XHasMessages
(lightdm-gtk-greeter:4223): GLib-CRITICAL **: g_variant_get_type: assertion `value != NULL' failed
(lightdm-gtk-greeter:4223): GLib-CRITICAL **: g_variant_type_is_subtype_of: assertion `g_variant_type_check (type)' failed
(lightdm-gtk-greeter:4223): GLib-CRITICAL **: g_variant_get_type_string: assertion `value != NULL' failed
** (lightdm-gtk-greeter:4223): WARNING **: Unexpected accounts property type for XHasMessages: (null)
(lightdm-gtk-greeter:4223): GLib-CRITICAL **: g_variant_unref: assertion `value != NULL' failed

Offline

#2 2014-06-17 02:45:01

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

Re: lightdm and xface FAIL TO LOGIN

This isn't really and Xfce issue...but,

zhex900 wrote:

[SeatDefaults]
xserver-allow-tcp=false
greeter-session=lightdm-gtk-greeter
user-session=/usr/bin/startxfce4
user-session=--session

Why do you have two "user-session" entries? If the second value overwrites the first, then the login will go no where. The general method is to enter a session value that corresponds to a .desktop session file in /usr/share/xsessions. Example:

[SeatDefaults]
xserver-allow-tcp=false
greeter-session=lightdm-gtk-greeter
user-session=xfce

...where /usr/share/xsessions/xfce.desktop is something like:

[Desktop Entry]
Version=1.0
Name=Xfce Session
Comment=Use this session to run Xfce as your desktop environment
Exec=startxfce4
Icon=
Type=Application

Which distro are you using?


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 2014-06-17 03:19:08

zhex900
Member
Registered: 2014-06-17
Posts: 3

Re: lightdm and xface FAIL TO LOGIN

Thank you for your reply.

I am using mint debian.

I tried what you recommended. Still the same issue. I am know is the lightdm config problem. Who else can I ask?

[+211.16s] DEBUG: Got VNC connection from 10.1.1.10:57981
[+211.16s] DEBUG: Starting seat
[+211.16s] DEBUG: Starting new display for greeter
[+211.16s] DEBUG: Logging to /var/log/lightdm/xvnc-1.log
[+211.16s] DEBUG: Writing X server authority to /var/run/lightdm/root/:1
[+211.16s] DEBUG: Launching Xvnc server
[+211.16s] DEBUG: Launching process 11308: /usr/bin/Xvnc :1 -auth /var/run/lightdm/root/:1 -inetd -nolisten tcp -geometry 1024x768 -depth 8
[+211.16s] DEBUG: Waiting for ready signal from Xvnc server :1
[+211.16s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat2
[+211.16s] DEBUG: Got signal 10 from process 11308
[+211.16s] DEBUG: Got signal from Xvnc server :1
[+211.16s] DEBUG: Connecting to XServer :1
[+211.19s] DEBUG: Starting greeter
[+211.19s] DEBUG: Started session 11311 with service 'lightdm-greeter', username 'lightdm'
[+211.21s] DEBUG: Session 11311 authentication complete with return value 0: Success
[+211.21s] DEBUG: Greeter authorized
[+211.21s] DEBUG: Logging to /var/log/lightdm/xvnc-1-greeter.log
[+211.21s] DEBUG: Session 11311 running command /usr/sbin/lightdm-gtk-greeter
[+211.26s] DEBUG: Greeter connected version=1.6.3
[+211.26s] DEBUG: Greeter connected, display is ready
[+211.26s] DEBUG: New display ready, switching to it
[+211.38s] DEBUG: Greeter start authentication for zhex900
[+211.38s] DEBUG: Started session 11334 with service 'lightdm', username 'zhex900'
[+211.40s] DEBUG: Session 11334 got 1 message(s) from PAM
[+211.40s] DEBUG: Prompt greeter with 1 message(s)
[+213.83s] DEBUG: Continue authentication
[+213.85s] DEBUG: Session 11334 authentication complete with return value 0: Success
[+213.85s] DEBUG: Authenticate result for user zhex900: Success
[+213.85s] DEBUG: User zhex900 authorized
[+213.87s] DEBUG: Greeter requests session xfce
[+213.87s] DEBUG: Using session xfce
[+213.87s] DEBUG: Stopping greeter
[+213.87s] DEBUG: Session 11311: Sending SIGTERM
[+213.88s] DEBUG: Greeter closed communication channel
[+213.88s] DEBUG: Session 11311 exited with return value 0
[+213.88s] DEBUG: Greeter quit
[+213.89s] DEBUG: Dropping privileges to uid 1000
[+213.89s] DEBUG: Calling setresgid
[+213.89s] DEBUG: Calling setresuid
[+213.89s] DEBUG: Restoring privileges
[+213.89s] DEBUG: Calling setresuid
[+213.89s] DEBUG: Calling setresgid
[+213.89s] DEBUG: Dropping privileges to uid 1000
[+213.89s] DEBUG: Calling setresgid
[+213.89s] DEBUG: Calling setresuid
[+213.89s] DEBUG: Writing /home/zhex900/.dmrc
[+213.91s] DEBUG: Restoring privileges
[+213.91s] DEBUG: Calling setresuid
[+213.91s] DEBUG: Calling setresgid
[+213.93s] DEBUG: Starting session xfce as user zhex900
[+213.93s] DEBUG: Session 11334 running command lightdm-session startxfce4
[+213.94s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session1
[+213.95s] DEBUG: Session 11334 exited with return value 0
[+213.95s] DEBUG: User session quit
[+213.95s] DEBUG: Stopping display
[+213.95s] DEBUG: Sending signal 15 to process 11308
[+213.96s] DEBUG: Process 11308 exited with return value 0
[+213.96s] DEBUG: Xvnc server stopped
[+213.96s] DEBUG: Removing X server authority /var/run/lightdm/root/:1
[+213.96s] DEBUG: Display server stopped
[+213.96s] DEBUG: Stopping seat, display stopped
[+213.96s] DEBUG: Stopping seat
[+213.96s] DEBUG: Seat stopped

Last edited by zhex900 (2014-06-17 03:24:21)

Offline

#4 2014-06-17 06:58:19

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

Re: lightdm and xface FAIL TO LOGIN

First log file:

[+22.01s] DEBUG: Starting session lightdm-xsession as user zhex900
[+22.01s] DEBUG: Session 3953 running command lightdm-session default
[+22.12s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+22.12s] DEBUG: Session 3953 exited with return value 1

Second log file:

[+213.93s] DEBUG: Starting session xfce as user zhex900
[+213.93s] DEBUG: Session 11334 running command lightdm-session startxfce4
[+213.94s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session1
[+213.95s] DEBUG: Session 11334 exited with return value 0

...at least you went further in that the session changes you made worked.

I also notice in this second set of log files that there are alot of vnc entries. Are you connecting remotely somehow? If so, perhaps try locally first to get it to work.

Finally, check the ownership of the /home/zhex900/.Xauthority and .ICEauthority files. They should be owned by user zhex900.

I am using mint debian.

I tried what you recommended. Still the same issue. I am know is the lightdm config problem. Who else can I ask?

Perhaps the lightdm mailing list?


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