After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 750148 - GMail account with calendar/contacts broken the next start
GMail account with calendar/contacts broken the next start
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
3.16.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 750905 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-05-30 14:16 UTC by André Klapper
Modified: 2015-06-19 16:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description André Klapper 2015-05-30 14:16:46 UTC
Everytime I start Evolution 3.16.2 (in online mode) or go online within Evolution, I always get an error message displayed:

     Failed to connect to 'aklapper@example.com'
     Unknown error                                     [Reconnect] [X]

which is just not true as Evolution does connect to that GMail IMAP account and does download new messages.


I ran
     CAMEL_DEBUG=imapx:io evolution >& evologfile
in offline mode, switched to online mode, received the error and quit Evo.
Content of "evologfile":


** (evolution:18828): CRITICAL **: categories_icon_theme_hack: assertion 'filename != NULL && *filename != '\0'' failed

(evolution:18828): GLib-GObject-WARNING **: The property GtkSettings:gtk-button-images is deprecated and shouldn't be used anymore. It will be removed in a future version.

(evolution:18828): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(evolution:18828): GLib-GObject-WARNING **: The property GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It will be removed in a future version.
No bp log location saved, using default.
[...]
(evolution:18828): GLib-GObject-WARNING **: The property GtkCellRendererPixbuf:stock-id is deprecated and shouldn't be used anymore. It will be removed in a future version.

(evolution:18828): GLib-GObject-WARNING **: The property GtkWidget:margin-left is deprecated and shouldn't be used anymore. It will be removed in a future version.

(evolution:18828): GLib-GObject-WARNING **: The property GtkWidget:margin-right is deprecated and shouldn't be used anymore. It will be removed in a future version.
[imapx:A] I/O: '* OK Gimap ready for requests from 89.123.45.678 f77mb70853224wmf'
[imapx:A] I/O: 'A00000 CAPABILITY'
[imapx:A] I/O: '* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN AUTH=XOAUTH
A00000 OK Thats all she wrote! f77mb70853224wmf'
[imapx:A] I/O: 'A00001 LOGIN ...'
[imapx:A] I/O: '* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT
A00001 OK aklapper@example.com authenticated (Success)'
[imapx:A] I/O: 'A00002 CAPABILITY'
[imapx:A] I/O: '* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT
A00002 OK Success'
[imapx:A] I/O: 'A00003 NAMESPACE'
[imapx:A] I/O: '* NAMESPACE (("" "/")) NIL NIL
A00003 OK Success'
[imapx:A] I/O: 'A00004 LIST "" INBOX'
[imapx:A] I/O: '* LIST (\HasChildren) "/" "INBOX"
A00004 OK Success'
[imapx:A] I/O: 'A00005 LSUB "" INBOX'
[imapx:A] I/O: '* LSUB (\HasChildren) "/" "INBOX"
A00005 OK Success'
Comment 1 André Klapper 2015-05-30 14:19:39 UTC
* I am not using "Quick Resync" (and I have no idea what that means). I enabled it for a while and it did not change anything.
* I am not using "Listen for server change notifications" (and I have no idea what that means)
Comment 2 Milan Crha 2015-06-03 09:24:56 UTC
Is the account configured through GNOME Online Accounts? That can mean that not necessarily the mail part of it is failing, it can be calendars, tasks or the contacts too. Eventually the part which searches for available sources on the server. It would be visible better when using changes from bug #748683, but that added new translatable strings, thus no go for gnome-3-16.

Could you try to select in the Evolution UI each of the sources to check which one is failing, please?
Comment 3 André Klapper 2015-06-03 12:42:32 UTC
(In reply to Milan Crha from comment #2)
> Is the account configured through GNOME Online Accounts?

No, I have never touched g-o-a on this machine.
 
> Could you try to select in the Evolution UI each of the sources to check
> which one is failing, please?

That probably leaves calendars and mail, alright. Lemme check
Comment 4 André Klapper 2015-06-04 08:00:49 UTC
Ah, after clicking away that dialog a few dozen times, a new message is shown:

Failed to connect to 'Contacts'  The requested resource was not found: https://developers.google.com/accounts/docs/AuthForInstalledApps

I have never configured Google as an addressbook in Evolution and never used g-o-a. Still my Google account is listed under "Contacts".
Comment 5 Milan Crha 2015-06-05 10:02:35 UTC
(In reply to André Klapper from comment #4)
> I have never configured Google as an addressbook in Evolution and never used
> g-o-a. Still my Google account is listed under "Contacts".

It can be that you checked at the end of the Add Account in Evolution to add also calendar and contacts for the added Google account. The contacts part doesn't make any sense right now (bug #749974).
Comment 6 André Klapper 2015-06-05 10:48:03 UTC
(In reply to Milan Crha from comment #5)
> It can be that you checked at the end of the Add Account in Evolution to add
> also calendar and contacts for the added Google account. The contacts part
> doesn't make any sense right now (bug #749974).

I added the affected Google account in October 2012 running Evolution 3.2.3 on Fedora 16 - don't know if such an option existed at that time.

Right now I'm mostly interested in how to get rid of that ever popping up error message as it's disruptive. There seems to be no way in the UI to remove the Google Contacts item in the list of address book sources (no "Delete").
Comment 7 Milan Crha 2015-06-08 06:22:40 UTC
(In reply to André Klapper from comment #6)
> There seems to be no way in the UI to remove the Google Contacts item
> in the list of address book sources (no "Delete").

Aha, that can be it, there is no Delete, because the address book is tight with the mail account. You can drop it on the disk, locate the address book file at ~/.config/evolution/sources and delete it, or simply remove the mail account and enter it again. The later has a disadvantage of downloading the folder summary for all the folders again.
Comment 8 Milan Crha 2015-06-12 08:15:37 UTC
Downstream bug report about the same (I believe):
https://bugzilla.redhat.com/show_bug.cgi?id=1230283

I figured what the problem is with the downstream bug reporter's help. The evolution-source-registry module dealing with Google sources added a GOA extension into the non-GOA source, which resulted in an error on the password prompt, because the GAO was asked to provide the password, but there was no account-id associated, thus GOA returned a failure. Interestingly enough the issue was observed only after restart.

One of the errors being shown was:
> Failed to lookup password: Cannot find a corresponding account in
> the org.gnome.OnlineAccounts service from which to obtain a password
> for 'GMail account name'

The below change makes the code work again, only note that the code doesn't cleanup itself, you might either recreate the account in the Evolution again, or remove the [GNOME Online Accounts] section from a corresponding .source file in ~/.config/evolution/sources on your own, ideally with the evolution-source-registry process down.

Created commit 653ddbf in eds master (3.17.3+)
Created commit 9abd667 in eds gnome-3-16 (3.16.4+)
Comment 9 Milan Crha 2015-06-17 15:39:28 UTC
*** Bug 750905 has been marked as a duplicate of this bug. ***
Comment 10 Pacho Ramos 2015-06-19 16:34:53 UTC
*** Bug 750905 has been marked as a duplicate of this bug. ***