Bug 2167386 - Login only works on 2nd attempt
Summary: Login only works on 2nd attempt
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lightdm
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alternative GTK desktop environments
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2252315 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-06 13:46 UTC by Christoph Junghans
Modified: 2024-02-12 01:51 UTC (History)
6 users (show)

Fixed In Version: lightdm-1.32.0-7.fc39 lightdm-1.30.0-19.el9 lightdm-1.30.0-19.el8 lightdm-1.32.0-7.fc38
Clone Of:
Environment:
Last Closed: 2024-01-31 02:04:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources lightdm pull-request 2 0 None None None 2023-12-17 00:40:22 UTC
Github canonical lightdm issues 291 0 None open login only works on 2nd try 2023-02-09 01:48:55 UTC
Github canonical lightdm pull 336 0 None open Add hostname dep in lightdm.service 2023-12-28 17:28:52 UTC

Description Christoph Junghans 2023-02-06 13:46:30 UTC
Description of problem:

This is freshly installed F37, everything work great except when I try to log into light-dm after a reboot. The first login always fails.


Version-Release number of selected component (if applicable):

lightdm-1.32.0-2.fc37.x86_64

How reproducible:

Steps to Reproduce:
1. Try login - fails
2. Try to login again - works

Expected results:

Works first time.

Additional info:

Comment 1 Christoph Junghans 2023-02-06 13:49:53 UTC
More info: This is not specific to a certain user account, one even try to login user1 - fails, and then user2 works. Once a login was sucessful one can log out and in without further problems.

Comment 2 Christoph Junghans 2023-02-06 13:51:49 UTC
The issue seems similar to https://forum.xfce.org/viewtopic.php?id=3176, even though the solution in there doesn't work from me as /tmp/.ICE-unix is empty after a reboot already.

Comment 3 leigh scott 2023-02-06 14:33:00 UTC
Lightdm with Cinnamon session works as expected here on multiple PC's.

Comment 4 Christoph Junghans 2023-02-06 15:34:55 UTC
Could be an XFCE issue.

Comment 5 Christoph Junghans 2023-02-07 02:03:23 UTC
Ok, using "startxfce4" directly works.

From lightdm.log:

[+1.42s] DEBUG: Activating login1 session c1
[+1.42s] DEBUG: Seat seat0 changes active session to c1
[+1.42s] DEBUG: Session c1 is already active
[+1.67s] DEBUG: Greeter connected version=1.32.0 api=1 resettable=false
[+2.20s] DEBUG: Greeter start authentication for YYY
[+2.20s] DEBUG: Session pid=1314: Started with service 'lightdm', username 'YYY'
[+2.34s] DEBUG: Session pid=1314: Got 1 message(s) from PAM
[+2.34s] DEBUG: Prompt greeter with 1 message(s)
[+10.81s] DEBUG: Seat seat0 changes active session to 
[+15.35s] DEBUG: Seat seat0 changes active session to 2
[+57.78s] DEBUG: Seat seat0 changes active session to c1
[+57.78s] DEBUG: Session c1 is already active
[+60.62s] DEBUG: Continue authentication
[+60.74s] DEBUG: Session pid=1314: Authentication complete with return value 0: Success
[+60.74s] DEBUG: Authenticate result for user YYY: Success
[+60.74s] DEBUG: User YYY authorized
[+60.75s] DEBUG: Greeter sets language en_US.utf8
[+61.33s] DEBUG: Greeter closed communication channel
[+61.33s] DEBUG: Session pid=1255: Exited with return value 1
[+61.33s] DEBUG: Seat seat0: Session stopped
[+61.33s] DEBUG: Seat seat0: Stopping; failed to start a greeter
[+61.33s] DEBUG: Seat seat0: Stopping
[+61.33s] DEBUG: Seat seat0: Stopping display server
[+61.33s] DEBUG: Sending signal 15 to process 1201
[+61.33s] DEBUG: Seat seat0: Stopping session
[+61.33s] DEBUG: Session pid=1314: Exited with return value 0
[+61.33s] DEBUG: Seat seat0: Session stopped
[+61.35s] DEBUG: Seat seat0 changes active session to 
[+61.58s] DEBUG: Process 1201 exited with return value 0
[+61.58s] DEBUG: XServer 0: X server stopped
[+61.58s] DEBUG: Releasing VT 1
[+61.58s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+61.58s] DEBUG: Seat seat0: Display server stopped
[+61.58s] DEBUG: Seat seat0: Stopped
[+61.58s] DEBUG: Required seat has stopped
[+61.58s] DEBUG: Stopping display manager
[+61.58s] DEBUG: Display manager stopped
[+61.58s] DEBUG: Stopping daemon
[+61.58s] DEBUG: Exiting with return value 1

