canonical / lightdm

Display Manager
GNU General Public License v3.0
827 stars 138 forks source link

gkr-pam: unable to locate daemon control file #70

Open Linuxfreak2 opened 5 years ago

Linuxfreak2 commented 5 years ago

Hi, i have some issues with lightdm and lightlocker. I do not understand which does whom affect. Unlocking the desktop with light-locker is buggy. And sometimes lightdm has back traces.

How can i track this down?

see: https://github.com/the-cavalry/light-locker/issues/139

see

journalctl -p 3 | grep light Apr 23 20:58:02 lightdm[1629]: gkr-pam: unable to locate daemon control file Apr 23 21:42:30 lightdm[14577]: gkr-pam: unable to locate daemon control file Apr 24 12:18:05 lightdm[16857]: gkr-pam: unable to locate daemon control file Apr 24 12:18:44 lightdm[17024]: gkr-pam: unable to locate daemon control file Apr 24 12:59:08 lightdm[1726]: gkr-pam: unable to locate daemon control file Apr 24 13:00:54 systemd-coredump[2004]: Process 1924 (light-locker) of ... 1000 dumped core.

4 0x000055c8d5e98cb4 n/a (light-locker)

                                            #9  0x000055c8d5e9b4f3 gs_listener_new (light-locker)
                                            #10 0x000055c8d5e97484 n/a (light-locker)
                                            #15 0x000055c8d5e97b03 gs_monitor_new (light-locker)
                                            #16 0x000055c8d5e96339 main (light-locker)
                                            #18 0x000055c8d5e9648e _start (light-locker)

Apr 24 13:14:33 lightdm[1366]: gkr-pam: unable to locate daemon control file Apr 24 22:36:29 lightdm[1428]: gkr-pam: unable to locate daemon control file Apr 24 22:36:38 lightdm[1500]: gkr-pam: unable to locate daemon control file Apr 24 22:38:11 systemd-coredump[1713]: Process 1632 (light-locker) of ... 1000 dumped core.

4 0x0000562c8001acb4 n/a (light-locker)

                                            #9  0x0000562c8001d4f3 gs_listener_new (light-locker)
                                            #10 0x0000562c80019484 n/a (light-locker)
                                            #15 0x0000562c80019b03 gs_monitor_new (light-locker)
                                            #16 0x0000562c80018339 main (light-locker)
                                            #18 0x0000562c8001848e _start (light-locker)

Apr 26 12:24:28 lightdm[1041]: gkr-pam: unable to locate daemon control file Apr 26 12:46:57 lightdm[1541]: gkr-pam: unable to locate daemon control file Apr 26 13:30:13 lightdm[1936]: gkr-pam: unable to locate daemon control file Apr 27 11:52:15 lightdm[5396]: gkr-pam: unable to locate daemon control file Apr 27 12:40:44 lightdm[5938]: gkr-pam: unable to locate daemon control file Apr 27 13:22:02 lightdm[6350]: gkr-pam: unable to locate daemon control file Apr 27 14:38:29 lightdm[1029]: gkr-pam: unable to locate daemon control file Apr 27 14:51:35 lightdm[1147]: gkr-pam: unable to locate daemon control file Apr 27 14:51:43 lightdm[1159]: gkr-pam: unable to locate daemon control file

Linuxfreak2 commented 5 years ago

see also: https://forum.manjaro.org/t/lightdm-gkr-pam-unable-to-locate-daemon-control-file/85219

Linuxfreak2 commented 5 years ago

right after unlocking the screen-locker:

Apr 29 18:17:07 lightdm[9653]: gkr-pam: unable to locate daemon control file Apr 29 18:17:11 systemd-coredump[9659]: Process 690 (xfwm4) of user 1000 dumped core.

                                            Stack trace of thread 690:
                                            #0  0x00007fd8ed314186 n/a (libglib-2.0.so.0)
                                            #1  0x00007fd8ed311f5c g_log_writer_default (libglib-2.0.so.0)
                                            #2  0x00007fd8ed308a49 g_log_structured_array (libglib-2.0.so.0)
                                            #3  0x00007fd8ed310f0d g_log_structured_standard (libglib-2.0.so.0)
                                            #4  0x00007fd8ed66d54e n/a (libgdk-3.so.0)
                                            #5  0x00007fd8ed67a6e5 n/a (libgdk-3.so.0)
                                            #6  0x00007fd8ecf9552a _XError (libX11.so.6)
                                            #7  0x00007fd8ecf923f8 n/a (libX11.so.6)
                                            #8  0x00007fd8ecf924a5 n/a (libX11.so.6)
                                            #9  0x00007fd8ecf93410 _XReply (libX11.so.6)
                                            #10 0x00007fd8ede36742 XIQueryDevice (libXi.so.6)
                                            #11 0x00007fd8ed66a1bd n/a (libgdk-3.so.0)
                                            #12 0x00007fd8ed67536d n/a (libgdk-3.so.0)
                                            #13 0x00007fd8ed674e36 n/a (libgdk-3.so.0)
                                            #14 0x00007fd8ed63dea2 gdk_display_get_event (libgdk-3.so.0)
                                            #15 0x00007fd8ed674aa4 n/a (libgdk-3.so.0)
                                            #16 0x00007fd8ed31a7bf g_main_context_dispatch (libglib-2.0.so.0)
                                            #17 0x00007fd8ed31c739 n/a (libglib-2.0.so.0)
                                            #18 0x00007fd8ed31d6d2 g_main_loop_run (libglib-2.0.so.0)
                                            #19 0x00007fd8ed945e6f gtk_main (libgtk-3.so.0)
                                            #20 0x00005591c54a3765 n/a (xfwm4)
                                            #21 0x00007fd8eca44ce3 __libc_start_main (libc.so.6)
                                            #22 0x00005591c54a395e n/a (xfwm4)

                                            Stack trace of thread 699:
                                            #0  0x00007fd8ecb110d1 __poll (libc.so.6)
                                            #1  0x00007fd8ed31c690 n/a (libglib-2.0.so.0)
                                            #2  0x00007fd8ed31c77e g_main_context_iteration (libglib-2.0.so.0)
                                            #3  0x00007fd8ed31c7d2 n/a (libglib-2.0.so.0)
                                            #4  0x00007fd8ed2f7c21 n/a (libglib-2.0.so.0)
                                            #5  0x00007fd8ecbeda92 start_thread (libpthread.so.0)
                                            #6  0x00007fd8ecb1bcd3 __clone (libc.so.6)

                                            Stack trace of thread 700:
                                            #0  0x00007fd8ecb110d1 __poll (libc.so.6)
                                            #1  0x00007fd8ed31c690 n/a (libglib-2.0.so.0)
                                            #2  0x00007fd8ed31d6d2 g_main_loop_run (libglib-2.0.so.0)
                                            #3  0x00007fd8ec428568 n/a (libgio-2.0.so.0)
                                            #4  0x00007fd8ed2f7c21 n/a (libglib-2.0.so.0)
                                            #5  0x00007fd8ecbeda92 start_thread (libpthread.so.0)
                                            #6  0x00007fd8ecb1bcd3 __clone (libc.so.6)

                                            Stack trace of thread 841:
                                            #0  0x00007fd8ecbf3bac pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                            #1  0x00007fd8e88471e4 n/a (nouveau_dri.so)
                                            #2  0x00007fd8e8846f08 n/a (nouveau_dri.so)
                                            #3  0x00007fd8ecbeda92 start_thread (libpthread.so.0)
                                            #4  0x00007fd8ecb1bcd3 __clone (libc.so.6)

-- Subject: Speicherabbild für Prozess 690 (@COREDUMP_COMM) generiert -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- Documentation: man:core(5) -- -- Prozess 690 (xfwm4) ist abgebrochen worden und -- ein Speicherabbild wurde generiert. -- -- Üblicherweise ist dies ein Hinweis auf einen Programmfehler und sollte -- als Fehler dem jeweiligen Hersteller gemeldet werden.

