Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2065901

Summary: gdm not landing the user in the new GNOME session after first login after a boot
Product: Red Hat Enterprise Linux 9 Reporter: Ian Laurie <nixuser>
Component: gdmAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED ERRATA QA Contact: Michael Boisvert <mboisver>
Severity: medium Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: bstinson, hdegoede, jwboyer, pekopec, pvlasin, rstrode, tpelka
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gdm-40.1-13.el9_0.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2068040 (view as bug list) Environment:
Last Closed: 2022-05-17 12:47:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2068040    
Attachments:
Description Flags
Log from last boot none

Description Ian Laurie 2022-03-19 07:01:16 UTC
Description of problem:
When you login to gdm after a boot, gdm [apparently] launches the user session, but the user lands right back in the greeter's login prompt.  If you try and login again, it works.

Version-Release number of selected component (if applicable):
gdm-40.1-13.el9.x86_64

How reproducible:
100% always.

Steps to Reproduce:
1. Boot.
2. Login at the greeter.
3.

Actual results:
You land back at the greeter.

Expected results:
Should be in a GNOME session.

Additional info:
Once you land back in the greeter, if you do a CTL + ALT + F2 you can switch to the GNOME session that started.

This is happening to me in a VirtualBox VM and is new since the last waves of updates circa mid March.  A month ago this wasn't happening.  I'm seeing this now on two VMs on different hosts, both after running recent updates.

Comment 1 Ian Laurie 2022-03-19 07:28:29 UTC
OK I've done a bit of testing:

I downgraded gdm from gdm-40.1-13.el9.x86_64 to gdm-40.1-12.el9.x86_64 and the problem went away.

I upgraded back to gdm-40.1-13.el9.x86_64 and the problem came back.

I once again downgraded to gdm-40.1-12.el9.x86_64 and the problem went away again.

Comment 2 Ray Strode [halfline] 2022-03-21 14:02:21 UTC
If you wait say 30 seconds after boot and then log in, does the problem still happen?

Comment 4 Ray Strode [halfline] 2022-03-21 14:22:42 UTC
It would also be useful if you could set Enable=true in the [debug] section of /etc/gdm/custom.conf , reboot, reproduce, and then post the output of

# journalctl -b > full-unfiltered-journal-log.txt

Comment 5 Ian Laurie 2022-03-22 03:11:37 UTC
Created attachment 1867344 [details]
Log from last boot

To answer the first question, waitng a period of time, even 10 minutes, doesn't fix the issue.

Here is the rquested log file.

Comment 6 Ray Strode [halfline] 2022-03-22 14:53:38 UTC
Thanks, so it looks like something in the login process is leading to a uevent getting triggered.

I think something like this should fix it:

@@ -712,2 +712,6 @@ udev_is_settled (GdmLocalDisplayFactory *factory)
         g_list_free_full (devices, g_object_unref);
+
+        if (is_settled)
+                g_clear_signal_handler (&factory->uevent_handler_id, factory->gudev_client);
+
         return is_settled;

I've posted an upstream fix here: https://gitlab.gnome.org/GNOME/gdm/-/merge_requests/175

I've got a centos9 stream merge request here: https://gitlab.com/redhat/centos-stream/rpms/gdm/-/merge_requests/18

and a scratch build here: http://people.redhat.com/rstrode/2065901/

Can you give it a try and confirm it addresses the issue?

Comment 9 Ian Laurie 2022-03-22 22:29:22 UTC
The scratch build gdm-40.1-14.el9.x86_64 has fixed the issue for me, thanks.

Comment 10 Ian Laurie 2022-03-22 22:32:17 UTC
I realize it is a much older version of gdm, but could this be related to BZ #2014820 by any chance?

Comment 11 Ray Strode [halfline] 2022-03-23 13:53:05 UTC
Ian, thanks for the confirmation.  bug 2014820 is unrelated, though, I'll take a quick look at it, too.

Comment 18 errata-xmlrpc 2022-05-17 12:47:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: gdm), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2393

Comment 19 Ray Strode [halfline] 2022-06-08 16:55:21 UTC
*** Bug 2094924 has been marked as a duplicate of this bug. ***