You are not logged in.

#1 2012-04-07 15:38:56

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,595
Website

cannot login using lightdm+lightdm-gtk-greeter

Since lightdm went to version 1.2.x, I have been unable to login to X.  What happens is that I select my username and enter my password, but the screen just goes black for 5-6s then reloads the greeter. 

1) The the x-0-greeter.log is full of errors (perhaps this is normal)?

# cat /var/log/lightdm/x-0-greeter.log
 ** (lightdm-gtk-greeter:13795): WARNING **: Could not get accounts property XKeyboardLayouts
** (lightdm-gtk-greeter:13795): WARNING **: Could not get accounts property XHasMessages
(lightdm-gtk-greeter:13795): GLib-CRITICAL **: g_variant_get_type: assertion `value != NULL' failed
(lightdm-gtk-greeter:13795): GLib-CRITICAL **: g_variant_type_is_subtype_of: assertion `g_variant_type_check (type)' failed
(lightdm-gtk-greeter:13795): GLib-CRITICAL **: g_variant_get_type_string: assertion `value != NULL' failed
** (lightdm-gtk-greeter:13795): WARNING **: Unexpected accounts property type for XHasMessages: (null)
(lightdm-gtk-greeter:13795): GLib-CRITICAL **: g_variant_unref: assertion `value != NULL' failed
** (lightdm-gtk-greeter:13795): WARNING **: Could not get accounts property XKeyboardLayouts
** (lightdm-gtk-greeter:13795): WARNING **: Could not get accounts property XHasMessages
(lightdm-gtk-greeter:13795): GLib-CRITICAL **: g_variant_get_type: assertion `value != NULL' failed
(lightdm-gtk-greeter:13795): GLib-CRITICAL **: g_variant_type_is_subtype_of: assertion `g_variant_type_check (type)' failed
(lightdm-gtk-greeter:13795): GLib-CRITICAL **: g_variant_get_type_string: assertion `value != NULL' failed
** (lightdm-gtk-greeter:13795): WARNING **: Unexpected accounts property type for XHasMessages: (null)
(lightdm-gtk-greeter:13795): GLib-CRITICAL **: g_variant_unref: assertion `value != NULL' failed

2) Here is a snipit from the lightdm.log:

[+58.84s] DEBUG: Greeter start authentication for facade
 [+58.84s] DEBUG: Session 13721: Sending SIGTERM
 [+58.84s] DEBUG: Started session 13743 with service 'lightdm', username 'facade'
 [+58.84s] DEBUG: Session 13743 got 1 message(s) from PAM
 [+58.84s] DEBUG: Prompt greeter with 1 message(s)
 [+61.86s] DEBUG: Continue authentication
 [+61.99s] DEBUG: Session 13743 authentication complete with return value 0: Success
 [+61.99s] DEBUG: Authenticate result for user facade: Success
 [+61.99s] DEBUG: User facade authorized
 [+61.99s] DEBUG: Greeter requests session xfce
 [+61.99s] DEBUG: Using session xfce
 [+61.99s] DEBUG: Stopping greeter
 [+61.99s] DEBUG: Session 13705: Sending SIGTERM
 [+62.01s] DEBUG: Greeter closed communication channel
 [+62.01s] DEBUG: Session 13705 exited with return value 0
 [+62.01s] DEBUG: Greeter quit
 [+62.01s] DEBUG: Dropping privileges to uid 1000
 [+62.01s] DEBUG: Restoring privileges
 [+62.01s] DEBUG: Dropping privileges to uid 1000
 [+62.01s] DEBUG: Writing /home/facade/.dmrc
 [+62.01s] DEBUG: Restoring privileges
 [+62.05s] DEBUG: Starting session xfce as user facade
 [+62.05s] DEBUG: Session 13743 running command lightdm-session startxfce4
 [+62.07s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
 [+62.09s] DEBUG: Session 13743 exited with return value 0
 [+62.09s] DEBUG: User session quit
 [+62.09s] DEBUG: Stopping display
 [+62.09s] DEBUG: Sending signal 15 to process 13697
 [+62.99s] DEBUG: Process 13697 exited with return value 0
 [+62.99s] DEBUG: X server stopped
 [+62.99s] DEBUG: Removing X server authority /var/run/lightdm/root/:0
 [+62.99s] DEBUG: Releasing VT 7
 [+62.99s] DEBUG: Display server stopped
 [+62.99s] DEBUG: Display stopped
 [+62.99s] DEBUG: Active display stopped, switching to greeter
 [+62.99s] DEBUG: Switching to greeter
 [+62.99s] DEBUG: Starting new display for greeter
 [+62.99s] DEBUG: Starting local X display
 [+62.99s] DEBUG: Using VT 7
 [+62.99s] DEBUG: Logging to /var/log/lightdm/x-0.log
 [+62.99s] DEBUG: Writing X server authority to /var/run/lightdm/root/:0
 [+62.99s] DEBUG: Launching X Server
 [+62.99s] DEBUG: Launching process 13777: /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
 [+62.99s] DEBUG: Waiting for ready signal from X server :0
 [+64.14s] DEBUG: Got signal 10 from process 13777
 [+64.14s] DEBUG: Got signal from X server :0
 [+64.14s] DEBUG: Connecting to XServer :0
 [+64.14s] DEBUG: Starting greeter
 [+64.14s] DEBUG: Started session 13782 with service 'lightdm', username 'lightdm'
 [+64.15s] DEBUG: Session 13782 authentication complete with return value 0: Success
 [+64.15s] DEBUG: Greeter authorized
 [+64.15s] DEBUG: Logging to /var/log/lightdm/x-0-greeter.log
 [+64.15s] DEBUG: Session 13782 running command /usr/sbin/lightdm-gtk-greeter
 [+64.18s] DEBUG: Greeter connected version=1.2.0
 [+64.18s] DEBUG: Greeter connected, display is ready
 [+64.18s] DEBUG: New display ready, switching to it
 [+64.18s] DEBUG: Activating VT 7
 [+64.18s] DEBUG: Stopping greeter display being switched from
 [+64.35s] DEBUG: Greeter start authentication for facade
 [+64.35s] DEBUG: Started session 13799 with service 'lightdm', username 'facade'
 [+64.36s] DEBUG: Session 13799 got 1 message(s) from PAM
 [+64.36s] DEBUG: Prompt greeter with 1 message(s)
 [+73.93s] DEBUG: Got signal 15 from process 1
 [+73.93s] DEBUG: Caught Terminated signal, shutting down
 [+73.93s] DEBUG: Stopping display manager
 [+73.93s] DEBUG: Stopping seat
 [+73.93s] DEBUG: Stopping display
 [+73.93s] DEBUG: Session 13782: Sending SIGTERM
 [+73.93s] DEBUG: Session 13799 terminated with signal 15
 [+73.93s] DEBUG: Session 13799 failed during authentication
 [+73.93s] DEBUG: Authenticate result for user facade: Authentication stopped before completion
 [+73.94s] DEBUG: Greeter closed communication channel
 [+73.94s] DEBUG: Session 13782 exited with return value 0
 [+73.94s] DEBUG: Greeter quit
 [+73.94s] DEBUG: Sending signal 15 to process 13777
 [+73.98s] DEBUG: Process 13777 exited with return value 0
 [+73.98s] DEBUG: X server stopped
 [+73.98s] DEBUG: Removing X server authority /var/run/lightdm/root/:0
 [+73.98s] DEBUG: Releasing VT 7
 [+73.98s] DEBUG: Display server stopped
 [+73.98s] DEBUG: Display stopped
 [+73.98s] DEBUG: Seat stopped
 [+73.98s] DEBUG: Display manager stopped
 [+73.98s] DEBUG: Stopping daemon

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2012-04-07 16:49:29

vit
Member
Registered: 2008-12-28
Posts: 79

Re: cannot login using lightdm+lightdm-gtk-greeter

The third one) There are more topics here with this problem.

Offline

#3 2012-04-07 17:59:02

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: cannot login using lightdm+lightdm-gtk-greeter

I am holding on to the upgrade; would hate to be locked out.

Offline

#4 2012-04-07 22:20:49

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: cannot login using lightdm+lightdm-gtk-greeter

@graysky

My greeter log has the same errors, which I am looking into, yet my login worked perfectly.

Loking at your lightdm log, it would seem there is an issue starting your session rather than the greeter itself. The session appears to exit right after it has started taking you back to the greeter.

Please post your lightdm.conf and the content of your session wrapper.

Cheers.

Offline

#5 2012-04-07 22:51:55

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,595
Website

Re: cannot login using lightdm+lightdm-gtk-greeter

Hi padfoot - I just switched to lxdm.  Thanks for looking at the logs.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2012-04-09 20:09:41

Bionic Apple
Member
Registered: 2008-08-05
Posts: 59

Re: cannot login using lightdm+lightdm-gtk-greeter

