[Akonadi] [Bug 318699] New: Akonadi handshake with Outlook 365 IMAP sometimes fails

paul.leopardi at iinet.net.au paul.leopardi at iinet.net.au
Mon Apr 22 04:07:11 BST 2013


https://bugs.kde.org/show_bug.cgi?id=318699

            Bug ID: 318699
           Summary: Akonadi handshake with Outlook 365 IMAP sometimes
                    fails
    Classification: Unclassified
           Product: Akonadi
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: IMAP resource
          Assignee: ervin at kde.org
          Reporter: paul.leopardi at iinet.net.au
                CC: kdepim-bugs at kde.org, vkrause at kde.org

I have an IMAP account on an Outlook 365 server, set up via Kmail. Today, I
have noticed erratic behaviour, on two machines, bouth runng KDE 4.10.2. My
home machine runs openSUSE 12.2 and my office machine runs Kubuntu 12.04. I am
at work now, so have reported the problems on my workstation in detail. I have
also reported these problems to the ANU IT support people.

The first problem is that Kmail reports that the IMAP server has refused
connection, and therefore the Kmail IMAP folder cannot be brought online. The
second problem is that once the folder is brought online, the display of an
email message times out.

Both Outlook 365 web site and IMAP via K9 mail Android work, although I have
noticed that sometimes mails take a while to appear on Android (starting
today).

I tried to reproduce by stopping and restarting akonadi, with different
configurations. 

Additionally, ANU IT have reported an "IMAP fault", whatever that is.


Reproducible: Sometimes

Steps to Reproduce:
Case 1 (offline);
1. Start Kmail
2. Click on ANU 365 Inbox folder (offline)
3. On "... is offline ..." diaglo box, click OK


Case 2 (online);
1. Start Kmail
2. Click on ANU 365 Inbox folder (online)
3. Click on mail item in folder



Actual Results:  
Typical error message (both cases 1 and 2):
The server for account "ANU 365" refused the supplied username and password. Do
you want to go to the settings, have another attempt at logging in, or do
nothing?

Kmail preview pane in case 2 with SSL:
Retrieving Folder Contents Please wait ... (forever)
Login failed, server replied: A000002 NO LOGIN failed. 

