Prompted to unlock keyring twice on log in

Bug #637702 reported by Jonathan Blackhall
334
This bug affects 72 people
Affects Status Importance Assigned to Milestone
gnome-keyring (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Binary package hint: gnome-keyring

I recently upgraded from 10.04 (updated) to Maverick beta. After upgrading I noticed I am now prompted to unlock my keyring twice on each boot. I initially had auto-login enabled, but even if I disable that, after I log in, I am still prompted twice for my keyring password. ( http://ubuntuforums.org/showthread.php?p=9838543 )

I was going to try purging and re-installing gnome-keyring (as suggested on the forum post) but this will uninstall ubuntu-desktop and a lot of other stuff, so I'd rather not if there's another way to fix this.

Please let me know what more information I can provide.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gnome-keyring 2.92.92.is.2.31.91-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-20.29-generic 2.6.35.4
Uname: Linux 2.6.35-20-generic x86_64
Architecture: amd64
Date: Mon Sep 13 20:06:57 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Release Candidate amd64 (20100419.1)
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: gnome-keyring

Revision history for this message
Jonathan Blackhall (johnny-one-eye) wrote :
Revision history for this message
A Munro (awamunro) wrote :

I get this same problem but only if I auto login. Manual login it doesn't happen.
Architecture i386 Sony Viao laptop upgraded from 10.04.

Revision history for this message
Otto Kekäläinen (otto) wrote :

Did you recently change your system login password? This might be related to bug #416825.
A possible workaround is to set an empty password to the Gnome keyring manager so that it is always opened without error. The passwords are likely safe anyway if you are using Ubuntu on your personal computer.

Revision history for this message
Jonathan Blackhall (johnny-one-eye) wrote :

No I haven't changed it.

Revision history for this message
The-Dopeman (the-dopeman) wrote :

Same problem after upgrading from 10.04 to 10.10 (no beta).

Revision history for this message
David Meier (droebbel-melta) wrote :

Same problem here after upgrade to maverick final.

Revision history for this message
Bart Verwilst (verwilst) wrote :

Clean install of Maverick, after logout and login, the "Automatically unlock..." option has been deselected again.

Revision history for this message
hrustov (hrustov) wrote :

As for me, it seems that once password is asked for '/usr/lib/evolution/e-calendar-factory' to get items from google calendar and another once password is asked for "network manager" to connect to wifi.

Revision history for this message
Onno Steenbergen (osteenbergen) wrote :

Found a temporary fix and maybe a cause of the problem
There are two keyrings one called 'login' and the other is called 'default' and is the default keyring. During login only the 'login' keyring gets unlocked, thus when connection via WiFi it asks for the password of the 'default' keyring.

So I set the 'login' keyring as default and removed the 'default' keyring. And now I don't see the unlock screen anymore.

Although this is a fix it should be clear that the 'automatically unlock keyring' option should work.

Revision history for this message
Bart Verwilst (verwilst) wrote :

I had 3 keyrings,'default' ( holding my gtalk pass ), 'default_1' ( holding passwords for some other chat accounts and a few network passwords ), and 'login', which was empty.

I removed 'default' and 'default_1', set 'login' as default, logged out and in, had to re-enter my password, which were all saved to 'login', and the problem was gone!

Revision history for this message
hrustov (hrustov) wrote :

I have only one keyring 'login' and this fix don't work for me :(

Revision history for this message
robin79 (roberto-pierpaoli-gmail) wrote :

Same for me: 'login' is the only keyring available in my system, no way to apply the fix...

Behavior: prompted for keyring password after auto-login, and prompted immediately again for network-manager to connect to my router.

Revision history for this message
boky (verynotbad) wrote :

Same problem here.

After upgrading to Maverick (final) from Lucid, I get prompted to unlock my keyring FOUR TIMES. Auto-login is enabled, I only have one keyring ('login').

System: 2.6.35-22-generic #34-Ubuntu SMP Sun Oct 10 09:26:05 UTC 2010 x86_64 GNU/Linux on Dell D830.

Revision history for this message
Squalo_ch (fmablan) wrote :

Same here.

At startup I have to enter the keyring password at least two times (I've been asked for it for a third time in a couple of occasions, but I think it was because I mistyped the password).

Revision history for this message
SeanK (seank) wrote :

I've only got a "login" keyring as well and I get asked to enter my password three to four times each time the machine starts. I'm using the "auto-login" function. It's making me crazy. Please let me know if there's information I can provide that can help fix this.

Revision history for this message
Stefan (sreich23) wrote :

I have the same problem. I only have one "login" keyring but I have to enter the password twice. For login I normally use my finger print reader. Therefore one input of password should be enough to open the keyring.

Revision history for this message
Ben Kietzman (ben-kietzman) wrote :

I also have the same problem. I only have one "login" keyring, but I have to enter the password twice.

Revision history for this message
cives (antoniosotop) wrote :

My case is a bit different. When I login to Ubuntu it only asks me once for the password. When I am already logged in, however, and the screensaver activates, I must introduce twice the password to unblock it. I recently moved to Thunderbird, and when it starts, it asks me twice to introduce the master password.
I am in a clean installation of Maverick, but initially it all worked smoothly. Just this week it started requesting twice for the password, and I don't remember what I did that caused this behaviour change.

Revision history for this message
ikonome (ikonome) wrote :

I have only one keyring stored called login and was set to be the default one. but each time I boot my computer, the keyring windows pop up twice, I am really tired with this horrible function.

Revision history for this message
Ritz (jonas-ritz) wrote :

running maverik netbook edition.
I have one keyring called default. But I have to type my password twice every time I boot or resume from suspend or screensaver.

Revision history for this message
Bart Verwilst (verwilst) wrote :

It's been 3 months and the bug is still in status 'New'.. great.. :P

Revision history for this message
Prikryl (peto-prikryl) wrote :

It is very annoying to enter same password at least 2-3 times every day after starting PC. Especially when the password is not short. I registered here 3 months ago just to watch this bug. Please fix it if you can. I hope this bug won't be present in 11.04.

Revision history for this message
Pacho Ramos (pacho) wrote :

I was able to fix this from "seahorse", but don't remember exact steps :-S (I am also using Gentoo)

If I don't misremember, I right-clicked on all keyrings to "block" them, then, I opened evolution and, when it asked for a password, it offered me the option to unlock it at login time. I would suggest you to "play" with seahorse a bit :-)

Good luck!

Revision history for this message
Michaël Van Dorpe (michael-vandorpe) wrote :

Just one keyring ('login'); asks me for my password 4 times, with autologin.

Revision history for this message
Martin G Miller (mgmiller) wrote :

I also have this issue after upgrading 64 bit 10.04 to 10.10. I am asked for login keyring 4 times. It should be noted that you should only do this if its your own machine at home and you are not worried about others getting access to it. You are about to unencrypt your passwords if you follow the instructions below.

As a temporary fix: System > Preferences > Passwords & Encryption Keys. In the Passwords tab, mine shows Passwords:login. Do not click to open its drop down list. Simply right click the words Passwords:login and then select "change password". You should see the same window that pops up every time you try to restart your machine. Enter your current password in the "Old Password" field and then hit the tab key twice to move focus to the "Password" and "Confirm" fields, leaving each one blank. When you click "OK", it will ask "Store passwords Unencrypted?" You can then click on the "Use Unsafe Storage" button and that should do it.

Revision history for this message
Martin G Miller (mgmiller) wrote :

"You should see the same window that pops up every time you try to restart your machine." Is wrong. The window that pops up is one that will ask you for the old password and the new one. Sorry for the inaccuracy. Also, I mention this as a temporary fix, but for many people, they may elect to leave it this way permanently.

Revision history for this message
Jhase (teleco) wrote :

I have the same problem, the unlock keyring window shows twice in auto-login start (with only 1 keyring, 'login'). I don't know why nor how to fix, but I have notice that the problem is not the verification of the pass, it is called twice after you input the pass, because (and this is my workaround) you can press ESC key in the second or plus prompted windows if you put in the correct pass at first.

Revision history for this message
Jhase (teleco) wrote :

sorry, ... its called BEFORE your input ...

Revision history for this message
Sven Müller (svenho) wrote :

I have the same problem. Just one keyring 'login' but password is asked three times!

Revision history for this message
Sven Müller (svenho) wrote :

Sorry I missed some information: Ubuntu 10.10, autologin enabled

Revision history for this message
Geoffrey Pursell (geoffp) wrote :

I have a single keyring, labeled "Passwords: login". I do have auto-login set, and I would get asked two or sometimes three times for my password on login, every time.

As suggested elsewhere, I changed the password on that keyring to nothing. That worked; I was no longer asked at startup. Then I logged out and in as another user, logged out, logged in as my primary user, then set the keyring back to my real password, which is the same as the password on the user account. Strangely, it would not accept nothing as the "old" password, which I had set it to earlier, but did accept my real password as the "old" password. Baffling.

Now, it does not appear to ask me at startup, and does automatically unlock the keyring.

Revision history for this message
Bart Verwilst (verwilst) wrote :

5 months further, and only 'me too' messages and bug still marked as new.. Great.. :P

Revision history for this message
blahde (daisy-ice) wrote :

Could it be that this bug is related to gwibber the Gnome Twitter Client? When I cancel the second password prompt, the gwibber account options pop up, sometimes immediately sometimes after some time passed by. This won't stop until I either type in the password or run 'sudo killall gwibber-service' in the console. Maybe someone with the appropriate Knowledge can look into this.

Revision history for this message
Sven Müller (svenho) wrote :

I know this problem, but I don't think that it cases this bug, because I disabled gwibber on startup.

Revision history for this message
Stefan (sreich23) wrote :

I had the the same problem and had to enter password twice during login.

I don't know exactly what happened but since my latest update of Ubuntu Maverick (2011-02-25, 9pm CET) I only need to enter the password once. I check it yesterday twice by rebooting the computer and log in afterwards. No problems. Today it's the same. I hope that the problem is resolved now...

Revision history for this message
Marc MAURICE (dooblem) wrote :

I'm sure of nothing, but maybe this commit is related :

http://git.gnome.org/browse/gnome-keyring/commit/?id=de56d02feddfd6eb511412a3703774950b791151

As a workaround, is there a way to move all passwords from one keyring to another, or to rename the "default" keyring as "login" ?

Revision history for this message
Prikryl (peto-prikryl) wrote :

After 6 months, the problem is still here. It's getting boring to log in every day three times just to start the Ubuntu.

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

the bug there seems to be listing differents issues, users still having an issue should probably open new bug with a description of what settings they are using and what issue they git

Changed in gnome-keyring (Ubuntu):
importance: Undecided → Low
Revision history for this message
Sebastien Bacher (seb128) wrote :

git -> get

Revision history for this message
Bart Verwilst (verwilst) wrote :

"users still having an issue"? Nothing has been done about this bug since it was opened 6 months ago, and now suddenly people "still having an issue" should open a new bug?

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

you can't say nothing has been done, there are quite some comments there and different issues, see

- comment 9and 10 have issues due to passwords stored in other keyrings that the login on which are not unlock on login
- comment 11 has only on keyring but has issues as well
- comment 16 is a different issue that fingerprint authentification doesn't unlock the keyring
- comment 18 is a gnome-screensaver issue
- some other issues seem to be that people using autologin wouldn't want have to enter a password but they still do to unlock the keyring

in summary that bug turned in an user forum discussions with users discussing different things and it's not easy to get details about a specific issue in such cases since other people will reply with comments concerning there issue which is a different one and confuse things, it would be better if each user having an issue and wanting to help debugging what is wrong would open a bug with a new description and let the bug triagers see which ones are duplicates or different issues

Revision history for this message
Sergey Vishnevskiy (2my) wrote :

This is what worked for me.
1) Checked that libpam-keyring is installed
2) Backup /etc/pam.d/gdm
3) Added @include common-pamkeyring to the end of the file