Linuxfreak2 commented 5 years ago

XFCE people believing: it is entirely in gtk+ and the result of an XError, I am not sure how that would relate to xfwm4.

Linuxfreak2 commented 5 years ago

so how does lightdm cooperate/work/interact with gtk?

khurshid-alam commented 5 years ago

This is not a lightdm bug, gnome session binary giving this error. It seems your dconf is corrupted ( try mv ~/.config/dconf/user ~/.config/dconf/user.bak). See this issue.

Linuxfreak2 commented 5 years ago

I am not on gnome, i use XFCE.

inxi -Fxzc0 System: Host: Kernel: 5.1.1-2-MANJARO x86_64 bits: 64 compiler: gcc v: 8.3.0 Desktop: Xfce 4.13.3git-b37930 Distro: Manjaro Linux

Linuxfreak2 commented 5 years ago

right after unlocking the screen-locker:

Apr 29 18:17:07 lightdm[9653]: gkr-pam: unable to locate daemon control file Apr 29 18:17:11 systemd-coredump[9659]: Process 690 (xfwm4) of user 1000 dumped core.

                                            Stack trace of thread 690:
                                            #0  0x00007fd8ed314186 n/a (libglib-2.0.so.0)
                                            #1  0x00007fd8ed311f5c g_log_writer_default (libglib-2.0.so.0)
                                            #2  0x00007fd8ed308a49 g_log_structured_array (libglib-2.0.so.0)
                                            #3  0x00007fd8ed310f0d g_log_structured_standard (libglib-2.0.so.0)
                                            #4  0x00007fd8ed66d54e n/a (libgdk-3.so.0)
                                            #5  0x00007fd8ed67a6e5 n/a (libgdk-3.so.0)
                                            #6  0x00007fd8ecf9552a _XError (libX11.so.6)
                                            #7  0x00007fd8ecf923f8 n/a (libX11.so.6)
                                            #8  0x00007fd8ecf924a5 n/a (libX11.so.6)
                                            #9  0x00007fd8ecf93410 _XReply (libX11.so.6)
                                            #10 0x00007fd8ede36742 XIQueryDevice (libXi.so.6)
                                            #11 0x00007fd8ed66a1bd n/a (libgdk-3.so.0)
                                            #12 0x00007fd8ed67536d n/a (libgdk-3.so.0)
                                            #13 0x00007fd8ed674e36 n/a (libgdk-3.so.0)
                                            #14 0x00007fd8ed63dea2 gdk_display_get_event (libgdk-3.so.0)
                                            #15 0x00007fd8ed674aa4 n/a (libgdk-3.so.0)
                                            #16 0x00007fd8ed31a7bf g_main_context_dispatch (libglib-2.0.so.0)
                                            #17 0x00007fd8ed31c739 n/a (libglib-2.0.so.0)
                                            #18 0x00007fd8ed31d6d2 g_main_loop_run (libglib-2.0.so.0)
                                            #19 0x00007fd8ed945e6f gtk_main (libgtk-3.so.0)
                                            #20 0x00005591c54a3765 n/a (xfwm4)
                                            #21 0x00007fd8eca44ce3 __libc_start_main (libc.so.6)
                                            #22 0x00005591c54a395e n/a (xfwm4)

                                            Stack trace of thread 699:
                                            #0  0x00007fd8ecb110d1 __poll (libc.so.6)
                                            #1  0x00007fd8ed31c690 n/a (libglib-2.0.so.0)
                                            #2  0x00007fd8ed31c77e g_main_context_iteration (libglib-2.0.so.0)
                                            #3  0x00007fd8ed31c7d2 n/a (libglib-2.0.so.0)
                                            #4  0x00007fd8ed2f7c21 n/a (libglib-2.0.so.0)
                                            #5  0x00007fd8ecbeda92 start_thread (libpthread.so.0)
                                            #6  0x00007fd8ecb1bcd3 __clone (libc.so.6)

                                            Stack trace of thread 700:
                                            #0  0x00007fd8ecb110d1 __poll (libc.so.6)
                                            #1  0x00007fd8ed31c690 n/a (libglib-2.0.so.0)
                                            #2  0x00007fd8ed31d6d2 g_main_loop_run (libglib-2.0.so.0)
                                            #3  0x00007fd8ec428568 n/a (libgio-2.0.so.0)
                                            #4  0x00007fd8ed2f7c21 n/a (libglib-2.0.so.0)
                                            #5  0x00007fd8ecbeda92 start_thread (libpthread.so.0)
                                            #6  0x00007fd8ecb1bcd3 __clone (libc.so.6)

                                            Stack trace of thread 841:
                                            #0  0x00007fd8ecbf3bac pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                            #1  0x00007fd8e88471e4 n/a (nouveau_dri.so)
                                            #2  0x00007fd8e8846f08 n/a (nouveau_dri.so)
                                            #3  0x00007fd8ecbeda92 start_thread (libpthread.so.0)
                                            #4  0x00007fd8ecb1bcd3 __clone (libc.so.6)

-- Subject: Speicherabbild für Prozess 690 (@COREDUMP_COMM) generiert

-- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- Documentation: man:core(5)

-- Prozess 690 (xfwm4) ist abgebrochen worden und

-- ein Speicherabbild wurde generiert.

-- Üblicherweise ist dies ein Hinweis auf einen Programmfehler und sollte -- als Fehler dem jeweiligen Hersteller gemeldet werden.

Yup, this issue systemd-coredump[9659]: Process 690 (xfwm4) of user 1000 dumped core. i solved with the XFCE guys.

Linuxfreak2 commented 5 years ago

I now use: lightdm --version lightdm 1.28.0 the issu: lightdm[9653]: gkr-pam: unable to locate daemon control file is gone now.

But instead i have now: journalctl -p 4 -b -0 lightdm[607]: gkr-pam: no password is available for user

Linuxfreak2 commented 5 years ago

So? we can close gkr-pam: unable to locate daemon control file #70 and open lightdm[607]: gkr-pam: no password is available for user ?

LF

ghost commented 5 years ago

Linux SS 4.19.42-1-MANJARO #1 SMP PREEMPT Fri May 10 20:52:43 UTC 2019 x86_64 GNU/Linux

still get this error,And my system is up to date

sgse commented 5 years ago

Jun 13 17:42:11 mx lightdm[1013]: gkr-pam: unable to locate daemon control file [~] >> lightdm --version lightdm 1.28.0

[~] >> inxi -Fxzc0 System: Host: manjaro-xfce Kernel: 5.1.9-2-MANJARO x86_64 bits: 64 compiler: gcc v: 8.3.0 Desktop: i3 4.16.1 Distro: Manjaro Linux

System is up to date.

HaleTom commented 5 years ago
Jul 12 17:15:52 svelte systemd-logind[644]: Lid opened.
Jul 12 17:15:55 svelte lightdm[21257]: gkr-pam: unable to locate daemon control file
Jul 12 17:15:55 svelte NetworkManager[13594]: <info>  [1562926555.7414] device (wlp2s0): supplicant interface state: disconnected -> scanning
Jul 12 17:15:55 svelte NetworkManager[13594]: <info>  [1562926555.7415] device (p2p-dev-wlp2s0): supplicant management interface state: disconnected -> scanning
Jul 12 17:15:56 svelte systemd[1]: session-c8.scope: Killing process 21201 (lightdm) with signal SIGTERM.
Jul 12 17:15:56 svelte systemd[1]: session-c8.scope: Killing process 21221 (lightdm-gtk-gre) with signal SIGTERM.
Jul 12 17:15:56 svelte systemd[1]: Stopping Session c8 of user lightdm.

Up to date Manjaro linux.

das-nervt commented 5 years ago

same here since weeks... Jul 29 00:33:25 X3450 lightdm[918]: gkr-pam: unable to locate daemon control file System: Host: X3450 Kernel: 5.2.2-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.1.0 Desktop: N/A Distro: Manjaro Linux Kernel 4.16, 4.19, 5.2 all the same result, any suggestions?

