Bug 395417 - I've to restart akonadi several times during day for get Google IMAP access refreshing
Summary: I've to restart akonadi several times during day for get Google IMAP access r...
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Gmail resource (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-15 08:58 UTC by Michel
Modified: 2018-07-05 11:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.8.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michel 2018-06-15 08:58:23 UTC
Hello, 

I've to restart akonadi several times during day for get Google IMAP access refreshing. I've an other imap  account in free.fr There isn't any problem
I let kwallet closed, no issue.

Before restarting akonadi I note this message in a terminal 
org.kde.pim.imapresource: Expunge failed:  "Expunge failed, server replied: A000132 NO mailbox selected READ-ONLY "
org.kde.pim.imapresource: Expunge failed:  "Expunge failed, server replied: A000228 NO mailbox selected READ-ONLY 

Thanks for your support
Comment 1 Michel 2018-06-15 09:00:50 UTC
 akonadictl -v

akonadictl 5.7.3

This last version of akonadi  is not in the list

more /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04 LTS"
Comment 2 Michel 2018-06-22 06:10:26 UTC
Akonadi log before I've to restart akonadi : 
000064 NO mailbox selected READ-ONLY "
org.kde.pim.imapresource: Expunge failed:  "Échec de Purger. Le serveur a répondu : A000005 NO mailbox selected READ-ONLY "
org.kde.pim.imapresource: Expunge failed:  "Échec de Purger. Le serveur a répondu : A000101 NO mailbox selected READ-ONLY "
QIODevice::write (KTcpSocket): device not open
[SASL-XOAUTH2] - Requesting authID![SASL-XOAUTH2] - Requesting token
![SASL-XOAUTH2] - filling prompts
![SASL-XOAUTH2] - Requesting authID![SASL-XOAUTH2] - Requesting token
!org.kde.pim.imapresource: Expunge failed:  "Échec de Purger. Le serveur a répondu : A000004 NO mailbox selected READ-ONLY "
org.kde.pim.kimap: sasl_client_step failed with: -1 "SASL(0): successful result: "
org.kde.kgapi.raw: Requesting token refresh:  "client_id=xxxxxxxxxxxxxxx.apps.googleusercontent.com&client_secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&refresh_token=1/WhsduCBILIoC2bXcDr1kPTzP1NhJEi4OK8vVGZfx6x2AYRHP_xJ7tM8IWdBjr6qp&grant_type=refresh_token"
org.kde.kgapi: Queued QUrl("https://accounts.google.com/o/oauth2/token")
org.kde.kgapi: KGAPI2::AuthJob(0x7f803c0204f0) Dispatching request to QUrl("https://accounts.google.com/o/oauth2/token")
org.kde.kgapi.raw: "client_id=xxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com&client_secret=xxxxxxxxxxxxxxxxxxxxxxO&refresh_token=1/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX2AYRHP_xJ7tM8IWdBjr6qp&grant_type=refresh_token"
org.kde.kgapi: Received reply from QUrl("https://accounts.google.com/o/oauth2/token")
org.kde.kgapi: Status code:  200
org.kde.kgapi.raw: "{\n  \"access_token\" : \"ya29.Gl3iBcqs7CwzyXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXlqAb9Mg5UNJi8bKoId38pwPa76w-9whoIXfw6i6Tkp1QdoItz14TarnpDsk\",\n  \"expires_in\" : 3600,\n  \"id_token\" : \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-uloczRZpNrsNYzXZPAdZAkGdn3JVbLe9fdqWxeAQEk5mjJxT9xpIvKc6dULa_4EtiaqRSWQhPqCXFGLnxJrjb5_CvZI8TfY5HefyvXM5u4qJ5UYFhsIdEMp0ZyPxqBm1uvtMnG8LalaKL8zbLPH_w9f6J_Rl2jJro1XuAvDmIgTAmPVblUII5JJwfjFOCyBqspi9ox7bOI40EODVtLMgR1YcI0KKiqQ2ip03QkiFUU87rURkX6TkxliX9w6w\",\n  \"token_type\" : \"Bearer\"\n}"
org.kde.kgapi: 
qt.network.ssl: QSslSocket::startClientEncryption: cannot start handshake on non-plain connection
org.kde.pim.imapresource: Expunge failed:  "Échec de Purger. Le serveur a répondu : A000104 NO mailbox selected READ-ONLY "
org.kde.pim.imapresource: Expunge failed:  "Échec de Purger. Le serveur a répondu : A000135 NO mailbox selected READ-ONLY "
org.kde.pim.imapresource: Expunge failed:  "Échec de Purger. Le serveur a répondu : A000231 NO mailbox selected READ-ONLY "
org.kde.pim.kimap: Connection to server lost  0
org.kde.pim.imapresource: Session login cancelled
[SASL-XOAUTH2] - Requesting authID![SASL-XOAUTH2] - Requesting token
![SASL-XOAUTH2] - filling prompts
![SASL-XOAUTH2] - Requesting authID![SASL-XOAUTH2] - Requesting token
!org.kde.pim.imapresource: Expunge failed:  "Échec de Purger. Le serveur a répondu : A000262 NO mailbox selected READ-ONLY "
org.kde.pim.imapresource: Expunge failed:  "Échec de Purger. Le serveur a répondu : A000358 NO mailbox selected READ-ONLY "
org.kde.pim.kimap: Connection to server lost  0
"Item query returned empty result set"
"Item query returned empty result set"
"Item query returned empty result set"
Comment 3 Michel 2018-06-27 07:54:14 UTC
Hi, 

I unshare an google imap directory in the GMAIL parameter. I closed kmail. I restarted akonadictl. The subdirectory is gone. (Normal)
I came back to share the google imap directory. I closed kmail. I restarted akonadictl. I started kmail the google sub directory seems to be synchronised without any PB.
Comment 4 Daniel Vrátil 2018-07-05 11:39:27 UTC
Git commit a07c0b06f030f69922321f8706d6b101ab82c43f by Daniel Vrátil.
Committed on 05/07/2018 at 11:38.
Pushed by dvratil into branch 'Applications/18.04'.

Don't try to EXPUNGE read-only mailboxes

At least the Gmail IMAP server drops the connection after several
attempts to EXPUNGE read-only mailboxes so we never get to sync.
FIXED-IN: 5.8.3

M  +12   -0    resources/imap/autotests/testexpungecollectiontask.cpp
M  +29   -0    resources/imap/autotests/testretrieveitemstask.cpp
M  +6    -1    resources/imap/expungecollectiontask.cpp
M  +7    -1    resources/imap/retrieveitemstask.cpp

https://commits.kde.org/kdepim-runtime/a07c0b06f030f69922321f8706d6b101ab82c43f