Bug 339767 - many password prompts after startup (including kwallet)
Summary: many password prompts after startup (including kwallet)
Status: REPORTED
Alias: None
Product: kwalletmanager
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords:
: 340135 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-07 18:15 UTC by JR
Modified: 2022-12-10 15:23 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description JR 2014-10-07 18:15:11 UTC
I have configured kontact (akonadi) (4.13.3) for syncing my mails/contacts/addressbook with my owncloud. I also run an owncloud client (1.5.0). (under kubuntu 14.04 LTS)

Every startup I got prompted to enter several passwords including the password for the kwallet.  When I enter the kwallet password - closing all other password prompts - i got no more prompts again, so it seems that applications get there password from the wallet successfully.

What I think about this bug is, that there is no queue (with an appropriate timeout, if it is even neccessary?!) for applications trying to get there password stored in the wallet, if the wallet is not open.

As I want to use syncing my files/mails/calendar/addressbook every startup i get 5 password prompts. 

Reproducible: Always

Steps to Reproduce:
1. start my kubuntu 14.04 LTS (with autologin)
2. that's it

Actual Results:  
Got 5 password prompts, 4 from akonadi and owncloud client, one from kwallet.

Expected Results:  
I want to get just one password prompt from kwallet and all the applications wait, until I enter the correct kwallet password. Getting the password should always run at first with kwallet.

I have this bug for many versions of KDE SC. But now I thought it's time to tell you about it.
Comment 1 JR 2014-10-19 15:52:23 UTC
Is anyone out there who has the same problems? please help and please answer!

Best regards,

JR
Comment 2 Valentin Rusu 2014-10-20 20:26:42 UTC
Well, kwalletd actually has an internal queue and it should only prompt one password dialog upon start.

Could you please do a test for me. Just upon session start, when you have the several password prompts, could let them like that, then open a konsole (or a terminal of your choice) and tell me how many kwalletd processes do you have on your system?
Comment 3 Vincent Petry 2014-10-21 07:50:34 UTC
*** Bug 340135 has been marked as a duplicate of this bug. ***
Comment 4 Vincent Petry 2014-10-21 07:52:17 UTC
I have similar issues, but with the Wifi password which I described here https://bugs.kde.org/show_bug.cgi?id=340135 (marked as duplicate)

I'm getting two prompts: one from kwallet gpg and one for the wifi password.
When I enter the gpg password and close the wifi password dialog, then I need to manually reconnect to the wifi network by clicking "Connect", which will then use the kwallet password.

The kwallet timeout is possibly too short.
Comment 5 JR 2014-10-21 21:06:04 UTC
it's just one daemon:

jr@x:~$ ps -ef|grep wallet
jr     2789  1498  1 23:00 ?        00:00:00 /usr/bin/kwalletd
jr     2884  2463  0 23:01 pts/2    00:00:00 grep --color=auto wallet
jr@x:~$ 

it looks like a timeout or a full queue.
Comment 6 JR 2014-10-23 19:06:09 UTC
Today I had more time to test, but with the same result, just one daemon is running. And I have still a view password prompts.

Today I entered the password to open the wallet and closed (cancelled) the others.
It seems different applications have different behaviour. The owncloud client needs to login manually (or a restart) to get his password. On the other hand, the akonadi resource for the caldav calendar and addressbook, seems to try to get the password(s) from kwalletd again.

But the dialogs for the passwords at boot time remain.
Comment 7 JR 2014-10-30 19:39:12 UTC
@Valentin Rusu: Do you know/find the problem?
Comment 8 Tim Ruffing 2014-12-28 17:07:00 UTC
I have the same problem. It's indeed quite annoying.
I use the gpg backend, I don't know if this is related to the issue.
Comment 9 Pedro 2015-03-18 20:44:11 UTC
I have the same problem in Plasma 5 under archlinux. GPG based wallet, two dialogs: a pinentry one and the kwallet one. 
If I follow the archlinux wiki on how to set up gpg-agent to use pinentry-kwallet, initially I get only the kwallet dialog, but after a while I get one dialog per email account I have set up, plus a pinentry one. If I close all of the email ones, and type in the gpg password on the pinentry one, I get asked if I want to store that password in kwallet. I click on yes, and it doesn't store it. Then everything works fine until the next login. So far I have disabled gpg-agent, and I get "just" the two dialogs.
Comment 10 Valentin Rusu 2015-03-18 21:32:14 UTC
(In reply to Pedro from comment #9)
> I have the same problem in Plasma 5 under archlinux. GPG based wallet, two
> dialogs: a pinentry one and the kwallet one. 
> If I follow the archlinux wiki on how to set up gpg-agent to use
> pinentry-kwallet, initially I get only the kwallet dialog, but after a while
> I get one dialog per email account I have set up, plus a pinentry one. If I
> close all of the email ones, and type in the gpg password on the pinentry
> one, I get asked if I want to store that password in kwallet. I click on
> yes, and it doesn't store it. Then everything works fine until the next
> login. So far I have disabled gpg-agent, and I get "just" the two dialogs.

Oops! If you store gpg PIN in kwallet, and the wallet is GPG-based, then you'll get a loop problem. As opening the wallet would require the PIN :-)

On my system I'm using gpg-agent, but I let it use the usual pinentry tool that will ask me for the PIN only once during the entire session. Subsequent wallet opening occur silently.
Comment 11 Valentin Rusu 2015-03-18 21:35:22 UTC
(In reply to JR from comment #7)
> @Valentin Rusu: Do you know/find the problem?

This problem requires some important refactoring and I'm maintaining kwallet in my spare time. But I think I'll eventually fix it.
Comment 12 Pedro 2015-03-18 21:40:58 UTC
Thanks for the quick reply. I just didn't know if I was doing it right. It's no big deal, but I'm glad you are aware of the issue.
Comment 13 harald101010 2015-11-01 07:51:50 UTC
Mmh, I'm not sure, if my issue is the same:
I'm using tumbleweed, Kmail, Kwallet,  autologon  and GPG based Kwallet encryption
When I start the notebook and I go for a coffee, then the KwalletDialog is open for a while.
Within my coffee-getting-time Kmail is starting, asking KWallet for the some password to open IMAP email boxes, some passwords.
Because I didn't type in the Passphrase to encrypt the GPG key for starting up Kwallet, Kmail is not able to retrieve the requested passwords.
After I open Kwallet, which means I put in the passphrase, Kmail is not requesting again the passwords; Kmail wants to have typed in the email-boxes passwords again :-(
Same with the wifi connection.
So I assume the issue is between the KWallet connector and the application managing their passwords in Kwallet.
Comment 14 szymon.pysz@gmail.com 2015-11-11 08:32:21 UTC
Hi,

I also have this problem. After start KDE kwallet ask me a several times a passoword. 

I am using:
1) kwallet 5.15.0-1 
2) kwalletmanager 15.08.3-1

in arch linux.

Regards.
Comment 15 Björn Bidar (Thaodan) 2017-10-10 19:10:38 UTC
same issue for ktp/telepathy-kde, it tries to connect anyway but fails as there are no credentials.
I dont think this issue is minor as i breaks every app using kwallet.
Comment 16 Justin Zobel 2022-11-10 22:32:29 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 17 Bug Janitor Service 2022-11-25 05:15:51 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 18 Björn Bidar (Thaodan) 2022-11-25 08:16:19 UTC
I think this still happens notably with Nextcloud using QtKeychain, it
asks for the paswords but if it hits the timeout it just tries to get a
new token.

The symptoms depend on the app but the underlying issue is still there.
Comment 19 Bug Janitor Service 2022-12-10 05:12:51 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!