volker-raschek commented 5 years ago

same issue here..

journald log

markus@markus-nb:~$ journalctl --unit lightdm.service -f 
-- Logs begin at Mon 2019-03-25 17:19:21 CET. --
Aug 30 09:53:51 markus-nb lightdm[14303]: gkr-pam: unable to locate daemon control file
Aug 30 09:53:51 markus-nb lightdm[14303]: pam_unix(lightdm:session): session opened for user markus by (uid=0)
Aug 30 09:53:51 markus-nb lightdm[14303]: gkr-pam: unlocked login keyring
Aug 30 09:53:51 markus-nb lightdm[14303]: pam_unix(lightdm:session): session closed for user markus
Aug 30 09:53:52 markus-nb lightdm[14427]: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)

System Informations


markus@markus-nb:~$ uname -a
Linux markus-nb 5.2.10-arch1-1-ARCH #1 SMP PREEMPT Sun Aug 25 18:01:31 UTC 2019 x86_64 GNU/Linux
fernandoracca commented 4 years ago
gkr-pam: unable to locate daemon control file

is not an issue specific to lightdm it seems.

I'm trying to track this problem that i'm currently experiencing on latest version of Ubuntu, 19.10, and it's just gdm3

https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1817128 https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/1818616

Even after backup /removal of dconf as @khurshid-alam suggested or even reset, it still doesn't work

daniejstriata commented 4 years ago

I see this on Fedora 31 Cinnamon spin:

Nov 20 18:36:05 xxx systemd[1]: Starting Light Display Manager...
Nov 20 18:36:09 xxx systemd[1]: Started Light Display Manager.
Nov 20 18:36:11 xxx lightdm[7413]: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
Nov 20 18:36:19 xxx lightdm[7513]: gkr-pam: unable to locate daemon control file
Nov 20 18:36:19 xxx lightdm[7513]: pam_unix(lightdm:session): session opened for user xxx by (uid=0)
-- Reboot --
Nov 20 20:19:54 xxx systemd[1]: Starting Light Display Manager...
Nov 20 20:19:55 xxx systemd[1]: Started Light Display Manager.
Nov 20 20:19:58 xxx lightdm[2180]: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
Nov 20 20:20:05 xxx lightdm[2275]: gkr-pam: unable to locate daemon control file
Nov 20 20:20:05 xxx lightdm[2275]: pam_unix(lightdm:session): session opened for user xxx by (uid=0)
darksystem23 commented 4 years ago

I have the same problem:

Manjaro XFCE (Xfce 4.14 and lightdm 1.30.0)

The only issue on my system: lightdm[1309]: gkr-pam: unable to locate daemon control file

jshcmpbll commented 4 years ago

Same problem:

Manjaro i3 (i3 version 4.17.1 and lightdm 1.30.0)

Feb 16 16:03:24 jsh-server lightdm[901]: pam_succeed_if(lightdm-autologin:auth): requirement "user ingroup autologin" was met by user "jsh"
Feb 16 16:03:24 jsh-server lightdm[901]: gkr-pam: no password is available for user
Feb 16 16:03:24 jsh-server lightdm[901]: pam_unix(lightdm-autologin:session): session opened for user jsh by (uid=0)
Feb 16 16:03:25 jsh-server lightdm[901]: pam_unix(lightdm-autologin:session): session closed for user jsh
Feb 16 16:03:26 jsh-server lightdm[1754]: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
Feb 16 16:03:44 jsh-server lightdm[1873]: gkr-pam: unable to locate daemon control file
Feb 16 16:03:44 jsh-server lightdm[1873]: pam_unix(lightdm:session): session opened for user jsh by (uid=0)
Feb 16 16:03:44 jsh-server lightdm[1873]: pam_unix(lightdm:session): session closed for user jsh
Feb 16 16:03:46 jsh-server lightdm[1917]: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
huyhoang8398 commented 4 years ago

same problem , Archlinux kernel 5.5.8-arch1-1, xfce

InvisibleRasta commented 4 years ago

same here archlinux 5.6.3-arch1-1

wanqx commented 4 years ago

same problem on 5.6.3-arch1-1 with gnome+i3wm: gdm-password][1181]: gkr-pam: unable to locate daemon control file

jcuenod commented 4 years ago

Possibly related: https://discussion.fedoraproject.org/t/gkr-pam-unable-to-locate-daemon-control-file/18102 (I'm not using fish but I do use zsh and have a bunch of stuff in my .bashrc and .zshrc)

ghost commented 4 years ago

Problem still exists in Arch Linux.

Kernel: Linux 5.6.7.arch1-1 LightDM: 1:1.30.0-2 gnome-keyring: 1:3.36.0-1 DE: Xfce 4.14

why-not-try-calmer commented 4 years ago

Same issue , Fedora 32 with KDE 5.18.5

rhee876527 commented 4 years ago

Bump. Issue still present in Arch linux 5.7 Gnome.

parametriq commented 4 years ago

Manjaro Deepin 20.0.3; lightdm 1.30 -- same issue

zhenjieliang commented 4 years ago

Manjaro 5.6.16-1-MANJARO lightdm 1.30.0 i3wm i3 version 4.18.1 same issue.

dubrovskyi commented 4 years ago

same problem on 5.7.9-1-MANJARO x86_64

mielouk commented 4 years ago

This bug prevents disabling the login screen after hibernation/suspend.

This bug breaks login for some people.

This bug is more than a year old.

This bug should be fixed.

Please do so.

jshcmpbll commented 4 years ago

I ended up fixing the issue by going through all my config files and found out one of them was breaking it. It took a good amount of time and unfortunately I don't remember which one it was but it wasn't an issue with lightdm, it was a config issue on my end and this error was just a masking error..

If you are stuck with this I would recommend changing to a different TTY -> CRTL+ALT+(F1-F7). Log into your account, make backups of all your config files and start removing them one at a time until you find the culprit.

mielouk commented 4 years ago

This happens on fresh installs. So this is not a config problem on the user side.

jshcmpbll commented 4 years ago

Welp, best of luck then. That was the issue I had and clearly not everyone has this issue.

mielouk commented 4 years ago

Many people have many issues with this. That's the big problem.

Mintulix commented 4 years ago

This seems to be fixed upstream in gnome-keyring, but not yet in latest Ubuntu version 3.36.0-1ubuntu1: https://gitlab.gnome.org/GNOME/gnome-keyring/-/merge_requests/28

Note the reference on top

Closes 28 (closed) https://gitlab.gnome.org/GNOME/gnome-keyring/-/issues/28

jrefior commented 4 years ago

After installing NVidia driver, I later tried to update kernel and couldn't boot on the new kernel. I saw this error in the logs and at first I thought it might be related. But now I see it's always been in my boot logs, so is likely not the cause. I see Xorg crashed, and system failed to start Light Display Manager on the new kernel -- probably unrelated to this error message.

mareksamec commented 3 years ago

I am not sure if it is related, but I had similar issue. I am running Arch and dwm. I had gnome-keyring installed too (but I am mostly runnig Qt apps). When I had my default shell as zshell I got this error and I could not log in. However when i changed default shell to bash, it started working again and this error was no longer shown.

ZainlessBrombie commented 3 years ago

The problem seems to be that XDG_RUNTIME_DIR is not set. This can be "fixed" by adding XDG_RUNTIME_DIR=/run/user/$UID to /etc/profile (or, more appropriately in my case, to xdg_dirs_desktop_session.sh)

(Note: I am not fully aware if there are negative consequences to this)

D33M0N commented 3 years ago

The problem seems to be that XDG_RUNTIME_DIR is not set.

On my case, I have XDG_RUNTIME_DIR set and I still get the lightdm[1017]: gkr-pam: unable to locate daemon control file