Output from akonadictl with SSL:
leopardi at catawba:/etc/X11$ akonadictl status
Akonadi Control: stopped
Akonadi Server: stopped
Akonadi Server Search Support: available (backend: Virtuoso)
leopardi at catawba:/etc/X11$ akonadictl start
Connecting to deprecated signal
QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
leopardi at catawba:/etc/X11$ search paths: 
("/home/leopardi/usr/local/scilab/scilab-5.2.2/bin",
"/home/leopardi/.texlive2010/bin/x86_64-linux", "/home/leopardi/bin",
"/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin",
"/usr/games", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec",
"/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin",
"/opt/mysql/sbin") 
akonadi.collectionattributetable                   OK
akonadi.collectionmimetyperelation                 OK
akonadi.collectionpimitemrelation                  OK
akonadi.collectiontable                            OK
akonadi.flagtable                                  OK
akonadi.mimetypetable                              OK
akonadi.parttable                                  OK
akonadi.pimitemflagrelation                        OK
akonadi.pimitemtable                               OK
akonadi.resourcetable                              OK
akonadi.schemaversiontable                         OK
mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.event                                        OK
mysql.func                                         OK
mysql.general_log                                  OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.host                                         OK
mysql.ndb_binlog_index                             OK
mysql.plugin                                       OK
mysql.proc                                         OK
mysql.procs_priv                                   OK
mysql.proxies_priv                                 OK
mysql.servers                                      OK
mysql.slow_log                                     OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name                               OK
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.user                                         OK
Connecting to deprecated signal
QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
search paths:  ("/home/leopardi/usr/local/scilab/scilab-5.2.2/bin",
"/home/leopardi/.texlive2010/bin/x86_64-linux", "/home/leopardi/bin",
"/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin",
"/usr/games") 
search paths:  ("/home/leopardi/.kde/lib/kde4/plugins/",
"/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins",
"/usr/lib/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins",
"/home/leopardi/.kde/lib/kde4/", "/usr/lib/kde4/") 
search paths:  ("/home/leopardi/.kde/lib/kde4/plugins/",
"/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins",
"/usr/lib/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins",
"/home/leopardi/.kde/lib/kde4/", "/usr/lib/kde4/") 
search paths:  ("/home/leopardi/.kde/lib/kde4/plugins/",
"/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins",
"/usr/lib/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins",
"/home/leopardi/.kde/lib/kde4/", "/usr/lib/kde4/") 
search paths:  ("/home/leopardi/.kde/lib/kde4/plugins/",
"/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins",
"/usr/lib/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins",
"/home/leopardi/.kde/lib/kde4/", "/usr/lib/kde4/") 
akonadi_nepomuk_feeder(16092) FeederPluginloader::feederPluginsForMimeType: No
feeder for type  "inode/directory"  found 
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
A message was received from the server with no job to handle it: "* BYE
Connection is closed. 13 "
"(2a2042594520436f6e6e656374696f6e20697320636c6f7365642e20313320)" 
A message was received from the server with no job to handle it: "* BYE
Connection is closed. 13 "
"(2a2042594520436f6e6e656374696f6e20697320636c6f7365642e20313320)" 
A message was received from the server with no job to handle it: "* BYE
Connection is closed. 13 "
"(2a2042594520436f6e6e656374696f6e20697320636c6f7365642e20313320)" 
A message was received from the server with no job to handle it: "* BYE
Connection is closed. 13 "
"(2a2042594520436f6e6e656374696f6e20697320636c6f7365642e20313320)" 
A message was received from the server with no job to handle it: "* BYE
Connection is closed. 13 "
"(2a2042594520436f6e6e656374696f6e20697320636c6f7365642e20313320)" 
A message was received from the server with no job to handle it: "* BYE
Connection is closed. 13 "
"(2a2042594520436f6e6e656374696f6e20697320636c6f7365642e20313320)" 
A message was received from the server with no job to handle it: "* BYE
Connection is closed. 13 "
"(2a2042594520436f6e6e656374696f6e20697320636c6f7365642e20313320)" 
ItemRetrieverException :  Unable to retrieve item from resource: <html>Job
canceled.</html>
ItemRetrieverException :  Unable to retrieve item from resource: Did not
receive a reply. Possible causes include: the remote application did not send a
reply, the message bus security policy blocked the reply, the reply timeout
expired, or the network connection was broken.

Akonadi output once SSL setting changed to STARTTLS (in Kmail):

leopardi at catawba:/etc/X11$ akonadictl stop
leopardi at catawba:/etc/X11$ AkonadiAgentServer(16093)/kio (KDirWatch)
KDirWatchPrivate::removeEntry: doesn't know
"/home/leopardi/.kde/share/apps/kabc" 
Application '/usr/bin/akonadi_agent_launcher' exited normally...
Application '/usr/bin/akonadi_agent_launcher' exited normally...
Application '/usr/bin/akonadi_maildispatcher_agent' exited normally...
AkonadiAgentServer(16086)/kio (KDirWatch) KDirWatchPrivate::removeEntry:
doesn't know "/home/leopardi/.kde/share/apps/korganizer" 
QProcess: Destroyed while process is still running.
ProcessControl: Application /usr/bin/akonadi_imap_resource stopped unexpectedly
( "Process crashed" )
Application '/usr/bin/akonadi_imap_resource' crashed. No restart!
Application '/usr/bin/akonadi_agent_launcher' exited normally...
Application '/usr/bin/akonadi_mailfilter_agent' exited normally...
Application '/usr/bin/akonadi_archivemail_agent' exited normally...
Application '/usr/bin/akonadi_imap_resource' exited normally...
Application '/usr/bin/akonadi_agent_launcher' exited normally...
Application '/usr/bin/akonadi_mixedmaildir_resource' exited normally...
Application '/usr/bin/akonadi_nepomuk_feeder' exited normally...
Application '/usr/bin/akonadi_birthdays_resource' exited normally...
Error in my_thread_global_end(): 1 threads didn't exit
Application 'akonadiserver' exited normally...

