Cannot add a Google addressbook to Evolution: invalid query

Bug #720434 reported by Matteo Settenvini
144
This bug affects 27 people
Affects Status Importance Assigned to Milestone
evolution (Ubuntu)
Fix Released
Medium
Mathieu Trudel-Lapierre

Bug Description

Binary package hint: evolution

Hello,

I am trying to add my GMail address book with all its contacts to Evolution.

I've tried a lot of different variations, but no matter what options I choose (username with or without @gmail.com, for example), I always get no contacts and an error.

The error says:

=== Unable to open address book ====
This address book cannot be opened. This either means that an incorrect URI was entered, or the server is unreachable.
Detailed error message: Cannot authenticate user: Invalid query

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: evolution 2.32.2-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-3.30-generic 2.6.38-rc4
Uname: Linux 2.6.38-3-generic x86_64
Architecture: amd64
Date: Wed Feb 16 23:58:02 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
 LANGUAGE=it_IT:it:en_GB:en
 PATH=(custom, user)
 LANG=it_IT.UTF-8
 LC_MESSAGES=it_IT.utf8
 SHELL=/bin/bash
SourcePackage: evolution

Related branches

Revision history for this message
Matteo Settenvini (tchernobog) wrote :
Revision history for this message
Matteo Settenvini (tchernobog) wrote :

This issue appears when clicking on the left sidebar on the name of the address book ("Contatti").

Marcin Juszkiewicz (hrw)
Changed in evolution (Ubuntu):
status: New → Confirmed
Revision history for this message
Christian Dysthe (christian-dysthe) wrote :

I was actually able to add my Google address book when I set up Evolution. I could see the entries. Then this error message came and since they no Google address book

Revision history for this message
Rod Davis (ahylianhuman) wrote :

After repeated attempts at trying to get Evolution to sync with my Google Contacts, I got this error as well:

This address book cannot be opened. This either means that an incorrect URI was entered, or the server is unreachable.

Detailed error message: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)

Changed in evolution (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Mathieu Trudel-Lapierre (mathieu-tl)
importance: Undecided → Medium
Revision history for this message
iMac (imac-netstatz) wrote :

I applied this patch, I sometimes see my Google contacts load (by switching away and back eventually I get some), and then receive one or both of the following error in the GUI. Sometimes a few hundred load; Sometimes I get as far as 1093; I have about 1700 contacts.

So the patch makes it sort of start to work .. but ultimately it fails. Perhaps with a smaller number of contacts the failure is not reached.

A screenshots a recent load, one that failed at 500 contacts, and showed me both error messages. In another try it loaded as far as contact 1093 and showed me only the shorter query failure message twice (I clicked OK twice in a row for the same error message).

Running in the console I see no relevant error messages.

Revision history for this message
iMac (imac-netstatz) wrote :

Interestingly, even after initial failure at 512 shown in my previous comment, eventually I get to a partial contact load of 1093 contacts (of a total 1800+). The following screenshot shows this precise secondary failure point that I see consistently, across one reboot now, if I leave my contacts window open.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

iMac,

I do think this is a different issue. Could you please open a new, separate bug report with your details? Thanks.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

If there are further issues with Google Contacts it would be nice to have extended debugging logs for e-addressbook-factory. To do this e-calendar-factory needs to be stopped (along with evolution), and restarted; with a command like this:

killall -9 e-addressbook-factory; LIBGDATA_DEBUG=3 /usr/lib/evolution/e-addressbook-factory

Note that this will output everything sent and received from Google, so you *will* want to review it carefully to remove private or sensitive information, such as usernames, password, and possibly just most of the contact information returned directly from google (the errors should be in the last few lines normally).

Revision history for this message
iMac (imac-netstatz) wrote :

Thanks Mathieu,

After reviewing my debug output, my problem seems to occur now as a result of simply having an enormous amount of contact data. I consistently have a first error as "Timeout Reached". As such I have opened a separate issue to track this specifically.

Bug 755043 includes my debug output from e-addressbook-factory and related screenshots in support of this. After the initial failure it is quite easy for me to then arrive at the symptoms and GUI output described here, which is why I initially thought this was my issue.

This is all based on current version, which did update overnight, but does not include your patch as best I can tell from the changelog.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

This bug should have been marked Fix Released already, since e-d-s 2.32.2-0ubuntu2 was uploaded a few days ago. The addressbook should be able to be added, unless there are further issues such as bug 755043 reported by iMac.

Changed in evolution (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Bazon (bazonbloch) wrote :

still happens for me, with fresh updates

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Bazon,

If you're still unable to connect, there must be a different issue affecting you. Please file a new bug using 'ubuntu-bug evolution'. If you have done so, please tell us the bug number so we can take a look at it. Thanks!

Revision history for this message
Christian Dysthe (christian-dysthe) wrote :

I found that when I use OpenDNS I'm not able to use Google contacts in Evolution, but if I change to other name servers Google Contacts loads. However, I still get a lot "unable to perform search" errors.

Revision history for this message
iMac (imac-netstatz) wrote : Re: [Bug 720434] Re: Cannot add a Google addressbook to Evolution: invalid query

A DNS error is an unrelated problem, however if you have a lot of
contacts and receive this error then you might have this problem instead

https://bugs.launchpad.net/bugs/755043

Similar to screenshot below

https://bugs.launchpad.net/ubuntu/+source/evolution-data-server/+bug/755043/+attachment/2094397/+files/Evo_ContactsBug_OnAdd.png

On Fri, 2011-04-29 at 03:46 +0000, cdysthe wrote:
> I found that when I use OpenDNS I'm not able to use Google contacts in
> Evolution, but if I change to other name servers Google Contacts loads.
> However, I still get a lot "unable to perform search" errors.
>

Revision history for this message
Christian Dysthe (christian-dysthe) wrote :

I'm still having the problem on Natty. I looked at the other bug referenced (755043) which doesn't really offer a solution to this. I guess I'll just have to wait and hope for a solution at some point. The change of DNS servers made it work for a couple of hours, then I was back t the same error message.

Revision history for this message
Christian Dysthe (christian-dysthe) wrote :

I got the idea to export all entries in my Google Contacts, then I deleted them. and then added the Google contacts to Evolution. Now it worked. I then imported all the contacts back into Google and they are now showing up in Evolution. I'm not sure it will last, but I'm at least having access to them in Evolution for now.

Revision history for this message
Bazon (bazonbloch) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.