I had the same problem after using the following file: http://pastebin.com/71rw4Qx9

The problem for me was that it was stored in the DOS text format, which makes the script try to run /bin/sh^M, which doesn't exist.

Fix:

sudo pacman -S dos2unix
dos2unix /path/to/Xsession/script

Offline

#7 2012-04-10 07:40:21

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: cannot login using lightdm+lightdm-gtk-greeter

Ok, for all having issues logging in, it is simply because you have not configured your session wrapper in /etc/lightdm/lightdm.conf. If the configured wrapper does not exist, or is not executable, you will be endlessly returned to the greeter.

The convenience script provided in previous packages was just that, a convenience script. There are many different ways to configure your user session environment, so while the script was handy, it is not necessary to the functioning of lightdm, nor is it a source or packaging error.

A copy of the script is available for a short while on pastebin http://pastebin.com/71rw4Qx9
Alternatively, you can use a slightly modified version of the default Arch session script at /etc/X11/xinit/xinitrc
Others use ~/.xinitrc or ~/.xsession or their own custom scripts. It simply comes down to the DE being launched and the user's preference for configuring that session based on what it is being used for.

Cheers.

Offline

#8 2012-04-10 09:12:12

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,595
Website

Re: cannot login using lightdm+lightdm-gtk-greeter

Someone should update the wiki on this new info so others can benefit from it without finding this thread.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#9 2012-04-10 19:22:58

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: cannot login using lightdm+lightdm-gtk-greeter

Thanks for posting the info.

I am new to Arch. I get a blank/black screen when it should load lightDM. Do you mind elaborating on setting session wrapper thing?

lightdm.log I have no xgreeters directory in /usr/share/

lightdm.conf The only un-commented option in lightdm.conf is session-wrapper=/etc/lightdm/xsession and xsession exist with session files.

x-0-greeter.log is empty.

/etc/lightdm/xsession

I have replaced xsession file in /etc/lightdm but nothing happened. I end up to a black screen.

I have default xinitrc

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

exec ck-launch-session startxfce4

Last edited by donniezazen (2012-04-11 00:30:06)

Offline

#10 2012-04-11 07:08:28

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: cannot login using lightdm+lightdm-gtk-greeter

donniezazen wrote:

lightdm.log I have no xgreeters directory in /usr/share/

This indicates to me that you have not installed the greeter. You need to install lightdm and lightdm-gtk-greeter.

Offline

#11 2012-04-11 07:09:24

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: cannot login using lightdm+lightdm-gtk-greeter

graysky wrote:

Someone should update the wiki on this new info so others can benefit from it without finding this thread.

The latest update to lightdm includes the convenience script again.

Offline

#12 2012-04-11 17:39:54

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: cannot login using lightdm+lightdm-gtk-greeter

After installing lightdm-gtk-greeter, I couldn't log in using either slim or startxfce4.

lightdm.log Failed to start greeter.


x-0-greeter.log

/usr/sbin/lightdm-gtk-greeter: symbol lookup error: /usr/lib/libgdk_pixbuf-2.0.so.0: undefined symbol: g_bytes_unref

Thanks.

Last edited by donniezazen (2012-04-11 17:41:23)

Offline

#13 2012-04-12 08:24:00

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: cannot login using lightdm+lightdm-gtk-greeter

donniezazen wrote:

After installing lightdm-gtk-greeter, I couldn't log in using either slim or startxfce4.

lightdm.log Failed to start greeter.


x-0-greeter.log

/usr/sbin/lightdm-gtk-greeter: symbol lookup error: /usr/lib/libgdk_pixbuf-2.0.so.0: undefined symbol: g_bytes_unref

Thanks.

No sure what the issue is there. That library is part of gdk-pixbuf2. Maybe try a pacman -Syy to force an update from your mirror. Could be (as I have encountered before, on the odd occassion) that one of that packages dependencies was not updated on the mirror at the time gdk_pixbuf2 was, or vice versa, hence the library cant access the correct package version it needs.

You could also try using rankmirrors to find the most up to date mirror, rather than the fastest, and try a system update again.

Offline

#14 2012-04-12 18:26:10

donniezazen
Member
From: Salt Lake City
Registered: 2011-06-24
Posts: 671
Website

Re: cannot login using lightdm+lightdm-gtk-greeter

@padfoot It seems problem in beyond lightdm. I could not log in using slim, lxdm or in fact using command line. Something is causing X to crash. I might start a new thread.

Thanks.

Offline

Board footer

Powered by FluxBB