Bug 173094

Summary: Error code -9: Read error - possibly incorrect password even though password is correct
Product: [Unmaintained] kdelibs Reporter: Blaž Jelenec <blaz.jelenec>
Component: kwalletAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: lemma
Priority: NOR    
Version: 4.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Blaž Jelenec 2008-10-18 15:52:48 UTC
Version:            (using KDE 4.1.2)
OS:                Linux
Installed from:    Ubuntu Packages

When sending email with Kmail KDE Wallet service dialog pops up demanding password for kdewallet. Wh
When I enter the correct password it says Error opening the wallet 'kdewallet'. Please try again. (Error code -9: Read error - possibly incorrect password.)

This also happens when trying to save a password in Konqueror, but it works with Kopete.
Comment 1 Michael Leupold 2008-10-28 09:05:23 UTC
The only way I can currently imagine that might happen is if you configure two different wallets for local and networked passwords. Please check in systemsettings -> Advanced -> KDE Wallet ("different wallet for local passwords").

Do you see two separate wallets in kwalletmanager? Can you open both of them?
Comment 2 Blaž Jelenec 2008-10-28 20:46:45 UTC
I only have one wallet defined and can open it:
http://shrani.si/f/3Y/UZ/4M8mq5xA/snapshot2.png
And every time I close Kmail I get this error.
Comment 3 Michael Leupold 2008-10-28 20:52:43 UTC
Ah, that helps. The wallet kmail is trying to open is still the old kde3 wallet. I suppose you still have kmail from 3.5.x? If you had an old password on that wallet, please try that one.

Unfortunately KDE3 applications can't use KDE4's wallets.
Comment 4 Blaž Jelenec 2008-10-29 00:25:39 UTC
My Kmail is version 1.9.10. I have Kubuntu installed from first KDE 4 mix (that's KDE 4.0). So my Kmail could be from 3.5. How do I check? I only had this wallet, and one password.
Comment 5 Michael Leupold 2008-10-29 00:51:23 UTC
You should see which version of KDE your KMail belongs to if you open it and select Help -> About KDE in the menu. Did you use KDE3 before you installed KDE4 or were you installing both with your current Kubuntu install?
Do you remember if you were maybe asked to create a new wallet twice entering different passwords?

Please check the following locations for .kwl files:
~/.kde/share/apps/kwallet
~/.kde4/share/apps/kwallet

I guess you'll find one kdewallet.kwl in both of these locations. You can do the following and try if it works for you:
1) Quit KMail
2) Move the ~/.kde/share/apps/kwallet/kdewallet.kwl to a safe place (it contains your passwords).
3) Restart KMail and enter your mail passwords. It will ask you to create a new wallet
4) Close KMail and reboot
5) Reopen KMail and check if the password you entered in 3) still works.

If you feel unsure about one of the steps (I don't know your level), please rather ask again instead of risking your secret data.
Comment 6 Blaž Jelenec 2008-10-29 08:05:37 UTC
That worked like a charm. Thank you very much!
Comment 7 Michael Leupold 2008-10-29 08:44:24 UTC
You're welcome :)