$ echo $XDG_RUNTIME_DIR
/run/user/1000
ZainlessBrombie commented 3 years ago

@D33M0N it needs to be set via /etc/profile to be available to gnome-keyring, as your shell will set it somewhere else and always has it

D33M0N commented 3 years ago

@D33M0N it needs to be set via /etc/profile to be available to gnome-keyring, as your shell will set it somewhere else and always has it

Well. Added it there also now.

$ cat /etc/profile | grep XDG
XDG_RUNTIME_DIR=/run/user/$UID

rebooted and .... no cigar :D

nov   21 17:21:52 Zen lightdm[1015]: gkr-pam: unable to locate daemon control file

(or do I have to add "export" line there also? like export XDG_RUNTIME_DIR after the set line?)

ZainlessBrombie commented 3 years ago

Oh wow that is VERY strange.
The following is where the error is generated:

res = get_control_file(ph, control);
if (res != GKD_CONTROL_RESULT_OK) {
    syslog (GKR_LOG_ERR, "gkr-pam: unable to locate daemon control file");
    return PAM_SERVICE_ERR;
}

get_control_file has three exit points, two for errors:

control_root = get_any_env (ph, ENV_CONTROL);
if (control_root == NULL) {
    control_root = get_any_env (ph, "XDG_RUNTIME_DIR");
    if (control_root == NULL)
        return GKD_CONTROL_RESULT_NO_DAEMON;

with "GNOME_KEYRING_CONTROL" being #define d as "GNOME_KEYRING_CONTROL" and

if (strlen (control_root) + strlen (suffix) + 1 > MAX_CONTROL_SIZE) {
    syslog (GKR_LOG_ERR, "gkr-pam: address is too long for unix socket path: %s/%s",
        control, suffix);
    return GKD_CONTROL_RESULT_FAILED;
}

(But this would result in the additional log-line)

Since the latter does not show, neither GNOME_KEYRING_CONTROL nor XDG_RUNTIME_DIR are set. Normally, it should read this from /etc/profile. Or rather it does this in my case. Can you troubleshoot why it doesn't do this?

D33M0N commented 3 years ago

frankly I have no idea how to "troubleshoot this". what exactly is it even looking for? I can see if it's even there maybe?

[deemon@Zen ~]$ echo $XDG_RUNTIME_DIR
/run/user/1000
[deemon@Zen ~]$ l /run/user/1000/
drwx------   - deemon 23 nov    3:04 dbus-1
drwx------   - deemon 23 nov    3:18 dconf
drwx------   - deemon 23 nov    3:04 gnupg
dr-x------   - deemon 23 nov    3:04 gvfs
drwx------   - deemon 23 nov    3:18 keyring
drwxr-xr-x   - deemon 23 nov    3:04 p11-kit
drwx------   - deemon 23 nov    3:04 pulse
drwxr-xr-x   - deemon 23 nov    3:04 systemd
srw-rw-rw-   0 deemon 23 nov    3:04 bus
srwxr-xr-x   0 deemon 23 nov   11:55 discord-ipc-0
|rw-------   0 deemon 23 nov    3:14 doublecmd.pipe
.rw------- 306 deemon 23 nov    3:04 ICEauthority
srw-rw-rw-   0 deemon 23 nov    3:04 pipewire-0
[deemon@Zen ~]$ l /run/user/1000/keyring/
srwxr-xr-x 0 deemon 23 nov    3:18 control
[deemon@Zen ~]$ cat /run/user/1000/keyring/control 
cat: /run/user/1000/keyring/control: No such device or address
[deemon@Zen ~]$ 

what does this "s" at the start of the file/directory even mean? first time I see something like this. also the file named "control" seems to be 0 bytes.

ZainlessBrombie commented 3 years ago

s is the setuid bit. For executables it means that the executable will run as its file owner, even if a different user calls it (they need x / execute permissions ofc). The reason that it appears to be 0 bytes is that control ist not an "ordinary" file, but a socket. Why systemd-login doesn't set the XDG_UNTIME_DIR.... I honestly don't currently know.

wNORESET commented 3 years ago

Don't know if this can help, but after setting the XDG_RUNTIME_DIR as suggested, XDG_RUNTIME_DIR=/run/user/$UID to /etc/profile the problem appear to be fixed even though the error is still present within the journal. It seems that gkr-pam isn't able to locate the file at the begin, although, just a second later it got to properly unlock the keyring as reported here:

sudo journalctl -xb | grep gkr-pam
nov 26 01:46:49 argon gdm-password][662]: gkr-pam: unable to locate daemon control file
nov 26 01:46:49 argon gdm-password][662]: gkr-pam: stashed password to try later in open session
nov 26 01:46:50 argon gdm-password][662]: gkr-pam: gnome-keyring-daemon started properly and unlocked keyring
D33M0N commented 3 years ago

Don't know what your "problem" was that got fixed, but mine is that there even is this error message in journal.

ZainlessBrombie commented 3 years ago

@D33M0N ok at least 60% sure adding XDG_RUNTIME_DIR DEFAULT=/run/user/$UID to your /etc/security/pam_env.conf fixes it ^^

wNORESET commented 3 years ago

@ZainlessBrombie In my case setting XDG_RUNTIME_DIR DEFAULT=/run/user/$UID in /etc/security/pam_env.conf made my system freeze after the boot messages.

This is what the journal is reporting about the mentioned boot process. NB: Don't know why it is trying to start the job on user@120.service, the UID of my user is 1000.