My problem was that I had auto-login enabled, I had one login keyring and I got unlock password keyring twice each time.

Revision history for this message
Sergey Vishnevskiy (2my) wrote :

Now it's not work again... sorry

Revision history for this message
Jonathan Blackhall (johnny-one-eye) wrote :

I did a fresh install of Ubuntu 11.04. Initially I was still experiencing this problem, however, after a recent update I am now only prompted to unlock my keyring once after login. Can anyone else confirm this? I did not apply any other fix besides applying regular Ubuntu updates.

Revision history for this message
DrKay (dr-jameskay) wrote :

I applied all Ubuntu updates this morning on 11.04 64-bit, and it's still asking twice for password to unlock keyring.

Revision history for this message
Ramm (ramono) wrote :

Have the same problem, it asks me 3 times to unock ring after atologin. I'm running Natty 11.04

Revision history for this message
Orest (orestta) wrote :

Same here with 11.04 64 bit.
I found that if I, instantly (!) after the auto-login, start any application that requires access to the keyring (e. g. a VPN connexion with NM), it asks me for the keyring password only once (i. e. correctly). Therefore, the buggy behaviour could be caused by some two/three/n applications requesting access simultaneously, which produces multiple prompts.

Revision history for this message
Bart Verwilst (verwilst) wrote :