leopardi at catawba:/etc/X11$ akonadictl status
Akonadi Control: stopped
Akonadi Server: stopped
Akonadi Server Search Support: available (backend: Virtuoso)
leopardi at catawba:/etc/X11$ akonadictl start
Connecting to deprecated signal
QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
leopardi at catawba:/etc/X11$ search paths: 
("/home/leopardi/usr/local/scilab/scilab-5.2.2/bin",
"/home/leopardi/.texlive2010/bin/x86_64-linux", "/home/leopardi/bin",
"/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin",
"/usr/games", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec",
"/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin",
"/opt/mysql/sbin") 
akonadi.collectionattributetable                   OK
akonadi.collectionmimetyperelation                 OK
akonadi.collectionpimitemrelation                  OK
akonadi.collectiontable                            OK
akonadi.flagtable                                  OK
akonadi.mimetypetable                              OK
akonadi.parttable                                  OK
akonadi.pimitemflagrelation                        OK
akonadi.pimitemtable                               OK
akonadi.resourcetable                              OK
akonadi.schemaversiontable                         OK
mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.event                                        OK
mysql.func                                         OK
mysql.general_log                                  OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.host                                         OK
mysql.ndb_binlog_index                             OK
mysql.plugin                                       OK
mysql.proc                                         OK
mysql.procs_priv                                   OK
mysql.proxies_priv                                 OK
mysql.servers                                      OK
mysql.slow_log                                     OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name                               OK
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.user                                         OK
Connecting to deprecated signal
QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
search paths:  ("/home/leopardi/usr/local/scilab/scilab-5.2.2/bin",
"/home/leopardi/.texlive2010/bin/x86_64-linux", "/home/leopardi/bin",
"/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin",
"/usr/games") 
search paths:  ("/home/leopardi/.kde/lib/kde4/plugins/",
"/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins",
"/usr/lib/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins",
"/home/leopardi/.kde/lib/kde4/", "/usr/lib/kde4/") 
search paths:  ("/home/leopardi/.kde/lib/kde4/plugins/",
"/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins",
"/usr/lib/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins",
"/home/leopardi/.kde/lib/kde4/", "/usr/lib/kde4/") 
search paths:  ("/home/leopardi/.kde/lib/kde4/plugins/",
"/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins",
"/usr/lib/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins",
"/home/leopardi/.kde/lib/kde4/", "/usr/lib/kde4/") 
search paths:  ("/home/leopardi/.kde/lib/kde4/plugins/",
"/usr/lib/kde4/plugins/", "/usr/lib/x86_64-linux-gnu/qt4/plugins",
"/usr/lib/qt4/plugins", "/usr/bin", "/usr/lib/kde4/plugins",
"/home/leopardi/.kde/lib/kde4/", "/usr/lib/kde4/") 
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
akonadi_nepomuk_feeder(16429) FeederPluginloader::feederPluginsForMimeType: No
feeder for type  "inode/directory"  found 
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
ItemRetrieverException :  Unable to retrieve item from resource: Did not
receive a reply. Possible causes include: the remote application did not send a
reply, the message bus security policy blocked the reply, the reply timeout
expired, or the network connection was broken.
ItemRetrieverException :  Unable to retrieve item from resource: <html>Job
canceled.</html>
 MailFilterAgent::itemAdded : 80825 
 itemsReceiviedForFiltering********************************************** :
80825  resource : "akonadi_imap_resource_4" 
akonadi_imap_resource_4(16425)/kdepimlibs (kimap)
KIMAP::StoreJob::handleResponse: We asked for UID but the server didn't give it
back, resultingFlags not stored. 
akonadi_imap_resource_4(16425)/kdepimlibs (kimap)
KIMAP::StoreJob::handleResponse: We asked for UID but the server didn't give it
back, resultingFlags not stored. 
akonadi_imap_resource_4(16425)/kdepimlibs (kimap)
KIMAP::StoreJob::handleResponse: We asked for UID but the server didn't give it
back, resultingFlags not stored. 

When using STARTTLS, after the first timeout, the previews displayed correctly.

Expected Results:  
Normal login to email, normal display of folders, normal display of preview.

Possible duplicate of Bug 317105 - Unable to retrieve mail via IMAP from
outlook.com 
May have to do with fix for Bug 249992 - Can't log in to IMAP server using non
plain text auth mechanism.

IMAP configuration details:
Outlook 365 web site instructions say to use SSL and port 993. Autodetect uses
STARTTLS and port 143.  Cases 1 and 2 occur with SSL. Case 1 occurs with
STARTTLS.

Not completely a server problem, as far as I can tell. The stored account name
and password work both with Outlook 365 web site and with K9 IMAP mail on
Android.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the Kdepim-bugs mailing list