nov 27 15:12:15 argon gdm-launch-environment][412]: pam_env(gdm-launch-environment:setcred): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:16 argon systemd[419]: pam_env(systemd-user:session): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:16 argon systemd[419]: Failed to allocate manager object: Permission denied
nov 27 15:12:16 argon systemd[1]: Failed to start User Manager for UID 120.
░░ Subject: A start job for unit user@120.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit user@120.service has finished with a failure.
░░ 
░░ The job identifier is 732 and the job result is failed.
nov 27 15:12:16 argon gdm-launch-environment][412]: pam_env(gdm-launch-environment:session): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:16 argon gdm-launch-environment][412]: pam_env(gdm-launch-environment:setcred): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:16 argon gdm-launch-environment][441]: pam_env(gdm-launch-environment:setcred): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:16 argon systemd[445]: pam_env(systemd-user:session): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:16 argon systemd[445]: Failed to allocate manager object: Permission denied
nov 27 15:12:16 argon systemd[1]: Failed to start User Manager for UID 120.
░░ Subject: A start job for unit user@120.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit user@120.service has finished with a failure.
░░ 
░░ The job identifier is 990 and the job result is failed.
nov 27 15:12:16 argon gdm-launch-environment][441]: pam_env(gdm-launch-environment:session): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:17 argon gdm-x-session[447]: GLib: g_variant_new_string: assertion 'string != NULL' failed
nov 27 15:12:17 argon gdm-x-session[447]: GLib: g_environ_setenv: assertion 'value != NULL' failed
nov 27 15:12:17 argon systemd-coredump[473]: Process 464 (gnome-session-b) of user 120 dumped core.

                                             Stack trace of thread 464:
                                             #0  0x00007f6521eeca85 __strlen_avx2 (libc.so.6 + 0x162a85)
                                             #1  0x00007f6522017855 IceLockAuthFile (libICE.so.6 + 0x5855)
                                             #2  0x00005641fb3c28a9 n/a (gnome-session-binary + 0x288a9)
                                             #3  0x00007f65221e4f46 n/a (libgobject-2.0.so.0 + 0x20f46)
                                             #4  0x00007f65221e68a4 g_object_new_valist (libgobject-2.0.so.0 + 0x228a4)
                                             #5  0x00007f65221e6c1a g_object_new (libgobject-2.0.so.0 + 0x22c1a)
                                             #6  0x00005641fb3b7b2c n/a (gnome-session-binary + 0x1db2c)
                                             #7  0x00007f65221df6cf n/a (libgobject-2.0.so.0 + 0x1b6cf)
                                             #8  0x00007f65221e0c5e n/a (libgobject-2.0.so.0 + 0x1cc5e)
                                             #9  0x00005641fb3b741a n/a (gnome-session-binary + 0x1d41a)
                                             #10 0x00007f65221e4f46 n/a (libgobject-2.0.so.0 + 0x20f46)
                                             #11 0x00007f65221e68a4 g_object_new_valist (libgobject-2.0.so.0 + 0x228a4)
                                             #12 0x00007f65221e6c1a g_object_new (libgobject-2.0.so.0 + 0x22c1a)
                                             #13 0x00005641fb3c3a72 n/a (gnome-session-binary + 0x29a72)
                                             #14 0x00007f652231cc58 n/a (libgio-2.0.so.0 + 0x100c58)
                                             #15 0x00007f65222bd0f4 n/a (libgio-2.0.so.0 + 0xa10f4)
                                             #16 0x00007f65222c1639 n/a (libgio-2.0.so.0 + 0xa5639)
                                             #17 0x00007f6522319ef3 n/a (libgio-2.0.so.0 + 0xfdef3)
                                             #18 0x00007f65222bd0f4 n/a (libgio-2.0.so.0 + 0xa10f4)
                                             #19 0x00007f65222bd129 n/a (libgio-2.0.so.0 + 0xa1129)
                                             #20 0x00007f65220e2914 g_main_context_dispatch (libglib-2.0.so.0 + 0x52914)
                                             #21 0x00007f65221367d1 n/a (libglib-2.0.so.0 + 0xa67d1)
                                             #22 0x00007f65220e1e63 g_main_loop_run (libglib-2.0.so.0 + 0x51e63)
                                             #23 0x00005641fb3a566f n/a (gnome-session-binary + 0xb66f)
                                             #24 0x00007f6521db2152 __libc_start_main (libc.so.6 + 0x28152)
                                             #25 0x00005641fb3a5d4e n/a (gnome-session-binary + 0xbd4e)

                                             Stack trace of thread 468:
                                             #0  0x00007f6521e7f46f __poll (libc.so.6 + 0xf546f)
                                             #1  0x00007f652213675f n/a (libglib-2.0.so.0 + 0xa675f)
                                             #2  0x00007f65220e1121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                                             #3  0x00007f65220e1172 n/a (libglib-2.0.so.0 + 0x51172)
                                             #4  0x00007f652210fce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007f6521c5b3e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007f6521e8a293 __clone (libc.so.6 + 0x100293)

                                             Stack trace of thread 471:
                                             #0  0x00007f6521e84d5d syscall (libc.so.6 + 0xfad5d)
                                             #1  0x00007f652212f8bb g_cond_wait_until (libglib-2.0.so.0 + 0x9f8bb)
                                             #2  0x00007f65220b2813 n/a (libglib-2.0.so.0 + 0x22813)
                                             #3  0x00007f6522112ceb n/a (libglib-2.0.so.0 + 0x82ceb)
                                             #4  0x00007f652210fce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007f6521c5b3e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007f6521e8a293 __clone (libc.so.6 + 0x100293)

                                             Stack trace of thread 469:
                                             #0  0x00007f6521e7f46f __poll (libc.so.6 + 0xf546f)
                                             #1  0x00007f652213675f n/a (libglib-2.0.so.0 + 0xa675f)
                                             #2  0x00007f65220e1e63 g_main_loop_run (libglib-2.0.so.0 + 0x51e63)
                                             #3  0x00007f652231dfe8 n/a (libgio-2.0.so.0 + 0x101fe8)
                                             #4  0x00007f652210fce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007f6521c5b3e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007f6521e8a293 __clone (libc.so.6 + 0x100293)

                                             Stack trace of thread 470:
                                             #0  0x00007f6521e7f46f __poll (libc.so.6 + 0xf546f)
                                             #1  0x00007f652213675f n/a (libglib-2.0.so.0 + 0xa675f)
                                             #2  0x00007f65220e1121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                                             #3  0x00007f65223fac0e n/a (libdconfsettings.so + 0x5c0e)
                                             #4  0x00007f652210fce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007f6521c5b3e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007f6521e8a293 __clone (libc.so.6 + 0x100293)
░░ Subject: Process 464 (gnome-session-b) dumped core
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ Documentation: man:core(5)
░░ 
░░ Process 464 (gnome-session-b) crashed and dumped core.
░░ 
░░ This usually indicates a programming error in the crashing program and
░░ should be reported to its vendor as a bug.
nov 27 15:12:17 argon gdm-launch-environment][441]: pam_env(gdm-launch-environment:setcred): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:17 argon gdm-launch-environment][479]: pam_env(gdm-launch-environment:setcred): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:17 argon systemd[484]: pam_env(systemd-user:session): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:17 argon systemd[484]: Failed to allocate manager object: Permission denied
nov 27 15:12:17 argon systemd[1]: Failed to start User Manager for UID 120.
░░ Subject: A start job for unit user@120.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit user@120.service has finished with a failure.
░░ 
░░ The job identifier is 1089 and the job result is failed.
nov 27 15:12:17 argon gdm-launch-environment][479]: pam_env(gdm-launch-environment:session): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:18 argon gdm-x-session[486]: GLib: g_variant_new_string: assertion 'string != NULL' failed
nov 27 15:12:18 argon gdm-x-session[486]: GLib: g_environ_setenv: assertion 'value != NULL' failed
nov 27 15:12:18 argon systemd-coredump[512]: Process 503 (gnome-session-b) of user 120 dumped core.

                                             Stack trace of thread 503:
                                             #0  0x00007f0616510a85 __strlen_avx2 (libc.so.6 + 0x162a85)
                                             #1  0x00007f061663b855 IceLockAuthFile (libICE.so.6 + 0x5855)
                                             #2  0x000055838783e8a9 n/a (gnome-session-binary + 0x288a9)
                                             #3  0x00007f0616808f46 n/a (libgobject-2.0.so.0 + 0x20f46)
                                             #4  0x00007f061680a8a4 g_object_new_valist (libgobject-2.0.so.0 + 0x228a4)
                                             #5  0x00007f061680ac1a g_object_new (libgobject-2.0.so.0 + 0x22c1a)
                                             #6  0x0000558387833b2c n/a (gnome-session-binary + 0x1db2c)
                                             #7  0x00007f06168036cf n/a (libgobject-2.0.so.0 + 0x1b6cf)
                                             #8  0x00007f0616804c5e n/a (libgobject-2.0.so.0 + 0x1cc5e)
                                             #9  0x000055838783341a n/a (gnome-session-binary + 0x1d41a)
                                             #10 0x00007f0616808f46 n/a (libgobject-2.0.so.0 + 0x20f46)
                                             #11 0x00007f061680a8a4 g_object_new_valist (libgobject-2.0.so.0 + 0x228a4)
                                             #12 0x00007f061680ac1a g_object_new (libgobject-2.0.so.0 + 0x22c1a)
                                             #13 0x000055838783fa72 n/a (gnome-session-binary + 0x29a72)
                                             #14 0x00007f0616940c58 n/a (libgio-2.0.so.0 + 0x100c58)
                                             #15 0x00007f06168e10f4 n/a (libgio-2.0.so.0 + 0xa10f4)
                                             #16 0x00007f06168e5639 n/a (libgio-2.0.so.0 + 0xa5639)
                                             #17 0x00007f061693def3 n/a (libgio-2.0.so.0 + 0xfdef3)
                                             #18 0x00007f06168e10f4 n/a (libgio-2.0.so.0 + 0xa10f4)
                                             #19 0x00007f06168e1129 n/a (libgio-2.0.so.0 + 0xa1129)
                                             #20 0x00007f0616706914 g_main_context_dispatch (libglib-2.0.so.0 + 0x52914)
                                             #21 0x00007f061675a7d1 n/a (libglib-2.0.so.0 + 0xa67d1)
                                             #22 0x00007f0616705e63 g_main_loop_run (libglib-2.0.so.0 + 0x51e63)
                                             #23 0x000055838782166f n/a (gnome-session-binary + 0xb66f)
                                             #24 0x00007f06163d6152 __libc_start_main (libc.so.6 + 0x28152)
                                             #25 0x0000558387821d4e n/a (gnome-session-binary + 0xbd4e)

                                             Stack trace of thread 510:
                                             #0  0x00007f06164a8d5d syscall (libc.so.6 + 0xfad5d)
                                             #1  0x00007f06167538bb g_cond_wait_until (libglib-2.0.so.0 + 0x9f8bb)
                                             #2  0x00007f06166d6813 n/a (libglib-2.0.so.0 + 0x22813)
                                             #3  0x00007f0616736ceb n/a (libglib-2.0.so.0 + 0x82ceb)
                                             #4  0x00007f0616733ce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007f061627f3e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007f06164ae293 __clone (libc.so.6 + 0x100293)

                                             Stack trace of thread 509:
                                             #0  0x00007f06164a346f __poll (libc.so.6 + 0xf546f)
                                             #1  0x00007f061675a75f n/a (libglib-2.0.so.0 + 0xa675f)
                                             #2  0x00007f0616705121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                                             #3  0x00007f0616a1ec0e n/a (libdconfsettings.so + 0x5c0e)
                                             #4  0x00007f0616733ce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007f061627f3e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007f06164ae293 __clone (libc.so.6 + 0x100293)

                                             Stack trace of thread 508:
                                             #0  0x00007f06164a346f __poll (libc.so.6 + 0xf546f)
                                             #1  0x00007f061675a75f n/a (libglib-2.0.so.0 + 0xa675f)
                                             #2  0x00007f0616705e63 g_main_loop_run (libglib-2.0.so.0 + 0x51e63)
                                             #3  0x00007f0616941fe8 n/a (libgio-2.0.so.0 + 0x101fe8)
                                             #4  0x00007f0616733ce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007f061627f3e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007f06164ae293 __clone (libc.so.6 + 0x100293)

                                             Stack trace of thread 507:
                                             #0  0x00007f06164a346f __poll (libc.so.6 + 0xf546f)
                                             #1  0x00007f061675a75f n/a (libglib-2.0.so.0 + 0xa675f)
                                             #2  0x00007f0616705121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                                             #3  0x00007f0616705172 n/a (libglib-2.0.so.0 + 0x51172)
                                             #4  0x00007f0616733ce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007f061627f3e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007f06164ae293 __clone (libc.so.6 + 0x100293)