11.04 asks me 3 times to unlock the keyring.. Can we at least link this bug to somebody who might know where it's coming from, to get at least a bit further with this?

Revision history for this message
Orest (orestta) wrote :

One of the hypothetical sources of the problem I described above.

Revision history for this message
Bart Verwilst (verwilst) wrote :

Yeah Lores, I meant somebody who could technically/codewise have a thorough insight into your findings :) I checked my login group, and notice Gwibber and Ubuntu One are inthere (a.o.), which i guess get loaded at login. Maybe those are triggering unlock requests at the same time?

Revision history for this message
Andres Muniz (andresmp) wrote :

Running natty I get asked 3 times after login. I checked the startup list and found the possible curpits:
Quote from ubuntu-uk users mailing list"

> It now asks for the password 3 times in a row. I do not remember doing
> anything special. but I have a guess: start up applications:
>
> /usr/bin/gnome-keyring-daemon --start --components=ssh
> /usr/bin/gnome-keyring-daemon --start --components=pkcs11
> /usr/bin/gnome-keyring-daemon --start --components=secrets

"end quote.

I will uninstall the remote desktop facility to see if it stops asking for at least one.

Orest (orestta)
Changed in gnome-keyring (Ubuntu):
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Is the issue still there in oneiric? it could be https://bugzilla.gnome.org/show_bug.cgi?id=649572

" * Serialize unlock requests for keyrings.
 * This has the effect of not prompting multiple times when simultaneous
   unlock requests come in for the same keyring."

Revision history for this message
Mynk (mr-mynk) wrote :

I am seeing a new problem (actually 2 new problems) around the keyring on Ubuntu 10.10 (32bit). I login and I am prompted for the keyring and -

1. If I don't give the password in some time the keyboard doesn't work anymore and the mouse works but I can't click anything. I had to reboot the machine as I could not figure a way out of this.

2. If there is another dialog that opens (I had enabled cpu scaling and I got this message on boot that my cpu does not support it) I am no longer able to give the password. I had to go to console and kill the keyring app.

Let me know if this needs to be filed as a separate bug. I thought it was relevant here.

Thanks,
Mayank

Revision history for this message
manco1911 (manco1911) wrote :

Just to confirm this bug.
Im running a clean install of 11.04 x64...
And it asks me twice for the keyring password.. on some rare ocation up to 3 times.. but not more than that..

Looking forward to be fixed..
Juan

Revision history for this message
Joao Silva (joaoms) wrote :

After lucid -> maverick upgrade, with autologin only, keyring password prompt appeared twice.

In seahorse, I removed the "vino.local" and "ubuntu one" entries from the "login" keyring contents, and left only the wifi authentication tokens. This solved the issue for me.

Regards,
Joao

Revision history for this message
peridot (peridot-faceted) wrote :

I still see this problem on oneiric.

Revision history for this message
dino99 (9d9) wrote :

This version has expired now

Changed in gnome-keyring (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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