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
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.
see https://www.dvratil.cz/2019/08/kontact-google-integration-issue/
(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.