░░ Subject: Process 503 (gnome-session-b) dumped core
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ Documentation: man:core(5)
░░ 
░░ Process 503 (gnome-session-b) crashed and dumped core.
░░ 
░░ This usually indicates a programming error in the crashing program and
░░ should be reported to its vendor as a bug.
nov 27 15:12:19 argon gdm-launch-environment][479]: pam_env(gdm-launch-environment:setcred): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:19 argon gdm-launch-environment][518]: pam_env(gdm-launch-environment:setcred): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:19 argon systemd[522]: pam_env(systemd-user:session): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:19 argon systemd[522]: Failed to allocate manager object: Permission denied
nov 27 15:12:19 argon systemd[1]: Failed to start User Manager for UID 120.
░░ Subject: A start job for unit user@120.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit user@120.service has finished with a failure.
░░ 
░░ The job identifier is 1188 and the job result is failed.
nov 27 15:12:19 argon gdm-launch-environment][518]: pam_env(gdm-launch-environment:session): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:19 argon gdm-x-session[524]: GLib: g_variant_new_string: assertion 'string != NULL' failed
nov 27 15:12:19 argon gdm-x-session[524]: GLib: g_environ_setenv: assertion 'value != NULL' failed
nov 27 15:12:19 argon systemd-coredump[550]: Process 541 (gnome-session-b) of user 120 dumped core.

                                             Stack trace of thread 541:
                                             #0  0x00007f6d279fca85 __strlen_avx2 (libc.so.6 + 0x162a85)
                                             #1  0x00007f6d27b27855 IceLockAuthFile (libICE.so.6 + 0x5855)
                                             #2  0x0000563557c0c8a9 n/a (gnome-session-binary + 0x288a9)
                                             #3  0x00007f6d27cf4f46 n/a (libgobject-2.0.so.0 + 0x20f46)
                                             #4  0x00007f6d27cf68a4 g_object_new_valist (libgobject-2.0.so.0 + 0x228a4)
                                             #5  0x00007f6d27cf6c1a g_object_new (libgobject-2.0.so.0 + 0x22c1a)
                                             #6  0x0000563557c01b2c n/a (gnome-session-binary + 0x1db2c)
                                             #7  0x00007f6d27cef6cf n/a (libgobject-2.0.so.0 + 0x1b6cf)
                                             #8  0x00007f6d27cf0c5e n/a (libgobject-2.0.so.0 + 0x1cc5e)
                                             #9  0x0000563557c0141a n/a (gnome-session-binary + 0x1d41a)
                                             #10 0x00007f6d27cf4f46 n/a (libgobject-2.0.so.0 + 0x20f46)
                                             #11 0x00007f6d27cf68a4 g_object_new_valist (libgobject-2.0.so.0 + 0x228a4)
                                             #12 0x00007f6d27cf6c1a g_object_new (libgobject-2.0.so.0 + 0x22c1a)
                                             #13 0x0000563557c0da72 n/a (gnome-session-binary + 0x29a72)
                                             #14 0x00007f6d27e2cc58 n/a (libgio-2.0.so.0 + 0x100c58)
                                             #15 0x00007f6d27dcd0f4 n/a (libgio-2.0.so.0 + 0xa10f4)
                                             #16 0x00007f6d27dd1639 n/a (libgio-2.0.so.0 + 0xa5639)
                                             #17 0x00007f6d27e29ef3 n/a (libgio-2.0.so.0 + 0xfdef3)
                                             #18 0x00007f6d27dcd0f4 n/a (libgio-2.0.so.0 + 0xa10f4)
                                             #19 0x00007f6d27dcd129 n/a (libgio-2.0.so.0 + 0xa1129)
                                             #20 0x00007f6d27bf2914 g_main_context_dispatch (libglib-2.0.so.0 + 0x52914)
                                             #21 0x00007f6d27c467d1 n/a (libglib-2.0.so.0 + 0xa67d1)
                                             #22 0x00007f6d27bf1e63 g_main_loop_run (libglib-2.0.so.0 + 0x51e63)
                                             #23 0x0000563557bef66f n/a (gnome-session-binary + 0xb66f)
                                             #24 0x00007f6d278c2152 __libc_start_main (libc.so.6 + 0x28152)
                                             #25 0x0000563557befd4e n/a (gnome-session-binary + 0xbd4e)

                                             Stack trace of thread 545:
                                             #0  0x00007f6d2798f46f __poll (libc.so.6 + 0xf546f)
                                             #1  0x00007f6d27c4675f n/a (libglib-2.0.so.0 + 0xa675f)
                                             #2  0x00007f6d27bf1121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                                             #3  0x00007f6d27bf1172 n/a (libglib-2.0.so.0 + 0x51172)
                                             #4  0x00007f6d27c1fce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007f6d2776b3e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007f6d2799a293 __clone (libc.so.6 + 0x100293)

                                             Stack trace of thread 548:
                                             #0  0x00007f6d27994d5d syscall (libc.so.6 + 0xfad5d)
                                             #1  0x00007f6d27c3f8bb g_cond_wait_until (libglib-2.0.so.0 + 0x9f8bb)
                                             #2  0x00007f6d27bc2813 n/a (libglib-2.0.so.0 + 0x22813)
                                             #3  0x00007f6d27c22ceb n/a (libglib-2.0.so.0 + 0x82ceb)
                                             #4  0x00007f6d27c1fce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007f6d2776b3e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007f6d2799a293 __clone (libc.so.6 + 0x100293)

                                             Stack trace of thread 546:
                                             #0  0x00007f6d2798f46f __poll (libc.so.6 + 0xf546f)
                                             #1  0x00007f6d27c4675f n/a (libglib-2.0.so.0 + 0xa675f)
                                             #2  0x00007f6d27bf1e63 g_main_loop_run (libglib-2.0.so.0 + 0x51e63)
                                             #3  0x00007f6d27e2dfe8 n/a (libgio-2.0.so.0 + 0x101fe8)
                                             #4  0x00007f6d27c1fce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007f6d2776b3e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007f6d2799a293 __clone (libc.so.6 + 0x100293)

                                             Stack trace of thread 547:
                                             #0  0x00007f6d2798f46f __poll (libc.so.6 + 0xf546f)
                                             #1  0x00007f6d27c4675f n/a (libglib-2.0.so.0 + 0xa675f)
                                             #2  0x00007f6d27bf1121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                                             #3  0x00007f6d27f0ac0e n/a (libdconfsettings.so + 0x5c0e)
                                             #4  0x00007f6d27c1fce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007f6d2776b3e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007f6d2799a293 __clone (libc.so.6 + 0x100293)
