You are not logged in.

#1 2013-09-18 00:48:55

Arm-the-Homeless
Member
Registered: 2008-12-22
Posts: 273

[SOLVEDCannot login after update despite correct username and password

I updated today after last updating two or three days ago and after a reboot, everything starts up fine and I'm left at the LightDM login screen.
When I type in my password, it shows a black screen for a second or so and then goes back to the login screen. It doesn't show any errors or anything and I can't switch to a virtual terminal to try and see what's going on (though I am downloading the Arch Linux ISO since I lost my CD).

My user shell is zsh and both /bin/zsh and /usr/bin/zsh are listed in /etc/shells (since I know another person had a similar-ish problem).
I use openbox but I also tried logging into awesome and i3 sessions without any luck.

EDIT: To anyone else having this problem, the solution here: https://bbs.archlinux.org/viewtopic.php … 3#p1326033 fixed it for me.

Last edited by Arm-the-Homeless (2013-09-19 00:19:25)

Offline

#2 2013-09-18 00:56:20

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVEDCannot login after update despite correct username and password

If you boot to the CLI, can you login then? You do this by editing your kernel command line on boot and adding

systemd.unit=multi-user.target

Failing that, you could try

systemd.unit=rescue.target

EDIT: What was updated? /var/log/pacman.log for the relevant updates may be informative.

Last edited by cfr (2013-09-18 00:56:54)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2013-09-18 00:58:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVEDCannot login after update despite correct username and password

Have you seen https://bugs.archlinux.org/task/36907 and the recent threads dealing with lightDM issues?
What version of lightDM have you installed?

Last edited by karol (2013-09-18 01:03:27)

Offline

#4 2013-09-18 01:04:43

Arm-the-Homeless
Member
Registered: 2008-12-22
Posts: 273

Re: [SOLVEDCannot login after update despite correct username and password

cfr: multi-user.target works. Although it had been quite a while since my last reboot so I'm not sure which date ranges to look for.

karol: I have 1:1.6.1-4. I'll check to see if that's what's happening in any logs along with the current permissions and give it a shot.

EDIT: It looks like /var/lib/lightdm is owned by lightdm:lightdm already. I'm getting the same messages in the log file as this user is getting.

EDIT 2: Well, using the console to login and (after moving ~/.xinitrc.bak to ~/.xinitrc) running `xinit` works. Not really solved, but a workaround.

Last edited by Arm-the-Homeless (2013-09-18 01:24:44)

Offline

#5 2013-09-18 01:26:27

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVEDCannot login after update despite correct username and password

You're also getting the ConsoleKit error?

EDIT: So it failed when you had no ~/.xinitrc? Does lightdm or any of the DEs you tried provide xinitrc somewhere (or an equivalent) which might be trying to use consolekit (which is deprecated)?

Last edited by cfr (2013-09-18 01:28:55)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2013-09-18 01:29:27

Arm-the-Homeless
Member
Registered: 2008-12-22
Posts: 273

Re: [SOLVEDCannot login after update despite correct username and password

Yep.

/var/log/lightdm/x-0-greeter.log

** (process:508): WARNING **: Failed to open CK session: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files

(lightdm-gtk-greeter:510): GLib-CRITICAL **: g_shell_parse_argv: assertion `command_line != NULL' failed

** (lightdm-gtk-greeter:510): WARNING **: Failed to open sessions directory: Error opening directory '/usr/share/lightdm/remote-sessions': No such file or directory

(lightdm-gtk-greeter:510): Gdk-CRITICAL **: gdk_device_get_source: assertion `GDK_IS_DEVICE (device)' failed

/var/log/lightdm.log

[+0.06s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.06s] DEBUG: Starting Light Display Manager 1.6.1, UID=0 PID=224
[+0.06s] DEBUG: Loaded configuration from /etc/lightdm/lightdm.conf
[+0.06s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.10s] DEBUG: Registered seat module xlocal
[+0.10s] DEBUG: Registered seat module xremote
[+0.10s] DEBUG: Adding default seat
[+0.10s] DEBUG: Starting seat
[+0.10s] DEBUG: Starting new display for greeter
[+0.10s] DEBUG: Starting local X display
[+0.11s] DEBUG: Could not run plymouth --ping: Failed to execute child process "plymouth" (No such file or directory)
[+0.11s] DEBUG: Using VT 7
[+0.11s] DEBUG: Activating VT 7
[+0.13s] DEBUG: Logging to /var/log/lightdm/x-0.log
[+0.20s] DEBUG: Writing X server authority to /run/lightdm/root/:0
[+0.20s] DEBUG: Launching X Server
[+0.20s] DEBUG: Launching process 240: /usr/sbin/X :0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.20s] DEBUG: Waiting for ready signal from X server :0
[+0.25s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.25s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+8.30s] DEBUG: Got signal 10 from process 240
[+8.30s] DEBUG: Got signal from X server :0
[+8.30s] DEBUG: Connecting to XServer :0
[+8.31s] DEBUG: Starting greeter
[+8.31s] DEBUG: Started session 371 with service 'lightdm-greeter', username 'lightdm'
[+8.48s] DEBUG: Session 371 authentication complete with return value 0: Success
[+8.48s] DEBUG: Greeter authorized
[+8.48s] DEBUG: Logging to /var/log/lightdm/x-0-greeter.log
[+8.52s] DEBUG: Session 371 running command /usr/sbin/lightdm-gtk-greeter
[+8.52s] DEBUG: org.freedesktop.Accounts does not exist, falling back to passwd file
[+9.68s] DEBUG: Greeter connected version=1.6.1
[+9.68s] DEBUG: Greeter connected, display is ready
[+9.68s] DEBUG: New display ready, switching to it
[+9.68s] DEBUG: Activating VT 7
[+12.34s] DEBUG: Greeter start authentication for andy
[+12.34s] DEBUG: Started session 479 with service 'lightdm', username 'andy'
[+12.81s] DEBUG: Session 479 got 1 message(s) from PAM
[+12.81s] DEBUG: Prompt greeter with 1 message(s)
[+18.37s] DEBUG: Continue authentication
[+18.41s] DEBUG: Session 479 authentication complete with return value 0: Success
[+18.41s] DEBUG: Authenticate result for user andy: Success
[+18.41s] DEBUG: User andy authorized
[+18.46s] DEBUG: Greeter requests session openbox
[+18.46s] DEBUG: Using session openbox
[+18.46s] DEBUG: Stopping greeter
[+18.46s] DEBUG: Session 371: Sending SIGTERM
[+18.48s] DEBUG: Greeter closed communication channel
[+18.48s] DEBUG: Session 371 exited with return value 0
[+18.48s] DEBUG: Greeter quit
[+18.48s] DEBUG: Dropping privileges to uid 1000
[+18.48s] DEBUG: Calling setresgid
[+18.48s] DEBUG: Calling setresuid
[+18.51s] DEBUG: Restoring privileges
[+18.51s] DEBUG: Calling setresuid
[+18.51s] DEBUG: Calling setresgid
[+18.51s] DEBUG: Dropping privileges to uid 1000
[+18.51s] DEBUG: Calling setresgid
[+18.51s] DEBUG: Calling setresuid
[+18.51s] DEBUG: Writing /home/andy/.dmrc
[+18.56s] DEBUG: Restoring privileges
[+18.56s] DEBUG: Calling setresuid
[+18.56s] DEBUG: Calling setresgid
[+18.63s] DEBUG: Starting session openbox as user andy
[+18.63s] DEBUG: Session 479 running command /etc/lightdm/xsession /usr/bin/openbox-session
[+18.71s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+18.74s] DEBUG: Session 479 exited with return value 0
[+18.74s] DEBUG: User session quit
[+18.74s] DEBUG: Stopping display
[+18.74s] DEBUG: Sending signal 15 to process 240
[+19.08s] DEBUG: Process 240 exited with return value 0
[+19.08s] DEBUG: X server stopped
[+19.08s] DEBUG: Removing X server authority /run/lightdm/root/:0
[+19.08s] DEBUG: Releasing VT 7
[+19.08s] DEBUG: Display server stopped
[+19.08s] DEBUG: Switching to greeter
[+19.08s] DEBUG: Starting new display for greeter
[+19.08s] DEBUG: Starting local X display
[+19.08s] DEBUG: Using VT 7
[+19.08s] DEBUG: Logging to /var/log/lightdm/x-0.log
[+19.08s] DEBUG: Writing X server authority to /run/lightdm/root/:0
[+19.08s] DEBUG: Launching X Server
[+19.08s] DEBUG: Launching process 502: /usr/sbin/X :0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+19.08s] DEBUG: Waiting for ready signal from X server :0
[+19.30s] DEBUG: Got signal 10 from process 502
[+19.30s] DEBUG: Got signal from X server :0
[+19.30s] DEBUG: Connecting to XServer :0
[+19.31s] DEBUG: Starting greeter
[+19.31s] DEBUG: Started session 508 with service 'lightdm-greeter', username 'lightdm'
[+19.31s] DEBUG: Session 508 authentication complete with return value 0: Success
[+19.31s] DEBUG: Greeter authorized
[+19.31s] DEBUG: Logging to /var/log/lightdm/x-0-greeter.log
[+19.31s] DEBUG: Session 508 running command /usr/sbin/lightdm-gtk-greeter
[+19.39s] DEBUG: Greeter connected version=1.6.1
[+19.39s] DEBUG: Greeter connected, display is ready
[+19.39s] DEBUG: New display ready, switching to it
[+19.39s] DEBUG: Activating VT 7
[+19.52s] DEBUG: Greeter start authentication for andy
[+19.52s] DEBUG: Started session 527 with service 'lightdm', username 'andy'
[+19.53s] DEBUG: Session 527 got 1 message(s) from PAM
[+19.53s] DEBUG: Prompt greeter with 1 message(s)
[+28.65s] DEBUG: Got signal 15 from process 1
[+28.75s] DEBUG: Caught Terminated signal, shutting down
[+28.75s] DEBUG: Stopping display manager
[+28.75s] DEBUG: Stopping seat
[+28.75s] DEBUG: Stopping display
[+28.75s] DEBUG: Session 508: Sending SIGTERM
[+28.75s] DEBUG: Greeter closed communication channel
[+28.75s] DEBUG: Session 508 exited with return value 0
[+28.75s] DEBUG: Greeter quit
[+28.75s] DEBUG: Sending signal 15 to process 502
[+28.75s] DEBUG: Session 527 terminated with signal 15
[+28.75s] DEBUG: Session 527 failed during authentication
[+28.75s] DEBUG: Authenticate result for user andy: Authentication stopped before completion

EDIT: As far as the ConsoleKit question goes, no. My xinitrc is just `exec openbox-session` and ConsoleKit is not referenced at all in my openbox autostart/environment files. Plus, that wouldn't explain why this is the first boot to get this error.

Last edited by Arm-the-Homeless (2013-09-18 01:31:29)

Offline

#7 2013-09-18 01:42:20

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVEDCannot login after update despite correct username and password

I was thinking more that when you don't have ~/.xinitrc, it might fall back to a default file somewhere. That file might get changed in an update and if the updated version called consolekit, it would presumably give something like that sort of error. By using your own ~/.xinitrc, you'd block use of the default setup and so stuff would work. But I don't know enough about lightdm etc. to have any idea if this is a plausible hypothesis or not!


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#8 2013-09-18 01:43:31

Arm-the-Homeless
Member
Registered: 2008-12-22
Posts: 273

Re: [SOLVEDCannot login after update despite correct username and password

Well I haven't tried to see if lightdm works yet. This is booting into multi-user.target and running `xinit` after logging in.

Offline

#9 2013-09-18 02:02:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVEDCannot login after update despite correct username and password

wrt the errors from /var/log/lightdm/x-0-greeter.log , try '# rm -r /var/cache/lightdm' as suggested by https://bbs.archlinux.org/viewtopic.php … 2#p1307412

Offline

#10 2013-09-18 05:17:16

ceramics
Member
Registered: 2013-04-30
Posts: 4

Re: [SOLVEDCannot login after update despite correct username and password

I had the same problem as Arm-the-Homeless "everything starts up fine and I'm left at the LightDM login screen. When I type in my password, it shows a black screen for a second or so and then goes back to the login screen".

I was able to solve it by looking in /etc/lightdm
There were two files of particular interest there, lightdm.conf and lightdm-gtk-greeter.conf, and there were two updated versions of them, lightdm.conf.pacnew and lightdm-gtk-greeter.conf.pacnew.

As root I renamed lightdm.conf and lightdm-gtk-greeter.conf to lightdm.conf.old and lightdm-gtk-greeter.conf.old.
(example) #mv /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.old

Then I renamed the pacnew versions of the files, by removing the pacnew extension from each of them (thus making them the new .conf files).
(example) #mv /etc/lightdm/lightdm.conf.pacnew /etc/lightdm/lightdm.conf

I rebooted, and the first time I reached the log in screen, everything froze after I entered my password. I rebooted again, and the problem was solved. All is going well now.

Hope this helps.

Offline

Board footer

Powered by FluxBB