Bug 411147 - IMAP resource permanently offline "Cannot read password. User denied access to wallet"
Summary: IMAP resource permanently offline "Cannot read password. User denied access t...
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.11.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-21 19:14 UTC by Matthias Nagel
Modified: 2022-06-14 07:33 UTC (History)
3 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 Matthias Nagel 2019-08-21 19:14:04 UTC
After upgrading to version 5.1.3 (kde-apps/kmail-19.04.3 in Gentoo) the IMAP resource for my Gmail IMAP account is permanently offline. When I try to restart the akonadi resource, try to toggle the online/offline state, I get the error

"Cannot read password. User denied access to wallet."

Then the resource turns offline again.

I already have tried to re-enter the password in the settings. I also tried to entirely delete the IMAP resource and re-create it again, in case there is some odd configuration error. The error remains.

Interestingly, this only happens with Gmail. I have three other IMAP accounts at different providers that all work and use Kwallet as the password storage.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.60.0
Qt Version: 5.12
Comment 1 Matthias Nagel 2019-08-23 16:51:19 UTC
This is the debug console output of akonadi, if I try to toggle the online/offline state:

org.kde.pim.akonadiserver: New notification connection (registered as Akonadi::Server::NotificationSubscriber(0x7f29f01e1070) )
org.kde.pim.akonadiserver: Subscriber Akonadi::Server::NotificationSubscriber(0x7f29f01e1070) identified as "AgentBaseChangeRecorder - 94879028254112"
org.kde.pim.imapresource: online= false
org.kde.pim.imapresource: online= true
org.kde.kgapi: Bad request, Google replied ' "{\n  \"error\": \"invalid_grant\",\n  \"error_description\": \"Bad Request\"\n}" '
org.kde.pim.imapresource: online= false

The interesting line is from "org.kde.kgapi". As a workaround I changed the authentication method from Google to PLAIN and now it works again. This seems to be a regression in libkgapi.
Comment 3 avlas 2019-08-26 08:33:09 UTC
(In reply to Laurent Montel from comment #2)
> see
> https://www.dvratil.cz/2019/08/kontact-google-integration-issue/

Thank you Laurent.

I got bitten by this issue, even though I had my account configured successfully, (I think) after I manually cancelled Kmail synchronization due to a extremely slow internet connection.