LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-17-2023, 08:23 AM   #1
Nate_KS
Member
 
Registered: Mar 2017
Location: Bremen, KS
Distribution: Debian Bookworm, Arch
Posts: 48

Rep: Reputation: 53
Upgraded to Bookworm, now GNOME keyring dies--no access to stored SSH key passwords


I now have two desktop systems running Bookworm with GNOME 43. The laptop was upgraded last month and I upgraded the desktop this past Sunday afternoon. I have been using the GNOME keyring applet to manage the SSH public key passwords I use as it prompts to save passwords and then lets me SSH to other hosts without out a password prompt.

Some time after the upgrade I wanted to SSH into one of the other systems on my LAN and was greeted with a password prompt for the corresponding public key that had prior been managed by the keyring applet. I noted differences in the running processes between the laptop where the keyring applet is still working and the desktop where it was not.

On an off-chance I cold booted this system and found the keyring applet was working as expected so I went on doing other things for a while. Then I tried again and was prompted for the public key's password. Uggh.

Right after rebooting the process list looked like this which mirrors the laptop:

Code:
$ ps ax -u nate | grep "agent\|keyring"
   2037 ?        SLsl   0:00 /usr/bin/gnome-keyring-daemon --foreground --components=pkcs11,secrets --control-directory=/run/user/1000/keyring
   2151 ?        Ssl    0:00 /usr/libexec/gcr-ssh-agent /run/user/1000/gcr
   2157 ?        Ss     0:00 ssh-agent -D -a /run/user/1000/openssh_agent
   3802 ?        S      0:00 /usr/bin/ssh-agent -D -a /run/user/1000/keyring/.ssh
   3922 pts/0    S+     0:00 grep --color=auto agent\|keyring
Some time after the cold start and logging in things looked like this:

Code:
$ ps ax -u nate | grep "agent\|keyring"
   2151 ?        Ssl    0:00 /usr/libexec/gcr-ssh-agent /run/user/1000/gcr
   2157 ?        Ss     0:00 ssh-agent -D -a /run/user/1000/openssh_agent
  12324 ?        Sl     0:00 /usr/bin/gnome-keyring-daemon --start --foreground --components=secrets                                                                  
  12325 ?        Ssl    0:00 /usr/bin/gnome-keyring-daemon --foreground --components=pkcs11,secrets --control-directory=/run/user/1000/keyring
  19308 pts/0    S+     0:00 grep --color=auto agent\|keyring
It appears to me that gnome-keyring-daemon has been restarted for some reason. As a result PIDs 2037 and 3802 are terminated and also /run/user/1000/keyring/.ssh is no longer present along with the pkcs11 and ssh files in the same directory.

Code:
debian-archive-keyring/stable,stable,now 2023.3 all [installed,automatic]
fasttrack-archive-keyring/stable,stable,now 2020.12.19 all [installed]
gnome-keyring-pkcs11/stable,now 42.1-1+b2 amd64 [installed,automatic]
gnome-keyring/stable,now 42.1-1+b2 amd64 [installed,automatic]
gpg-agent/stable,now 2.2.40-1.1 amd64 [installed,automatic]
libpam-gnome-keyring/stable,now 42.1-1+b2 amd64 [installed,automatic]
libpolkit-agent-1-0/stable,now 122-3 amd64 [installed,automatic]
A while later, perhaps an hour or so, all keyring PIDs vanished!

Code:
$ ps ax -u nate | grep "agent\|keyring"
   2151 ?        Ssl    0:00 /usr/libexec/gcr-ssh-agent /run/user/1000/gcr
   2157 ?        Ss     0:00 ssh-agent -D -a /run/user/1000/openssh_agent
  22418 pts/0    S+     0:00 grep --color=auto agent\|keyring
This behavior has persisted after at least another system restart. I can provide journalctl output if needed.
 
Old 09-17-2023, 12:35 PM   #2
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Maybefrom searching your title or "About 3,850" unrefined "results?"
 
Old 09-17-2023, 01:04 PM   #3
Nate_KS
Member
 
Registered: Mar 2017
Location: Bremen, KS
Distribution: Debian Bookworm, Arch
Posts: 48

