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 748683 - Unhelpful 'failed to connect' message
Unhelpful 'failed to connect' message
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: general
3.16.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2015-04-30 08:28 UTC by David Woodhouse
Modified: 2015-06-01 18:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Woodhouse 2015-04-30 08:28:40 UTC
Evolution keeps telling me

   Failed to connect to 'Google'
   Unknown error.

I have Google calendar and address book configured (and a fairly unused gmail account too but that's accessed by ActiveSync so I'm fairly sure it's not that).

I have no idea if it's the calendar or the address book which failed to connect. And no idea why it failed to connect. 

When I find the reason it failed to connect, I'll file a separate bug for that. This bug is for the unhelpfulness of the error report itself.
Comment 1 David Woodhouse 2015-04-30 08:35:28 UTC
It seems to happen every time I start Evolution. I have a dbus-monitor trace which appears to contain a *lot* of calendar events even dating back to 2012 which is a little confusing, so I won't paste it here. What am I looking for in it?

If I search for 'error', I see:

method call sender=:1.38 -> dest=:1.215 serial=3515 path=/org/gnome/evolution/dataserver/Subprocess/21763/2; interface=org.gnome.evolution.dataserver.Calendar; member=GetTimezone
   string "(GMT-08:00) Pacific Time (US & Canada)"
error sender=:1.215 -> dest=:1.38 error_name=org.gtk.GDBus.UnmappedGError.Quark._e_2dcal_2dclient_2derror_2dquark.Code1 reply_serial=3515
   string "Could not retrieve calendar time zone: Object not found"

Could that be it?
Comment 2 David Woodhouse 2015-04-30 08:38:18 UTC
I doubt it's that; the only other instance of that TZID is in an event in my EWS calendar.
Comment 3 David Woodhouse 2015-04-30 11:57:54 UTC
I restarted the addressbook and calendar factories and then Evolution. First I got a similar message except the error now said "Credentials are required to connect to the destination host'. Although both factories did seem to be talking quite happily to Google judging by their debugging output.

And now I can't reproduce at all.

FWIW my Google account has 2fa enabled but a client-specific password assigned for Evolution.
Comment 4 Milan Crha 2015-05-15 10:10:00 UTC
Right, I didn't bother to fine-tune the error messages, but I agree it's quite confusing to just get the source's display name and nothing else.

Regarding the issue with the Google account, I think it's bug #728496.

Created commit 8f3b824 in evo master (3.17.2+)
Comment 5 David Woodhouse 2015-06-01 12:46:16 UTC
Now the error says:

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

Does that look like it's bug 728496? It certainly doesn't seem to be fixed with the 3.16.2 update that just got installed...
Comment 6 Milan Crha 2015-06-01 18:49:12 UTC
(In reply to David Woodhouse from comment #5)
> Does that look like it's bug 728496? It certainly doesn't seem to be fixed
> with the 3.16.2 update that just got installed...

Partly related, but only if you've configured your address book through GNOME Online Accounts, which doesn't seem to be it, because it is using ClientLogin, which was disabled by the Google folks. See bug #749974.