After a system start today, I was suddenly prompted with KDE Wallet requiring a password. I have not needed this before, and I could not seem to enter a password it would accept (“Error code -9: Read error - possibly incorrect password.”). I can’t remember setting this up, but it might have been something I did when I first set up my system. However, I would either have remembered it or stored the password in my main password manager, and there is no trace of it there.
To fix this, I created a new wallet and set that to be the default. Now, it works, and it is generally fine as it was not used for much, but I have one big issue: Signal used kwallet as its credentials manager, and now I can’t open the Signal database.
Before I accept my losses and recreate the database from scratch, I wanted to know if anyone have experienced anything similar, and if there are some tips to restoring the original keychain? As I said, I don’t know the password, so my guess is that I’m outta luck…
Probably doesn’t help for recovery, but you can set an empty password and use polkit-based access control for wallets. You just need to check the box that says programs need to ask for access in Settings > KDE Wallet > Access Control Tab (not KWalletManager). Afterwards you will get a popup the first time they do and can then choose to give them permanent access.
I have yet to understand why Kwallet does the things it does sometimes. It varies by distro, and sometimes you fix it by putting in your login password, sometimes by putting in no password, sometimes make a new wallet, sometimes wipe the database. It’s pretty frustrating.
If you can’t change the password on the original keychain, I don’t think there’s a way to recover anything stored in it.
That is what I feared. I tried both my login password and a blank password, and it refuses to open. I’ll wait to see if anyone has previously found a way to magically open it again, but I will probably need to scrap my Signal database and relink my computer without the chat history. It’s a bummer, but not a major issue for me.
The password could be the same as your login password?
I would have assumed so, but it is not accepted.
Hmm, the only other thing I can think of is that the wallet somehow got corrupted. Did you do a normal shutdown / restart? Is this after an update?
I did an update over the week end, but I am pretty sure I rebooted between then and startup today. It is a long time since I’ve had to force shutdown.
Just to be sure, you didn’t either change your login password since your last reboot, right?
Nope.
You need kwallet_pam installed and configured right to make auto unlock work using your login password
Auto unlock seems to work completely fine with the new wallet I set up. And it tries to unlock the one I am having issues with (called “Default keyring”), but it seems the password just isn’t accepted anymore (whatever it was).
I don’t have any process named kwallet_pam running (only kwalletd6), and could not find anything related to kwallet_pam as an executable at least.