Original Poster
Rep: Reputation: 53
I did eventually post on the GNOME Discourse in the keyring category and was advised to open separate issues in the Gitlab issue tracker. The are issues 135 for the abnormal shutdown and 136 for the failure to restart properly.

Last edited by Nate_KS; 09-17-2023 at 01:06 PM.
 
Old 10-19-2023, 06:11 AM   #4
Nate_KS
Member
 
Registered: Mar 2017
Location: Bremen, KS
Distribution: Debian Bookworm, Arch
Posts: 48

Original Poster
Rep: Reputation: 53
I have also opened this issue in the Debian BTS:

https://bugs.debian.org/cgi-bin/bugr...gi?bug=1053923

I noted in that report and not elsewhere that the system with the daemon shutting down is running snapd while the other is not. I've no idea if that is relevant to this issue but that is the major difference between the two systems other than other installed packages. Upgrading to 12.2 has not resolved this issue.
 
Old 10-19-2023, 06:14 AM   #5
Nate_KS
Member
 
Registered: Mar 2017
Location: Bremen, KS
Distribution: Debian Bookworm, Arch
Posts: 48

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by jamison20000e View Post
Maybefrom searching your title or "About 3,850" unrefined "results?"
Not the same. In my case the gnome-keyring-daemon shuts down in an hour or less after logging in. My SSH keys still work to all the other hosts, I just have to remember and enter the pass phrase.
 
Old 10-30-2023, 04:55 PM   #6
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Did you try post #2 from "Debian User Forums" or maybe a search for: how to purge Gnome key rings
 
Old 10-31-2023, 07:54 AM   #7
Nate_KS
Member
 
Registered: Mar 2017
Location: Bremen, KS
Distribution: Debian Bookworm, Arch
Posts: 48

Original Poster
Rep: Reputation: 53
I'm gathering data for Post #2.

I'm reluctant to purge the keyring as Chromium stores all of its stuff in that file as well independently of the gnome-keyring-daeom it appears.
 
Old 10-31-2023, 06:38 PM   #8
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
You do clean out your browser Cache once in a while, don't you? I also found a lot of other helpful information with that search on our subject, for example managing or resetting.
 
Old 11-06-2023, 07:29 AM   #9
Nate_KS
Member
 
Registered: Mar 2017
Location: Bremen, KS
Distribution: Debian Bookworm, Arch
Posts: 48

Original Poster
Rep: Reputation: 53
The keyring is separate from the browser cache. My mention of Chromium is mostly tangential to the issue of the keyring daemon shutting down on the desktop while remaining running on the laptop through multiple suspend/resume cycles.
 
Old 02-19-2024, 05:43 PM   #10
Nate_KS
Member
 
Registered: Mar 2017
Location: Bremen, KS
Distribution: Debian Bookworm, Arch
Posts: 48

Original Poster
Rep: Reputation: 53
It seems a badly formed cron entry that matched text in the daemon command line was responsible for sending it the SIGTERM signal. Another project recommended the use of 'strace' to examine activity of a process for another project I was working on yesterday. This morning I decided to try it with the gnome-keyring-daemon process after a reboot and discovered the daemon was terminating at the top of each hour no matter how long, or short, of time it ran. I recalled that I had a cron entry that was calling 'pkill' at the top of each hour for an unrelated reason.

I gave a complete write up to the debian-user mailing list: https://lists.debian.org/debian-user.../msg00800.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Update on Debian-Bookworm and Why Did Bookworm Remove Some Packages? kevinbenko Linux - Newbie 4 07-09-2022 09:00 AM
Is it possible to view the details of passwords stored in the keyring ? lostinxlation Linux - Desktop 1 04-24-2019 05:46 AM
data push from box to removable usb drive dies, then dies, then dies again. bodyofabanshee Linux - Server 11 03-15-2012 11:34 AM
Keyring keyring Go away come again another day sephox Linux - Software 2 01-01-2012 05:45 PM
[SOLVED] How to set up subversion with gnome-keyring to store encrypted svn passwords kenneho Linux - Server 4 02-11-2011 03:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration