multiple prompts from gnome-keyring

Bug #745780 reported by Pete Goodall
114
This bug affects 23 people
Affects Status Importance Assigned to Milestone
gnome-keyring (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: gnome-keyring

According to bug #637702 I should file a new bug for this. I'm using Ubuntu 11.04 up to date as of yesterday (29th March 2011). I get multiple prompts to unlock the keyring "Default" when logging in. Once I authorise the first prompt I can connect to the my choses wireless network and afaict there are no adverse effects to cancel the remaining prompts. It is not always a fixed number, but I am usually prompted five times for the password. Occasionally it is just two or four, but it doesn't seem to be consistent.

When I open Seahorse I see I have two keyrings, login and default, and "default" is the default keyring. The login keyring has no passwords (afaict) but deleting it doesn't help. In fact the login key is just recreated on next login. I checked for autostart files and have deleted them from various places (~/.config/autostart/, ~/.kde/Autostart). Not sure where to go for troubleshooting.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: gnome-keyring 2.92.92.is.2.32.1-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.38-7.39-generic-pae 2.6.38
Uname: Linux 2.6.38-7-generic-pae i686
Architecture: i386
Date: Wed Mar 30 14:23:47 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110218)
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-keyring
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Pete Goodall (pgoodall) wrote :
Revision history for this message
Philip Muškovac (yofel) wrote :

I'm getting 2 password prompts here too suddenly.

Changed in gnome-keyring (Ubuntu):
status: New → Confirmed
Revision history for this message
Pete Goodall (pgoodall) wrote :

Ok, working though this I have a work-around, but not a solution. Someone else can probably come up with a cause. :-) I have two keyrings: login and default. In the file ~/.gnome2/keyrings/default the default keyring is set as "default", and that is where all my passwords reside. The problem is that Ubuntu is expecting my passwords to be in a keyring called "login". If I delete the "login" keyring then the keyring is recreated, but is of course blank and is *not* set as the default keyring.

The way I got things working was to delete ~/.gnome2/keyrings/login.keyring and renamed ~/.gnome2/keyrings/default.keyring to ~/.gnome2/login.keyring. Then I edited ~/.gnome2/keyrings/default to say "login" is the default. This might be a roundabout way of doing things, but this worked for me. Now I just have to figure out why I'm not getting prompted for my keyring password at all - even though that keyring definitely has a password.

Revision history for this message
John Koenig (koenigjm) wrote :

Seeing this issue as well.

Fresh install of Beta2. I can unlock the default keyring, but it regularly shows multiple prompts. Also the option to automatically unlock the default keyring is not available .

Revision history for this message
Alejandro Meneses (alejandro9225) wrote :

Yes!, this bug is really annoying. The strange thing here is that it happens to me randomly this way: sometimes it prompts once, sometimes it prompts three times. But it always prompts at startup.

Revision history for this message
garyo (garyo) wrote :

Happening to me too; upgraded from 10.10 to 11.04 (uptodate as of today) and now I get 3-5 prompts on login. I do *not* have a default keyring; only login.keyring (and two keystores) in .gnome2/keyrings.

Revision history for this message
Bazon (bazonbloch) wrote :
Revision history for this message
Alexei Vidmich (alexei-vidmich) wrote :

Fresh install of 11.04 was asking me to unlock keyring at startup 1 or 2 times after I login in GDM.

The reason why it asks for keyring unlock multiple times must be because multiple applications start up at the same time and if more than 1 of them needs to retrieve a key from keystore, they both request keyring unlock, which get queued instead of blocking the second request and deciding whether popup is needed for it or the requested keyring has been unlocked (between the time application requested it and the time it became possible to bring up modal dialog for that).

I think it randomly selects number of times to ask for unlock - because whether subsequent dialogs will be queued up or not depends on when exactly apps are launched, which varies from start to start a little bit.

#3 fix worked for me perfectly. Doesn't ask to unlock any keyrings any more.
I think the reason it doesn't ask to unlock it even once is because by default it has the same password as the one you login with and login keyring unlocks automatically at the time of login (by GDM). If you change your password in either place, it should start asking.

Revision history for this message
Sebastien Bacher (seb128) wrote :

one part of the issue was probably bug #744929

Changed in gnome-keyring (Ubuntu):
importance: Undecided → Medium
Revision history for this message
steros (steros) wrote :

I noticed that if you enter the password into the first appearing prompt immediately after it appears just when other things still load after startup. I only get this one password prompt.
But if I do not enter it directly but wait till everything has finished loading after startup I will get 3 prompts.

Revision history for this message
George Fragos (fragos) wrote :

I've been dealing with this problem for some time, now in 11.04. Somethings I tried seemed to effect but not eliminate it. A password set called login would be created even though I already had a default by a different name. Keeping user.keystore I deleted all .keyring files except login.keyring. Having only one set of passwords called login set as default in the file default seemed to fix the problem of three prompts but not consistently. After noticing that I only got one prompt if I responded immediately I experimented and indeed delaying responding to the prompt will consistently yield three to be responded to. This behavior is consistent with that reported by steros but I thought my additional insight might be of value.

Revision history for this message
Dylan McCall (dylanmccall) wrote :

I believe this is a duplicate of bug #744929. If I have thought wrongly, please feel free to unmark it (or tell me to) :)
There is an update to gnome-keyring that may solve the problem with multiple unlock prompts. If you could run that and check if it solves your problem, it would be very helpful.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.