░░ Subject: Process 541 (gnome-session-b) dumped core
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ Documentation: man:core(5)
░░ 
░░ Process 541 (gnome-session-b) crashed and dumped core.
░░ 
░░ This usually indicates a programming error in the crashing program and
░░ should be reported to its vendor as a bug.
nov 27 15:12:20 argon gdm-launch-environment][518]: pam_env(gdm-launch-environment:setcred): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:20 argon gdm-launch-environment][571]: pam_env(gdm-launch-environment:setcred): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:20 argon systemd[575]: pam_env(systemd-user:session): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:20 argon systemd[575]: Failed to allocate manager object: Permission denied
nov 27 15:12:20 argon systemd[1]: Failed to start User Manager for UID 120.
░░ Subject: A start job for unit user@120.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit user@120.service has finished with a failure.
░░ 
░░ The job identifier is 1287 and the job result is failed.
nov 27 15:12:20 argon gdm-launch-environment][571]: pam_env(gdm-launch-environment:session): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:20 argon gdm-x-session[577]: GLib: g_variant_new_string: assertion 'string != NULL' failed
nov 27 15:12:20 argon gdm-x-session[577]: GLib: g_environ_setenv: assertion 'value != NULL' failed
nov 27 15:12:21 argon systemd-coredump[603]: Process 594 (gnome-session-b) of user 120 dumped core.

                                             Stack trace of thread 594:
                                             #0  0x00007f8247344a85 __strlen_avx2 (libc.so.6 + 0x162a85)
                                             #1  0x00007f824746f855 IceLockAuthFile (libICE.so.6 + 0x5855)
                                             #2  0x0000557b8fc0d8a9 n/a (gnome-session-binary + 0x288a9)
                                             #3  0x00007f824763cf46 n/a (libgobject-2.0.so.0 + 0x20f46)
                                             #4  0x00007f824763e8a4 g_object_new_valist (libgobject-2.0.so.0 + 0x228a4)
                                             #5  0x00007f824763ec1a g_object_new (libgobject-2.0.so.0 + 0x22c1a)
                                             #6  0x0000557b8fc02b2c n/a (gnome-session-binary + 0x1db2c)
                                             #7  0x00007f82476376cf n/a (libgobject-2.0.so.0 + 0x1b6cf)
                                             #8  0x00007f8247638c5e n/a (libgobject-2.0.so.0 + 0x1cc5e)
                                             #9  0x0000557b8fc0241a n/a (gnome-session-binary + 0x1d41a)
                                             #10 0x00007f824763cf46 n/a (libgobject-2.0.so.0 + 0x20f46)
                                             #11 0x00007f824763e8a4 g_object_new_valist (libgobject-2.0.so.0 + 0x228a4)
                                             #12 0x00007f824763ec1a g_object_new (libgobject-2.0.so.0 + 0x22c1a)
                                             #13 0x0000557b8fc0ea72 n/a (gnome-session-binary + 0x29a72)
                                             #14 0x00007f8247774c58 n/a (libgio-2.0.so.0 + 0x100c58)
                                             #15 0x00007f82477150f4 n/a (libgio-2.0.so.0 + 0xa10f4)
                                             #16 0x00007f8247719639 n/a (libgio-2.0.so.0 + 0xa5639)
                                             #17 0x00007f8247771ef3 n/a (libgio-2.0.so.0 + 0xfdef3)
                                             #18 0x00007f82477150f4 n/a (libgio-2.0.so.0 + 0xa10f4)
                                             #19 0x00007f8247715129 n/a (libgio-2.0.so.0 + 0xa1129)
                                             #20 0x00007f824753a914 g_main_context_dispatch (libglib-2.0.so.0 + 0x52914)
                                             #21 0x00007f824758e7d1 n/a (libglib-2.0.so.0 + 0xa67d1)
                                             #22 0x00007f8247539e63 g_main_loop_run (libglib-2.0.so.0 + 0x51e63)
                                             #23 0x0000557b8fbf066f n/a (gnome-session-binary + 0xb66f)
                                             #24 0x00007f824720a152 __libc_start_main (libc.so.6 + 0x28152)
                                             #25 0x0000557b8fbf0d4e n/a (gnome-session-binary + 0xbd4e)

                                             Stack trace of thread 599:
                                             #0  0x00007f82472d746f __poll (libc.so.6 + 0xf546f)
                                             #1  0x00007f824758e75f n/a (libglib-2.0.so.0 + 0xa675f)
                                             #2  0x00007f8247539e63 g_main_loop_run (libglib-2.0.so.0 + 0x51e63)
                                             #3  0x00007f8247775fe8 n/a (libgio-2.0.so.0 + 0x101fe8)
                                             #4  0x00007f8247567ce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007f82470b33e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007f82472e2293 __clone (libc.so.6 + 0x100293)

                                             Stack trace of thread 600:
                                             #0  0x00007f82472d746f __poll (libc.so.6 + 0xf546f)
                                             #1  0x00007f824758e75f n/a (libglib-2.0.so.0 + 0xa675f)
                                             #2  0x00007f8247539121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                                             #3  0x00007f8247852c0e n/a (libdconfsettings.so + 0x5c0e)
                                             #4  0x00007f8247567ce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007f82470b33e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007f82472e2293 __clone (libc.so.6 + 0x100293)

                                             Stack trace of thread 598:
                                             #0  0x00007f82472d746f __poll (libc.so.6 + 0xf546f)
                                             #1  0x00007f824758e75f n/a (libglib-2.0.so.0 + 0xa675f)
                                             #2  0x00007f8247539121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                                             #3  0x00007f8247539172 n/a (libglib-2.0.so.0 + 0x51172)
                                             #4  0x00007f8247567ce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007f82470b33e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007f82472e2293 __clone (libc.so.6 + 0x100293)

                                             Stack trace of thread 601:
                                             #0  0x00007f82472dcd5d syscall (libc.so.6 + 0xfad5d)
                                             #1  0x00007f82475878bb g_cond_wait_until (libglib-2.0.so.0 + 0x9f8bb)
                                             #2  0x00007f824750a813 n/a (libglib-2.0.so.0 + 0x22813)
                                             #3  0x00007f824756aceb n/a (libglib-2.0.so.0 + 0x82ceb)
                                             #4  0x00007f8247567ce1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007f82470b33e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007f82472e2293 __clone (libc.so.6 + 0x100293)
