I had a similar issue.  This error in syslog finally lead me to my
solution:

(EE) systemd-logind: failed to get session: PID 10023 does not belong to
any known session

As a result of that error, gdm-x-session fails further along in the gdm3
start up process and aborts:

/usr/lib/gdm3/gdm-x-session[2849]: dbus-daemon[3479]: [session uid=136 
pid=3479] Activating service name='org.freedesktop.systemd1' requested by 
':1.0' (uid=136 pid=2849 comm="/usr/lib/gdm3/gdm-x-session gnome-session 
--autost" label="unconfined")
/usr/lib/gdm3/gdm-x-session[2849]: dbus-daemon[3479]: [session uid=136 
pid=3479] Activated service 'org.freedesktop.systemd1' failed: Process 
org.freedesktop.systemd1 exited with status 1
gdm-x-session: could not fetch environment: 
GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process 
org.freedesktop.systemd1 exited with status 1
gdm3: GdmManager: trying to register new display
gdm3: GdmManager: Error while retrieving session id for sender: Error getting 
session id from systemd: No data available
gdm-x-session: Could not register display: 
GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: No display available

The gdm3 service just keeps trying to start gdm-x-session over and over again, 
flooding syslog.
I fixed it by adding this line to /etc/pam.d/gdm-launch-environment:

    session optional        pam_systemd.so

My theory on the real problem is that pam-auth-update is run during some
package installs and it would have added pam_systemd to /etc/pam.d
/common-session.  However, I had done manual edits to at least one
/etc/pam.d/common-* file, in which case pam-auth-update aborts if "--
force" is not specified.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1773386

Title:
  Returned to login screen immediately after login

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1773386/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to