Hi,
here's some info about an issue I just encountered which I seem to have
fixed. Perhaps this is something that should be brought up with
GDM/Gnome or perhaps it's just a conflicting combination of packages.
Since my update of gnome-shell (51.0 -> 51.1) and gdm/libgdm (51.0 ->
51.1.1) yesterday I encountered an issue where GDM would automatically
spam fail login attempts after resume from suspend.
The symptoms were password input field not showing and "Authentication
failed" message flickering. Restarting GDM solved the issue but logging
in also required resetting the faillock (faillock --user <usr> --reset).
Uninstalling fprintd which I had installed but never got working
properly seems to have solved the issue.
Some logs from the issue for anyone interested:
Just after resume (filtered with 'grep -i gdm'):
---
Oct 30 09:16:09 mosquito gdm-password][3230]: Gdm: Could not start command
'/usr/lib/gdm-session-worker': Too many open files
Oct 30 09:16:09 mosquito gdm-password][3230]: GLib: g_child_watch_add_full:
assertion 'pid > 0' failed
Oct 30 09:16:09 mosquito gdm-password][3230]: Gdm: Tried to look up
non-existent conversation gdm-switchable-auth
Oct 30 09:16:09 mosquito gdm-password][3230]: Gdm: Could not start command
'/usr/lib/gdm-session-worker': Too many open files
Oct 30 09:16:09 mosquito gdm-password][3230]: GLib: g_child_watch_add_full:
assertion 'pid > 0' failed
Oct 30 09:16:09 mosquito gdm-password][3230]: Gdm: Tried to look up
non-existent conversation gdm-password
Oct 30 09:16:09 mosquito gdm-password][3230]: GLib-GIO:
g_dbus_server_get_client_address: assertion 'G_IS_DBUS_SERVER (server)' failed
Oct 30 09:16:09 mosquito gdm-password][3230]: GLib: g_str_has_prefix: assertion
'str != NULL' failed
Oct 30 09:16:09 mosquito gdm-password][3230]: GLib-GObject: invalid (NULL)
pointer instance
Oct 30 09:16:09 mosquito gdm-password][3230]: GLib-GObject:
g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Oct 30 09:16:09 mosquito gdm-password][3230]: Gdm: Cannot create worker D-Bus
server for the session: Unable to create socket: Too many open files
Oct 30 09:16:09 mosquito gdm-password][3230]: GLib-GIO:
g_dbus_server_get_client_address: assertion 'G_IS_DBUS_SERVER (server)' failed
Oct 30 09:16:09 mosquito gdm-password][3230]: GLib: g_str_has_prefix: assertion
'str != NULL' failed
Oct 30 09:16:09 mosquito gdm-password][3230]: GLib-GObject: invalid (NULL)
pointer instance
Oct 30 09:16:09 mosquito gdm-password][3230]: GLib-GObject:
g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Oct 30 09:16:09 mosquito gdm-password][3230]: Gdm: Cannot create greeter D-Bus
server for the session: Unable to create socket: Too many open files
Oct 30 09:16:09 mosquito gdm-password][3230]: GLib-GIO:
g_dbus_server_get_client_address: assertion 'G_IS_DBUS_SERVER (server)' failed
Oct 30 09:16:09 mosquito gdm-password][3230]: GLib: g_variant_new_string:
assertion 'string != NULL' failed
_getUserVerifierProxies@resource:///org/gnome/shell/gdm/userVerifier.js:326:59
begin@resource:///org/gnome/shell/gdm/userVerifier.js:97:40
begin@resource:///org/gnome/shell/gdm/authPrompt.js:1043:28
reset@resource:///org/gnome/shell/gdm/authPrompt.js:997:14
_onReset@resource:///org/gnome/shell/gdm/authPrompt.js:679:14
_init/<@resource:///org/gnome/shell/gdm/authPrompt.js:193:40
_connectAuthServices/</<@resource:///org/gnome/shell/gdm/userVerifier.js:417:44
_connectUserVerifierSignals/<@resource:///org/gnome/shell/gdm/authServices.js:329:33
Oct 30 09:16:12 mosquito gdm-password][3230]: GLib-GIO:
g_dbus_server_get_client_address: assertion 'G_IS_DBUS_SERVER (server)' failed
Oct 30 09:16:12 mosquito gdm-password][3230]: GLib: g_str_has_prefix: assertion
'str != NULL' failed
Oct 30 09:16:12 mosquito gdm-password][3230]: GLib-GObject: invalid (NULL)
pointer instance
Oct 30 09:16:12 mosquito gdm-password][3230]: GLib-GObject:
g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Oct 30 09:16:12 mosquito gdm-password][3230]: Gdm: Cannot create worker D-Bus
server for the session: Unable to create socket: Too many open files
Oct 30 09:16:12 mosquito gdm-password][3230]: GLib-GIO:
g_dbus_server_get_client_address: assertion 'G_IS_DBUS_SERVER (server)' failed
Oct 30 09:16:12 mosquito gdm-password][3230]: GLib: g_str_has_prefix: assertion
'str != NULL' failed
Oct 30 09:16:12 mosquito gdm-password][3230]: GLib-GObject: invalid (NULL)
pointer instance
Oct 30 09:16:12 mosquito gdm-password][3230]: GLib-GObject:
g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Oct 30 09:16:12 mosquito gdm-password][3230]: Gdm: Cannot create greeter D-Bus
server for the session: Unable to create socket: Too many open files
Oct 30 09:16:12 mosquito gdm-password][3230]: GLib-GIO:
g_dbus_server_get_client_address: assertion 'G_IS_DBUS_SERVER (server)' failed
Oct 30 09:16:12 mosquito gdm-password][3230]: GLib: g_variant_new_string:
assertion 'string != NULL' failed
_getUserVerifierProxies@resource:///org/gnome/shell/gdm/userVerifier.js:326:59
begin@resource:///org/gnome/shell/gdm/userVerifier.js:97:40
begin@resource:///org/gnome/shell/gdm/authPrompt.js:1043:28
reset@resource:///org/gnome/shell/gdm/authPrompt.js:997:14
Oct 30 09:16:44 mosquito systemd-logind[953]: New session '6' of user
'gdm-greeter' with class 'greeter' and type 'wayland'.
Oct 30 09:16:44 mosquito (systemd)[540860]: pam_warn(systemd-user:setcred):
function=[pam_sm_setcred] flags=0x8002 service=[systemd-user] terminal=[]
user=[gdm-greeter] ruser=[<unknown>] rhost=[<unknown>]
Oct 30 09:16:44 mosquito (systemd)[540860]: pam_unix(systemd-user:session):
session opened for user gdm-greeter(uid=60579) by gdm-greeter(uid=0)
Oct 30 09:16:44 mosquito systemd-logind[953]: New session '7' of user
'gdm-greeter' with class 'manager-early' and type 'unspecified'.
Oct 30 09:16:44 mosquito systemd[1]: Started Session 6 of User gdm-greeter.
Oct 30 09:16:46 mosquito gnome-shell[540976]: Registering session with GDM
Oct 30 09:16:47 mosquito gnome-shell[540976]: Registering display with GDM
Oct 30 09:17:06 mosquito systemd[540860]: [email protected]: Consumed
1.789s CPU time over 21.241s wall clock time, 459.2M memory peak.
Oct 30 09:17:06 mosquito gdm[1043]: Gdm: Child process -540952 was already dead.
Oct 30 09:17:16 mosquito (sd-pam)[540868]: pam_unix(systemd-user:session):
session closed for user gdm-greeter
Oct 30 09:17:16 mosquito sudo[542996]: linus : TTY=tty4 ; PWD=/home/linus ;
USER=root ; COMMAND=/usr/bin/systemctl restart gdm
Oct 30 09:17:17 mosquito gdm-password][3230]: pam_unix(gdm-password:session):
session closed for user linus
Oct 30 09:17:17 mosquito gdm-password][540178]: pam_unix(gdm-password:auth):
conversation failed
Oct 30 09:17:17 mosquito gdm-password][540200]: pam_unix(gdm-password:auth):
conversation failed
Oct 30 09:17:17 mosquito gdm-password][540189]: pam_unix(gdm-password:auth):
conversation failed
Oct 30 09:17:17 mosquito gdm-password][540178]: pam_unix(gdm-password:auth):
auth could not identify password for [linus]
Oct 30 09:17:17 mosquito gdm-password][540189]: pam_unix(gdm-password:auth):
auth could not identify password for [linus]
Oct 30 09:17:17 mosquito gdm-password][540200]: pam_unix(gdm-password:auth):
auth could not identify password for [linus]
---
The last 6 lines in this log repeat *a lot* after this.
After running 'systemctl restart gdm' (also filtered with grep -i gdm):
---
Oct 30 09:17:17 mosquito systemd[1]: gdm.service: Deactivated successfully.
Oct 30 09:17:17 mosquito systemd-logind[953]: New session '8' of user
'gdm-greeter' with class 'greeter' and type 'wayland'.
Oct 30 09:17:17 mosquito (systemd)[543212]: pam_warn(systemd-user:setcred):
function=[pam_sm_setcred] flags=0x8002 service=[systemd-user] terminal=[]
user=[gdm-greeter] ruser=[<unknown>] rhost=[<unknown>]
Oct 30 09:17:17 mosquito (systemd)[543212]: pam_unix(systemd-user:session):
session opened for user gdm-greeter(uid=60578) by gdm-greeter(uid=0)
Oct 30 09:17:17 mosquito systemd-logind[953]: New session '9' of user
'gdm-greeter' with class 'manager-early' and type 'unspecified'.
Oct 30 09:17:17 mosquito systemd[1]: Started Session 8 of User gdm-greeter.
Oct 30 09:17:18 mosquito gnome-shell[543247]: Registering session with GDM
Oct 30 09:17:19 mosquito gnome-shell[543247]: Registering display with GDM
Oct 30 09:17:30 mosquito gdm-password][545102]:
pam_faillock(gdm-password:auth): User linus is temporarily locked out due to 3
consecutive failed login attempts
Oct 30 09:17:57 mosquito gdm-password][545711]: gkr-pam: unable to locate
daemon control file
Oct 30 09:17:57 mosquito gdm-password][545711]: gkr-pam: stashed password to
try later in open session
Oct 30 09:17:57 mosquito gdm-password][545711]: pam_unix(gdm-password:session):
session opened for user linus(uid=1000) by linus(uid=0)
Oct 30 09:17:57 mosquito gdm-password][545711]: gkr-pam: unlocked login keyring
Oct 30 09:17:58 mosquito gnome-shell[546040]: Registering session with GDM
Oct 30 09:18:00 mosquito gnome-shell[546040]: Registering display with GDM
Oct 30 09:18:00 mosquito systemd[543212]: [email protected]: Consumed
3.972s CPU time over 43.260s wall clock time, 737.4M memory peak.
Oct 30 09:18:00 mosquito gdm[543179]: Gdm: Child process -543223 was already
dead.
Oct 30 09:18:10 mosquito (sd-pam)[543214]: pam_unix(systemd-user:session):
session closed for user gdm-greeter
Oct 30 09:30:23 mosquito systemd[1]: session-3.scope: Killing process 537946
(gdm-session-wor) with signal SIGTERM.
Oct 30 09:30:23 mosquito systemd[1]: session-3.scope: Killing process 537959
(gdm-session-wor) with signal SIGTERM.
Oct 30 09:30:23 mosquito gdm-password][545711]: pam_unix(gdm-password:session):
session closed for user linus
Oct 30 09:30:23 mosquito systemd[1]: session-3.scope: Killing process 537972
(gdm-session-wor) with signal SIGTERM.
Oct 30 09:30:23 mosquito systemd[1]: session-3.scope: Killing process 537985
(gdm-session-wor) with signal SIGTERM.
Oct 30 09:30:23 mosquito systemd[1]: session-3.scope: Killing process 537998
(gdm-session-wor) with signal SIGTERM.
Oct 30 09:30:23 mosquito systemd[1]: session-3.scope: Killing process 538011
(gdm-session-wor) with signal SIGTERM.
---
Same deal here that the last lines just spam. I'm guessing an equal
number of times to `ulimit -Sn`.
Since I seem to have solved the issue I guess this is mostly
informational at this point. Just thought someone might benefit from the
info. Not sure if I should try and report this to either fprintd whoever
maintains that or the gnome/GDM team. Although I'm thinking fprintd
might be the root cause here. I understand there is some new behavior
regarding login recently introduced in GDM.
// Linus