░░ Subject: Process 594 (gnome-session-b) dumped core
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ Documentation: man:core(5)
░░ 
░░ Process 594 (gnome-session-b) crashed and dumped core.
░░ 
░░ This usually indicates a programming error in the crashing program and
░░ should be reported to its vendor as a bug.
nov 27 15:12:21 argon gdm-launch-environment][571]: pam_env(gdm-launch-environment:setcred): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:21 argon gdm-launch-environment][608]: pam_env(gdm-launch-environment:setcred): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:21 argon systemd[1]: Failed to start User Runtime Directory /run/user/120.
░░ Subject: A start job for unit user-runtime-dir@120.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit user-runtime-dir@120.service has finished with a failure.
░░ 
░░ The job identifier is 1309 and the job result is failed.
nov 27 15:12:21 argon gdm-launch-environment][608]: pam_systemd(gdm-launch-environment:session): Failed to stat() runtime directory '/run/user/120': No such file or direc>
nov 27 15:12:21 argon gdm-launch-environment][608]: pam_env(gdm-launch-environment:session): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:21 argon gdm-x-session[612]: GLib: g_variant_new_string: assertion 'string != NULL' failed
nov 27 15:12:21 argon gdm-x-session[612]: GLib: g_environ_setenv: assertion 'value != NULL' failed
nov 27 15:12:22 argon systemd-coredump[638]: Process 629 (gnome-session-b) of user 120 dumped core.

                                             Stack trace of thread 629:
                                             #0  0x00007fddb7e37a85 __strlen_avx2 (libc.so.6 + 0x162a85)
                                             #1  0x00007fddb7f62855 IceLockAuthFile (libICE.so.6 + 0x5855)
                                             #2  0x00005582a99c88a9 n/a (gnome-session-binary + 0x288a9)
                                             #3  0x00007fddb812ff46 n/a (libgobject-2.0.so.0 + 0x20f46)
                                             #4  0x00007fddb81318a4 g_object_new_valist (libgobject-2.0.so.0 + 0x228a4)
                                             #5  0x00007fddb8131c1a g_object_new (libgobject-2.0.so.0 + 0x22c1a)
                                             #6  0x00005582a99bdb2c n/a (gnome-session-binary + 0x1db2c)
                                             #7  0x00007fddb812a6cf n/a (libgobject-2.0.so.0 + 0x1b6cf)
                                             #8  0x00007fddb812bc5e n/a (libgobject-2.0.so.0 + 0x1cc5e)
                                             #9  0x00005582a99bd41a n/a (gnome-session-binary + 0x1d41a)
                                             #10 0x00007fddb812ff46 n/a (libgobject-2.0.so.0 + 0x20f46)
                                             #11 0x00007fddb81318a4 g_object_new_valist (libgobject-2.0.so.0 + 0x228a4)
                                             #12 0x00007fddb8131c1a g_object_new (libgobject-2.0.so.0 + 0x22c1a)
                                             #13 0x00005582a99c9a72 n/a (gnome-session-binary + 0x29a72)
                                             #14 0x00007fddb8267c58 n/a (libgio-2.0.so.0 + 0x100c58)
                                             #15 0x00007fddb82080f4 n/a (libgio-2.0.so.0 + 0xa10f4)
                                             #16 0x00007fddb820c639 n/a (libgio-2.0.so.0 + 0xa5639)
                                             #17 0x00007fddb8264ef3 n/a (libgio-2.0.so.0 + 0xfdef3)
                                             #18 0x00007fddb82080f4 n/a (libgio-2.0.so.0 + 0xa10f4)
                                             #19 0x00007fddb8208129 n/a (libgio-2.0.so.0 + 0xa1129)
                                             #20 0x00007fddb802d914 g_main_context_dispatch (libglib-2.0.so.0 + 0x52914)
                                             #21 0x00007fddb80817d1 n/a (libglib-2.0.so.0 + 0xa67d1)
                                             #22 0x00007fddb802ce63 g_main_loop_run (libglib-2.0.so.0 + 0x51e63)
                                             #23 0x00005582a99ab66f n/a (gnome-session-binary + 0xb66f)
                                             #24 0x00007fddb7cfd152 __libc_start_main (libc.so.6 + 0x28152)
                                             #25 0x00005582a99abd4e n/a (gnome-session-binary + 0xbd4e)

                                             Stack trace of thread 636:
                                             #0  0x00007fddb7dcfd5d syscall (libc.so.6 + 0xfad5d)
                                             #1  0x00007fddb807a8bb g_cond_wait_until (libglib-2.0.so.0 + 0x9f8bb)
                                             #2  0x00007fddb7ffd813 n/a (libglib-2.0.so.0 + 0x22813)
                                             #3  0x00007fddb805dceb n/a (libglib-2.0.so.0 + 0x82ceb)
                                             #4  0x00007fddb805ace1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007fddb7ba63e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007fddb7dd5293 __clone (libc.so.6 + 0x100293)

                                             Stack trace of thread 634:
                                             #0  0x00007fddb7dca46f __poll (libc.so.6 + 0xf546f)
                                             #1  0x00007fddb808175f n/a (libglib-2.0.so.0 + 0xa675f)
                                             #2  0x00007fddb802ce63 g_main_loop_run (libglib-2.0.so.0 + 0x51e63)
                                             #3  0x00007fddb8268fe8 n/a (libgio-2.0.so.0 + 0x101fe8)
                                             #4  0x00007fddb805ace1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007fddb7ba63e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007fddb7dd5293 __clone (libc.so.6 + 0x100293)

                                             Stack trace of thread 633:
                                             #0  0x00007fddb7dca46f __poll (libc.so.6 + 0xf546f)
                                             #1  0x00007fddb808175f n/a (libglib-2.0.so.0 + 0xa675f)
                                             #2  0x00007fddb802c121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                                             #3  0x00007fddb802c172 n/a (libglib-2.0.so.0 + 0x51172)
                                             #4  0x00007fddb805ace1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007fddb7ba63e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007fddb7dd5293 __clone (libc.so.6 + 0x100293)

                                             Stack trace of thread 635:
                                             #0  0x00007fddb7dca46f __poll (libc.so.6 + 0xf546f)
                                             #1  0x00007fddb808175f n/a (libglib-2.0.so.0 + 0xa675f)
                                             #2  0x00007fddb802c121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                                             #3  0x00007fddb8345c0e n/a (libdconfsettings.so + 0x5c0e)
                                             #4  0x00007fddb805ace1 n/a (libglib-2.0.so.0 + 0x7fce1)
                                             #5  0x00007fddb7ba63e9 start_thread (libpthread.so.0 + 0x93e9)
                                             #6  0x00007fddb7dd5293 __clone (libc.so.6 + 0x100293)
░░ Subject: Process 629 (gnome-session-b) dumped core
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ Documentation: man:core(5)
░░ 
░░ Process 629 (gnome-session-b) crashed and dumped core.
░░ 
░░ This usually indicates a programming error in the crashing program and
░░ should be reported to its vendor as a bug.
nov 27 15:12:22 argon gdm-launch-environment][608]: pam_env(gdm-launch-environment:setcred): Expandable variables must be wrapped in {} <$UID> - ignoring
nov 27 15:12:35 argon kernel: watchdog: watchdog0: watchdog did not stop!
ZainlessBrombie commented 3 years ago

Oh boy sorry, I forgot! XDG_RUNTIME_DIR DEFAULT=/run/user/${UID} the curly braces were missing :disappointed:

wNORESET commented 3 years ago

@ZainlessBrombie nope, it is still giving me the same result, freeze after boot. It gives a permission denied error.

nov 27 15:47:18 argon systemd[423]: Failed to allocate manager object: Permission denied

ZainlessBrombie commented 3 years ago

Alright. This is where I would go into trial and error. I appreciate your patience. I realize that me usually figuring things is dependent not on accurate assumption but on trying a lot of things very fast. Ignore the issue above.... I misread :man_facepalming:

This line in libice/src/authutil.c seems to be the one that causes the failure :thinking: is your memory overcommit off, possibly with not that much memory? Weirdly specific thus unlikely I know :sweat_smile:

        buf = malloc (size);
        if (!buf) {
            bsize = 0;
            return (NULL);
        }