and seat0-greeter.log has a "No protocol specified" in there.

Comment 6 Christoph Junghans 2023-02-07 14:52:48 UTC
I installed another F37 with XFCE in a VM from the netinst media and the issue shows up there as well.

Comment 7 Aoife Moloney 2023-11-23 01:12:10 UTC
This message is a reminder that Fedora Linux 37 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 37 on 2023-12-05.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '37'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 37 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 8 Christoph Junghans 2023-12-17 00:31:51 UTC
https://github.com/canonical/lightdm/issues/291#issuecomment-1834402939 has the solution to the issue:

"Start lightdm after systemd-hostnamed.service by adding an appropriate line to /lib/systemd/system/lightdm.service."

Comment 9 Wolfgang Ulbrich 2023-12-28 10:13:24 UTC
Is this reproducible with fedora 38/39?
F37 is EOL.

Comment 10 Wolfgang Ulbrich 2023-12-28 10:21:03 UTC
Can you please open a pull request at upstream first? I don't see one in linked report at github.

Comment 11 Christoph Junghans 2023-12-28 11:59:52 UTC
(In reply to Wolfgang Ulbrich from comment #9)
> Is this reproducible with fedora 38/39?
> F37 is EOL.

Yup, still persists on F39. I updated the affected version two weeks ago.

Comment 12 Christoph Junghans 2023-12-28 17:29:56 UTC
(In reply to Wolfgang Ulbrich from comment #10)
> Can you please open a pull request at upstream first? I don't see one in
> linked report at github.

The lightdm.service files are distribution specific, but Github canonical/lightdm/pull/336 has the fix for Debian.

Comment 13 Thomas 2023-12-30 17:52:45 UTC
*** Bug 2252315 has been marked as a duplicate of this bug. ***

Comment 14 Christoph Junghans 2024-01-16 01:22:33 UTC
Upstream merged the fix for debian.

Comment 15 Fedora Update System 2024-01-26 19:09:37 UTC
FEDORA-2024-cd3ff85232 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-cd3ff85232

Comment 16 Fedora Update System 2024-01-26 19:09:41 UTC
FEDORA-EPEL-2024-b4ab66d80e has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-b4ab66d80e

Comment 17 Fedora Update System 2024-01-26 19:09:42 UTC
FEDORA-2024-96ac9f7948 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2024-96ac9f7948

Comment 18 Fedora Update System 2024-01-26 19:09:43 UTC
FEDORA-EPEL-2024-1134025600 has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-1134025600

Comment 19 Fedora Update System 2024-01-27 01:41:37 UTC
FEDORA-EPEL-2024-1134025600 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-1134025600

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 20 Fedora Update System 2024-01-27 01:53:07 UTC
FEDORA-EPEL-2024-b4ab66d80e has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-b4ab66d80e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 21 Fedora Update System 2024-01-27 02:34:59 UTC
FEDORA-2024-cd3ff85232 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-cd3ff85232`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-cd3ff85232

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 22 Fedora Update System 2024-01-27 03:05:42 UTC
FEDORA-2024-96ac9f7948 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-96ac9f7948`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-96ac9f7948

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 23 Fedora Update System 2024-01-31 02:04:20 UTC
FEDORA-2024-cd3ff85232 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 24 Fedora Update System 2024-02-05 01:38:53 UTC
FEDORA-EPEL-2024-1134025600 has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 25 Fedora Update System 2024-02-05 01:48:33 UTC
FEDORA-EPEL-2024-b4ab66d80e has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 26 Fedora Update System 2024-02-12 01:51:24 UTC
FEDORA-2024-96ac9f7948 (lightdm-1.32.0-7.fc38) has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.